Postfix integration

Postfix configuration with Brevo SMTP

  1. For Postfix, set up SASL authentication. Open the /etc/postfix/sasl_passwd file in the local postfix directory and add your SMTP credentials.
[smtp-relay.brevo.com]:587 USERNAME:master_password
  1. Run sudo postmap /etc/postfix/sasl_passwd to update the credentials in sasl_passwd. For the username, use the master password from your Brevo account, available in the SMTP and API menu in the top-right. Next, update the main.cf file in Postfix.
relayhost = [smtp-relay.brevo.com]:587

If the relay does not allow IPv6 connections, set inet_protocols to IPv4 in the main.conf file.

  1. Restart Postfix with sudo service postfix restart and send a test email with the command below.
date | mail -s "Test Email" YOUR_EMAIL@brevo.com

Note: if you encounter errors, check mailq or the Postfix log file. An authentication error means you entered incorrect credentials, or the changes to the sasl_passwd file were not saved.