For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Help CenterAPI KeysStatusSign In
GuidesAPI ReferenceChangelog
GuidesAPI ReferenceChangelog
  • Getting started
    • Overview
    • Quickstart
    • Authentication
    • Rate limits
  • Messaging API
    • Send transactional email
      • Batch send emails
      • Batch email idempotency
      • Schedule emails
      • Sandbox mode
      • Weekly event exports
      • SMTP relay integration
        • Postfix integration
        • Node.js example
      • Delete transactional logs
      • Parse inbound email
    • Send transactional SMS
    • Send transactional WhatsApp
  • Marketing Platform
    • Manage your contacts
    • Track website activity
    • Send WhatsApp campaigns
    • Weekly event exports
  • Webhooks
    • Getting started
    • Conversations webhooks
    • Payment webhooks
    • Marketing webhooks
    • Transactional webhooks
    • Loyalty webhooks
    • Batched webhooks
    • Secure webhook calls
    • Meetings and phone webhooks
    • Push notification webhooks
    • Sales CRM webhooks
  • Conversations
    • Getting started
    • Customize the chat widget
    • JavaScript API reference
    • REST API reference
    • Conversations webhooks
  • eCommerce
    • Activate eCommerce app
    • Manage product categories
    • Manage products
    • Manage orders
    • Coupon collections
    • eCommerce tracker events
  • Loyalty
    • Overview
    • Set up a program
    • Enroll members
    • Credit & debit points
    • Read member data
    • Best practices
  • Custom Objects
    • Custom objects management
  • Brevo tracker and events
    • Getting started
    • JavaScript implementation
    • REST implementation
    • Legacy tracker documentation
    • Events
  • Accounts and settings
    • Senders and domains
    • User activity logs
    • External feeds
    • Invited users
LogoLogo
Help CenterAPI KeysStatusSign In
On this page
  • Postfix configuration with Brevo SMTP
Messaging APISend transactional emailSMTP relay integration

Postfix integration

Was this page helpful?
Previous

Node.js example

Next
Built with

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.