Sendmail requires
libsasl to send authentication requests to MailChannels servers. The saslauthd daemon is not required unless you plan to receive authentication requests on the same server. See the Sendmail SASL support page for more information.Prerequisites
- Root or
sudoaccess to your Sendmail server - Your MailChannels SMTP username and password
libsaslinstalled on your server
Configure the relay
Add authentication credentials
Sendmail stores SMTP credentials in
/etc/mail/access. Add the following line to the file, replacing the placeholders with your actual MailChannels SMTP username and password:/etc/mail/access
Configure the smart host
Edit Also comment out the following line in the same file if it is present:
/etc/mail/sendmail.mc and add the following lines to set MailChannels as the smart host. Add lines 1, 3, and 4 around the existing FEATURE line (line 2):/etc/mail/sendmail.mc
/etc/mail/sendmail.mc
Add the X-AuthUser header
Append the following lines just before the
MAILER DEFINITIONS section in /etc/mail/sendmail.mc. This adds an authenticated sender header that MailChannels uses to track per-sender reputation:/etc/mail/sendmail.mc
The
X-AuthUser header is only added when the sender is authenticated. Messages without this header are treated as forwarded mail and subject to different policies.
