Be available from external of receiving e-mail on Amazon EC2 with Amazon Linux

* Set hostname 1. echo > /etc/hostname 2.hostname -F /etc/hostname 3.service network restart * Set sendmail to be available from external area for receiving mail 1. vi /etc/mail/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 2. m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf 3. service sendmail restart

Continue Reading

Sendmail on Amazon EC2 instance with Amazon Linux

  *Mail Serverの作成 hostnameの設定。(privateDNS上のhostnameをほっとくとmail Serverにメールが届かない) echo <domain name> > /etc/hostname hostname -F /etc/hostname service sendmail restart 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  

Continue Reading