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.
With this method, you route all messages from your mail server through our filter cloud.
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?".
Make sure that the correct limits are set for the outgoing user in EuropeanMX.
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
Starten Sie Ihren PostFix neu.
With this method, you route all messages from your mail server through our filter cloud.
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?".
Make sure that the correct limits are set for the outgoing user in EuropeanMX.
Create a file with the access data, e.g. /etc/postfix/relay_passwd
smtp.smarthostname.example.com USERNAME:PASSWORD"
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
Add the following line to main.cf (etc/postfix/main.cf):
relayhost = relay.europeanmx.eu:587
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 =
Starten Sie Ihren PostFix neu, um die Änderungen zu übernehmen.
/etc/init.d/postfix restart
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.
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?".
Create a file sasl_password for the (different) outgoing user(s).
@example.com outgoing@example.com:THEPASSWORD
Create a file sender_relay.
@example.com [relay.europeanmx.eu]:587
@example.net [relay.europeanmx.eu]:587
Postmap both files.
postmap /etc/postfix/sasl_passwd
postmap /etc/postfix/sender_relay
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
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".
Restart your PostFix.