Support

Guides, Articles and Frequently Asked Questions






  Index | Installation

How do I set up PostFix to send messages via the outgoing filter?


In this article we describe how you can set up the outgoing filter on your PostFix server in a few steps. Under PostFix you can use different types of authentication. Depending on which variant you choose, a different procedure is necessary. 

Variant 1: Authentication via the IP address (smarthost)

With this method, you route all messages from your mail server through our filter cloud.

1

Make sure that the IP address of your mail server has been created as outgoing user in EuropeanMX. For instructions on how to set up an outgoing user, please refer to our FAQ article "How do I set up an outgoing user?".

2

Make sure that the correct limits are set for the outgoing user in EuropeanMX. 

3

Change the configuration on your mail server. To do this, call the file main.cf (etc/postfix/main.cf) and make sure that the following line is included:

relayhost = relay.europeanmx.eu:587

4

Starten Sie Ihren PostFix neu.

Variant 2: Authentication via a user name and password (Smarthost)

With this method, you route all messages from your mail server through our filter cloud.

1

Make sure that an authenticating user has been created as outgoing user in EuropeanMX. For instructions on how to set up an outgoing user, please refer to our FAQ article "How do I set up an outgoing user?".

2

Make sure that the correct limits are set for the outgoing user in EuropeanMX. 

3

Create a file with the access data, e.g. /etc/postfix/relay_passwd

smtp.smarthostname.example.com USERNAME:PASSWORD"

4

Make sure that the file has the correct permissions and create a hash value from the password file by running the following lines:

  • chown root:root /etc/postfix/relay_passwd
  • chmod 600 /etc/postfix/relay_passwd
  • postmap /etc/postfix/relay_passwd
5

Add the following line to main.cf (etc/postfix/main.cf):

relayhost = relay.europeanmx.eu:587

6

Add the following lines to main.cf (etc/postfix/main.cf) directly below the last created line

smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/relay_passwd
smtp_sasl_security_options =

7

Starten Sie Ihren PostFix neu, um die Änderungen zu übernehmen.

/etc/init.d/postfix restart

Variante 3: Authentication via the domain name

If you want to use a more fine-grained model, you can route the outbound traffic for your domains through separate users. This allows you to apply different settings per domain, but also allows end users to access their own log files.

1

Make sure that an authenticating domain has been created as outgoing user in EuropeanMX. For instructions on how to set up an outgoing user, please refer to our FAQ article "How do I set up an outgoing user?".

2

Create a file "sasl_password" for the (different) outgoing user(s).

@example.com outgoing@example.com:THEPASSWORD

3

Create a file "sender_relay".

@example.com [relay.europeanmx.eu]:587
@example.net [relay.europeanmx.eu]:587

4

Postmap both files.

postmap /etc/postfix/sasl_passwd
postmap /etc/postfix/sender_relay

5

Add the following linse to your main.cf (etc/postfix/main.cf):

relayhost = relay.europeanmx.eu:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
smtp_sender_dependent_authentication = yes
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay

Please note: These lines instruct you to send your postfix to all messages on your server via our filter cloud. If you don't want this and only want to have certain domains sent via EuropeanMX, then remove the first line "relayhost = relay.europeanmx.eu:587".

7

Restart your PostFix.


Was this article helpful?




We use cookies for the technical functionality of this website. With your consent, we also collect page views and other statistical data in anonymized form.

Accept all cookies Select individually
Cookie Settings
Read Privacy Statement