How To Use AWS SES With Sendmail In CentOS/Amazon Linux

Published Date Author: , Posted October 31st, 2011 at 3:00:38pm

Here are the Amazon docs: http://docs.amazonwebservices.com/ses/latest/DeveloperGuide/index.html?IntegratingWithServer.Sendmail.html

Edit sendmail.mc and generate a new sendmail.cf

/etc/mail/mailertable

.{TAB}aws-email:%0

Replace the {TAB} with an actual tab character, and the last character is a zero.

/etc/mail/sendmail.mc

Change:

DAEMON_OPTIONS(Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

To:

dnl DAEMON_OPTIONS(Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

Please note above the space after the leading ‘dnl’ and that there is a trailing ‘dnl’ as well.

Enable the following lines by removing the leading ‘dnl ‘ or add them as needed:

MASQUERADE_AS(yourDomain.com')dnl
FEATURE(
masquerade_envelope')dnl
FEATURE(`mailertable')dnl

Add the following line, edited to match your installation:

Maws-email, P=/opt/aws/bin/ses-send-email.pl, F=mDFMuXn, U=smmsp, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, A=/opt/aws/bin/ses-send-email.pl -r -k /root/aws_credentials -e https://email.us-east-1.amazonaws.com -f $f $u

Comments reader  5 Reader Comments

Anshul Johri - Gravatar

www.bookadda.com Anshul Johri said on November 24, 2011, 2:00 am:

Hi,

After following this I am getting Unknown mailer error 2

Any solution for that?

erics - Gravatar

www.wyzaerd.com erics said on November 28, 2011, 9:04 am:

I figure out these errors by reading the log file on my server to see what errors are associated with the “unknown mailer” errors.

Ashok Kumar - Gravatar

mediaagility.com Ashok Kumar said on January 14, 2012, 11:37 am:

I am also facing same error, please help me

David Kaufman - Gravatar

David Kaufman said on December 22, 2012, 3:07 pm:

what errors did you uncover in the log file

erics - Gravatar

www.wyzaerd.com erics said on December 23, 2012, 7:09 am:

Look for the “unknown mailer” errors.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.