我使用的是 ubuntu 10.04 的 vps 服务器,当我向 Gmail 发送电子邮件时一切正常,但是对于 Hotmail 却失败了,我检查我的日志发现了这一点:
Mar 19 18:09:01 mail postfix/smtp[6340]: 8FAF722294: to=<[email protected]>, orig_to=<root>, relay=none, delay=0.09, delays=0.08/0.01/0/0, dsn=5.4.6, status=bounced (mail for mydomain.com loops back to myself)
我查看了信息论坛以寻找解决方案,但徒劳无功,甚至我更改了 Postfix 设置:
我的目的地设置是这样的
mail.mydomain.com, localhost.mydomain.com, , localhost
我把它改成了这个
$mail.mydomain.com, localhost, localhost.mydomain.com, mydomain.com
我做了很多改动但仍然不起作用。
输出cat /etc/mailname
mail.mydomain.com
输出postconf -n
:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = all
inet_protocols = ipv4
mailbox_size_limit = 0
milter_default_action = accept
milter_protocol = 2
mydestination = localhost.$mydomain.com, localhost, mail.mydomain.com
myhostname = mail.dimonos.info
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 ip
myorigin = $mydomain
non_smtpd_milters = inet:localhost:8891
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_milters = inet:localhost:8891
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes