Sendmail on Amazon EC2 instance with Amazon Linux

 


*Mail Serverの作成

  1. hostnameの設定。(privateDNS上のhostnameをほっとくとmail Serverにメールが届かない)
    • echo <domain name> > /etc/hostname
    • hostname -F /etc/hostname
    • service sendmail restart
  2. sendmailの外部からの受信を可能に設定する。
    • cd /etc/mail
    • vi sendmail.mc
    before
    DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA’)dnl

    after(comment out)
    dnl # DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA’)dnl
    • m4 sendmail.mc > sendmail.cf
    • service sendmail restart

 


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: