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


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: