«

»

Nov 28

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