::1 localhost ip6-localhost ip6-loopback
con la riga:
::1 localhost6 ip6-localhost ip6-loopback
::1 localhost ip6-localhost ip6-loopback
::1 localhost6 ip6-localhost ip6-loopback
postconf -e debug_peer_list=dominio.ext
postconf -e debug_peer_level=3
postfix reload
Aggiungere queste linee al file /etc/postfix/main.cf#
inet_interfaces = 127.0.0.1, [::1]
smtp_bind_address = 0.0.0.0
smtp_bind_address6 = ::
inet_protocols = all
#
Se la macchina ha un IP address statico puo' essere aggiunto alla linea inet_interfaces:inet_interfaces = 192.168.1.6, 127.0.0.1, [::1]
/etc/postfix/main.cf e aggiungete la direttiva
smtp_generic_maps = hash:/etc/postfix/generic
/etc/postfix/generic e inserite la riga:
root@host.dominio.local root.host@dominio.com
o piu' in generale:
INDIRIZZO_UTENTE_MACCHINA_LOCALE INDIRIZZO_UTENTE_DOMINIO_PUBBLICO
postmap /etc/postfix/generic
eseguite un restart di postfix per attivare la modifica:
/etc/init.d/postfix restart
Quando la mail e' invata a un host remoto tramite SMTP il server postfix si occupera' di sostituire l'indirizzo INDIRIZZO_UTENTE_MACCHINA_LOCALE con l'indirizzo INDIRIZZO_UTENTE_DOMINIO_PUBBLICO.
#5.1.1 SMTP; 550 Your HELO name for IP address 1.2.4.6 was "localhost.localdomain"
#5.1.1 SMTP; 550 Your HELO name for IP address 1.2.4.6 was "localhost"
#5.1.1 SMTP; 550 Your HELO name for IP address 1.2.4.6 was "smtp"
#5.1.1 SMTP; 550 Your HELO name for IP address 1.2.4.6 was "1.2.4.6"
#5.1.1 SMTP; 550 Your HELO name for IP address 1.2.4.6 was "[1.2.4.6]"
#5.1.1 SMTP; 550 Your HELO name for IP address 1.2.4.6 was "mail.example.com"
Il nome di HELO dovrebbe essere il "fully qualified domain name" (FQDN) del vostro mail server oppure un indirizzo IP compreso in due parentesi quadre.
#5.5.0 smtp;550-Your HELO name for IP address x.y.z.w was>
#5.5.0 smtp;550 Your HELO name for IP address x.y.z.w was "mail.mycompany.com"