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
    DAEMON_OPTIONS(`Port=smtp,Addr=, Name=MTA’)dnl

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


Leave a Reply

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

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

Facebook photo

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

Connecting to %s

%d bloggers like this: