Instalando Postfix como MTA en Centos 7

 

  1. Instalar Postfix
    # yum remove sendmail
    # yum install postfix
  2. Ponemos postfix como default MTA para el systema
    # alternatives --set mta /usr/sbin/sendmail.postfix
  3. Configuramos Postfix
    # vi  /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/
  4. Reiniciamos postfix y lo ponemos como servicio
    # service postfix restart
    # chkconfig postfix on/
  5. Abrimos el puerto del firewall
    # firewall-cmd --permanent --add-port=25/tcp
    # firewall-cmd --permanent --add-port=25/udp
    # firewall-cmd --reload

Fuente: tecadmin.net


Posted

in

by