Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have followed all steps here:

This is my sendmail.mc:

FEATURE(`mailertable')dnl
MAILER_DEFINITIONS
Maws-email, P=/opt/third-party/amazon/ses-send-email.pl, F=mDFMuXn, U=amazonuser, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, A=ses-send-email.pl -r -k /opt/third-party/amazon/aws-credentials -e   https://email.us-east-1.amazonaws.com   -f $f $u
MASQUERADE_AS(mydomain.com)dnl
FEATURE(masquerade_envelope)dnl
FEATURE(masquerade_entire_domain)dnl

MAILER(smtp)dnl
MAILER(procmail)dnl
dnl MAILER(cyrusv2)dnl

If I do this:

# sudo sendmail -bv johny2376494@gmail.com
johny2376494@gmail.com... deliverable: mailer esmtp, host gmail.com., user johny2376494@gmail.com

But output should be:

mailer awsemail

what should I do? I have followed this as well:

share|improve this question
1  
You've definitely also added the entry to the /etc/mail/mailertable to force all outbound mail to use the new aws-email mailer and rebuild the mailertable database? (steps 6-8 in the docs) –  USD Matt Jul 11 '13 at 11:43
    
@USDMatt : Could you turn your comment into answer? –  Andrzej A. Filip Jul 11 '13 at 11:55
    
@USDMatt , now i am confused , amazon docs says to create file /etc/mailmailertable where i have put entry but they are not using that anywhere. chk the step 7 here docs.aws.amazon.com/ses/latest/DeveloperGuide/… –  user2424160 Jul 11 '13 at 11:59
    
@USDMatt , i think amazon idiots have a typo there. i wasted 10 hours on that file should be /etc/mail/mailertable not /etc/mailmailertable –  user2424160 Jul 11 '13 at 12:06
    
Yes they get it wrong in steps 6 & 7 by the look of it, then have the right file path in the makemap command –  USD Matt Jul 11 '13 at 12:18

1 Answer 1

up vote 1 down vote accepted

The question shows the additions to add the AWS mailer to Sendmail, but it doesn't look like anything it actually configured to use that mailer.

Looking at the Amazon docs, they require updating /etc/mail/mailertable to direct mail for all domains (.) via the new mailer. However, at the time of writing they have a typo in a few steps and incorrectly call the file /etc/mailmailertable.

Assuming there are no other issues (I've never used AWS myself) configuring the mailertable file correctly and rebuilding the associated database file should cause Sendmail to use the AWS mailer for all outbound mail.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.