歡迎您光臨本站 註冊首頁

自搭postfix向外發信,外網郵箱收不到信,求教!

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

自搭postfix向外發信,外網郵箱收不到信,求教!

內網郵箱chuchu@extmail.org
外網郵箱 chuchu@mymobile.com.cn;microchu@163.com


maillog日誌如下:

Feb  5 11:25:19 localhost postfix/smtpd: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Feb  5 11:25:19 localhost postfix/smtpd: connect from localhost.localdomain
Feb  5 11:25:19 localhost postfix/trivial-rewrite: warning: do not list domain extmail.org in BOTH mydestination and virtual_mailbox_domains
Feb  5 11:25:19 localhost postfix/smtpd: E0DAD49C66: client=localhost.localdomain
Feb  5 11:25:19 localhost postfix/cleanup: E0DAD49C66: message-id=<20090205032519.E0DAD49C66@mail.mymobile.com.cn>
Feb  5 11:25:19 localhost postfix/smtpd: disconnect from localhost.localdomain
Feb  5 11:25:20 localhost postfix/qmgr: E0DAD49C66: from=<chuchu@extmail.org>, size=708, nrcpt=2 (queue active)
Feb  5 11:25:26 localhost postfix/smtp: E0DAD49C66: to=<microchu@163.com>, relay=163mx01.mxmail.netease.com:25, delay=6.3, delays=0.19/0.05/6/0.03, dsn=5.0.0, status=bounced (host 163mx01.mxmail.netease.com said: 550 MI:SPF mx10,PMCowLAbyBmnZI5J6cKzMw--.1333S2 1234068647 http://mail.163.com/help/help_spam_16.htm?ip=2093991425&hostid=mx10&time=1234068647 (in reply to MAIL FROM command))
Feb  5 11:25:28 localhost postfix/smtp: E0DAD49C66: to=<chuchu@mymobile.com.cn>, relay=mx.mymobile.com.cn:25, delay=8.5, delays=0.19/0.1/8.2/0, dsn=4.4.2, status=deferred (lost connection with mx.mymobile.com.cn while performing the HELO handshake)
Feb  5 11:25:28 localhost postfix/cleanup: 53CE749C76: message-id=<20090205032528.53CE749C76@mail.mymobile.com.cn>
Feb  5 11:25:28 localhost postfix/bounce: E0DAD49C66: sender non-delivery notification: 53CE749C76
Feb  5 11:25:28 localhost postfix/qmgr: 53CE749C76: from=<>, size=2942, nrcpt=1 (queue active)
Feb  5 11:25:28 localhost postfix/trivial-rewrite: warning: do not list domain extmail.org in BOTH mydestination and virtual_mailbox_domains
Feb  5 11:25:28 localhost postfix/local: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Feb  5 11:25:28 localhost postfix/local: 53CE749C76: to=<chuchu@extmail.org>, relay=local, delay=0.14, delays=0.06/0.07/0/0.01, dsn=5.1.1, status=bounced (unknown user: "chuchu")
Feb  5 11:25:28 localhost postfix/qmgr: 53CE749C76: removed
《解決方案》

postconf -n

# postconf -n
broken_sasl_auth_clients = yes
command_directory = /usr/local/postfix/sbin
config_directory = /etc/postfix
daemon_directory = /usr/local/postfix/libexec
data_directory = /var/lib/postfix
debug_peer_level = 2
html_directory = /var/www/postfix_html
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/postfix/man
message_size_limit = 14336000
mydestination = extmail.org,test.com
mydomain = mymobile.com.cn
myhostname = mail.mymobile.com.cn
mynetworks = 192.168.2.0/24, 127.0.0.0/8
myorigin = mymobile.com.cn
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
relay_domains = $mydestination
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_banner = Welcome to our $myhostname ESMTP,Warning: Version not Available!
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname,reject_non_fqdn_hostname,reject_unknown_sender_domain,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_unauth_pipelining,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 550
virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:1001
virtual_mailbox_base = /var/mymailbox
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 20971520
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_transport = maildrop
virtual_uid_maps = static:1001
《解決方案》

host 163mx01.mxmail.netease.com said: 550 MI:SPF mx10,PMCowLAbyBmnZI5J6cKzMw--.1333S2 1234068647 http://mail.163.com/help/help_sp ... amp;time=1234068647


SPF驗證不通過

不要使用chuchu@extmail.org 來發
extmail.org不是你的域名
《解決方案》

回復 #1 microchu 的帖子

(in reply to MAIL FROM command) 基本上與relay 有關係
mydestination = extmail.org,test.com   
mydomain = mymobile.com.cn
myhostname = mail.mymobile.com.cn
mynetworks = 192.168.2.0/24, 127.0.0.0/8
myorigin = mymobile.com.cn
relay_domains = $mydestination
問題在這裡
《解決方案》

多謝指點

mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = mytest.com
myhostname = mail.mytest.com
mynetworks = 192.168.2.0/24, 127.0.0.0/8
myorigin = mytest.com
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
relay_domains = $mydestination

改成這個樣子,發163可以了。
《解決方案》

測試的時候,也建議不要用別人在使用的域名。

[火星人 ] 自搭postfix向外發信,外網郵箱收不到信,求教!已經有1077次圍觀

http://coctec.com/docs/service/show-post-24618.html