Over and over,
sendmail keeps getting whacked out of configuration and it’s puzzling why this keeps happening. I followed everything at Amazon SES' instruction here with no luck.
So to set things straight once for all, here are the steps to make the changes permanent.
- Open up
sendmail.mctypically located at
FEATURE(`mailertable')dnlbelow where all the
- Add the lines below at the end of file
MAILER_DEFINITIONS Maws-email, P=/etc/aws/ses-send-email.pl, F=mDFMuXn, U=mail, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, A=ses-send-email.pl -r -k /etc/aws/aws-credentials -e https://email.us-east-1.amazonaws.com -f $f $u
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
mailertabletypically located in
[TAB]with a real TAB character
mailertabledatabase by doing
makemap hash /etc/mail/mailertable < /etc/mail/mailertable
sendmail -bv email@example.com