For example, if your main domain name for the given server is 1. Switch to root user sudo su 2. Open hosts file on the server nano /etc/hosts and make sure you have this in it: localhost.localdomain localhost ::1 localhost.localdomain localhost Save the file. 3. Open Apache configuration file nano /etc/httpd/conf/httpd.conf […]

1. Switch to root user sudo su 2. Install postfix yum install postfix -y 3. Stop sendmail (installed on Amazon Linux by default) /etc/init.d/sendmail stop 4. Start postfix /etc/init.d/postfix start 5. Switch MTA from sendmail to postfix alternatives –set mta /usr/sbin/sendmail.postfix 6. Configure postfix to allow email for the same domain name to be received. […]