Skip to main content
All CollectionsAccount Settings
How to configure Sendmail with Elastic Email
How to configure Sendmail with Elastic Email

Find out more about Sendmail settings for Elastic Email.

Support Team avatar
Written by Support Team
Updated over 2 years ago

To properly send authentication requests to Elastic Email servers Sendmail requires libsasl. The saslauthd server daemon is not required unless you plan to receive authentication requests to the same server.


Set the authorization credentials in /etc/mail/access

Some may need to installcyrus-sasl-plain order to avoid authentication issues. We have not validated this requirement, so please make sure your system administrators, Ops, and/or InfoSec people approve this change before you make it!

AuthInfo:smtp.elasticemail.com "U:yourUserName" "P:yourPassword" "M:PLAIN"

Define the Smart Host in /etc/mail/elasticemail.mc You should add these lines just after the commented “#dnl define(‘SMART_HOST’, ‘smtp.your.provider’)dnl” line in the file:

define(`SMART_HOST', `smtp.elasticemail.com')dnl 

FEATURE(`access_db')dnl

define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl

define(`ESMTP_MAILER_ARGS', `TCP $h 587')dnl

Update sendmail.cf and access.db files:
(You will need to run these commands as ‘su’ or ‘root’)

$ cd /etc/mail 

$ m4 sendmail.mc >sendmail.cf

$ makemap hash access < access

On older distros, you can run restart Sendmail like so:

$ /etc/init.d/sendmail restart

If, however, you’re using a newer version, do the following to restart:

$ service sendmail restart
Did this answer your question?