haha… after few months i’m wondering and trials that ended fail…. at last solutions found haha…. if someone cross over this page, you may refer here…. Symptom before doing this is the mail is super slow, after doing this will be on the spot.

How to Install Postfix on CentOS/RHEL 7/6/5

Thank you for your post, that’s very helpful… Here i share what i do… just add up a little…

First, check your /etc/hosts and make sure this correct

               127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4

                ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

And do the

How to Install Postfix on CentOS/RHEL 7/6/5

Here the simple note… Run command

 

yum remove sendmail
yum install postfix
alternatives --set mta /usr/sbin/postfix
alternatives --set mta /usr/sbin/sendmail.postfix
nano /etc/postfix/main.cf
  myhostname = mail.tecadmin.net
  mydomain = tecadmin.net
  myorigin = $mydomain
  inet_interfaces = all
  mydestination = $myhostname, localhost, $mydomain
  mynetworks = 127.0.0.0/8, /32
  relay_domains = $mydestination
  home_mailbox = Maildir/
service postfix restart
chkconfig postfix on
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT
iptables -A INPUT -m state --state NEW -m udp -p udp --dport 25 -j ACCEPT