Search This Blog

Monday, May 14, 2012

Integrating Amazon SES with Sendmail - Amazon Simple Email Service

Integrating Amazon SES with Sendmail - Amazon Simple Email Service:

Sendmail was released in the early 1980s, and has been continuously improved ever since. It is a very flexible and configurable MTA, and it has a large installed base.
For information about Sendmail, go to
To configure integration using STARTTLS
  1. Edit the /etc/mail/authinfo file. If the file does not exist, create it. Add the following lines to the file, replacing USERNAME and PASSWORD with your SMTP user name and password. "U:root" "I:USERNAME" "P:PASSWORD" "M:LOGIN" "U:root" "I:USERNAME" "P:PASSWORD" "M:LOGIN"
  2. Save the authinfo file.
  3. At a command prompt, issue the following command to generate the Sendmail configuration file:
    makemap hash authinfo < authinfo
  4. Edit the /etc/mail/ file. If the file does not exist, you can obtain it by installing the package on your system. In the file, add the following lines:
    define(`SMART_HOST', `')dnl
    define(`RELAY_MAILER_ARGS', `TCP $h 25')dnl
    define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl
    FEATURE(`authinfo', `hash -o /etc/mail/authinfo.db')dnl
    Be sure that relaying is allowed for in the /etc/mail/access file.
  5. Save the file.
  6. Issue the following command:
    m4 /etc/mail/ > /etc/mail/

    if you get following error
    m4:/etc/mail/ cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory
    yum install sendmail-cf

No comments:

Post a Comment