Using Postfix doesn’t mean you can’t also choose Turbo SMTP as your Smart host smtp relay. Actually, a Smart host relay will help to improve your email deliverability! Here’s how to set up Turbo SMTP as a relay Smart host when you’re using Postfix.
Postfix Smart host smtp relay configuration
To update the Postfix configuration and use turboSMTP as a smart host relay service, follow these instructions:
- Open the Postfix configuration file that is /etc/postfix/main.cf and paste the code below:
smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_sasl_tls_security_options = noanonymous smtp_tls_security_level = encrypt header_size_limit = 4096000 relayhost = [pro.turbo-smtp.com]:587
- In the file /etc/postfix/sasl_passwd (that you may need to create from scratch) type these credentials:
[pro.turbo-smtp.com]:587 yourturboSMTPUsername:yourturboSMTPPassword
- Update Postfix hashtables by using the postmap command
$ sudo chmod 600 /etc/postfix/sasl_passwd $ sudo postmap /etc/postfix/sasl_passwd
- Restart Postfix
$ sudo systemctl restart postfix
- Now you can install the missing module dependency through a yum or a an apt-get:
$ apt-get install libsasl2-modules
$ yum install cyrus-sasl-plain