Mail Server Configuration Using postfix Step 1 : Install the packages for mail server [root#] yum install postfix* Step 2 : Verify the packages [root#] rpmquery -qa | grep postfix o/p: postfix-2.6.6-2.el6.i686 Step 3 : On the postfix service at boot time [root#]chkconfig postfix on Step 4 : Open the configuration file /etc/postfix/main.cf 1. Go To Line No 75 Uncomment it myhostname = server.tyit.com 2. Go To Line No 98 Uncomment it myorigin = $myhostname 3. Go To Line No 113 Uncomment it inet_interfaces = all 4. Go To Line No 116 Comment it #inet_interfaces = localhost 5. Go To Line No 264 Uncomment it mynetworks = 192.168.2.111/28, 127.0.0.0/8 6. Go To Line No 265 Uncomment it mynetworks = $config_directory/mynetworks 7. Go To Line No 266 Uncomment it mynetworks = hash:/etc/postfix/network_table 8. Go To Line No 426 Uncomment it mail_spool_directory = /var/spool/mail ** Save the file and come back to terminal Step 5 : Stop the sendmail [root#] service sendmail stop [root#] service sendmail status Step 6 : Start and restart postfix [root#] service postfix start [root#] service postfix restart Step 7 : Stop the firewall [root#] service iptables stop Step 8 : Sending a mail to user "testB" [root#] mail testB@server.tyit.com o/p: Subject: PostTestmail Hi m testing the mail [CTRL + D] EOT service named restart [root#]host server.tyit.com