SMTP -- Configure a mail transfer agent (MTA) to accept inbound email from other systems

This is a simple one, by default postfix will accept only mail originating locally, and all it takes is updating a config file to change that.

  1. Install the necessary packages
    1. yum install postfix 
  2. Edit the /etc/postfix/main.cf file
    1. Find the line inet_interfaces = localhost and change it to inet_interfaces = all
  3. Restart the service
    1. service postfix restart
  4. Open the firewall
    1. iptables -I INPUT -p tcp –dport 25 -j ACCEPT

You should be able to test this by telnetting from a remote computer. If you receive a connection, your good to go.

Comments