- Add the following to /etc/postfix/main.cf
1 2 3 4 5 |
relayhost = smtpservices.studioemma.com:25 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/smarthost.conf smtp_sasl_mechanism_filter = CRAM-MD5,PLAIN,LOGIN smtp_saslsecurity_options = noanonymous |
- Create file: /etc/postfix/smarthost.conf with content:
1 |
smtprelay.host.be username:geheimpaswoord |
- Execute:
1 |
#postmap /etc/postfix/smarthost.conf |
- Reload postfix service:
1 |
service postfix reload |
- Send a test email via:
1 2 3 |
#mail -s "Test" you@mail.org this is a test body . |