免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4718 | 回复: 5

[Mail] 自搭postfix向外发信,外网邮箱收不到信,求教! [复制链接]

论坛徽章:
0
发表于 2009-02-08 12:55 |显示全部楼层
内网邮箱chuchu@extmail.org
外网邮箱 chuchu@mymobile.com.cn;microchu@163.com


maillog日志如下:

Feb  5 11:25:19 localhost postfix/smtpd[4626]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Feb  5 11:25:19 localhost postfix/smtpd[4626]: connect from localhost.localdomain[127.0.0.1]
Feb  5 11:25:19 localhost postfix/trivial-rewrite[4628]: warning: do not list domain extmail.org in BOTH mydestination and virtual_mailbox_domains
Feb  5 11:25:19 localhost postfix/smtpd[4626]: E0DAD49C66: client=localhost.localdomain[127.0.0.1]
Feb  5 11:25:19 localhost postfix/cleanup[4631]: E0DAD49C66: message-id=<20090205032519.E0DAD49C66@mail.mymobile.com.cn>
Feb  5 11:25:19 localhost postfix/smtpd[4626]: disconnect from localhost.localdomain[127.0.0.1]
Feb  5 11:25:20 localhost postfix/qmgr[3486]: E0DAD49C66: from=<chuchu@extmail.org>, size=708, nrcpt=2 (queue active)
Feb  5 11:25:26 localhost postfix/smtp[4633]: E0DAD49C66: to=<microchu@163.com>, relay=163mx01.mxmail.netease.com[220.181.12.60]:25, delay=6.3, delays=0.19/0.05/6/0.03, dsn=5.0.0, status=bounced (host 163mx01.mxmail.netease.com[220.181.12.60] said: 550 MI:SPF mx10,PMCowLAbyBmnZI5J6cKzMw--.1333S2 1234068647 http://mail.163.com/help/help_sp ... amp;time=1234068647 (in reply to MAIL FROM command))
Feb  5 11:25:28 localhost postfix/smtp[4634]: E0DAD49C66: to=<chuchu@mymobile.com.cn>, relay=mx.mymobile.com.cn[218.107.207.108]: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[218.107.207.108] while performing the HELO handshake)
Feb  5 11:25:28 localhost postfix/cleanup[4631]: 53CE749C76: message-id=<20090205032528.53CE749C76@mail.mymobile.com.cn>
Feb  5 11:25:28 localhost postfix/bounce[4636]: E0DAD49C66: sender non-delivery notification: 53CE749C76
Feb  5 11:25:28 localhost postfix/qmgr[3486]: 53CE749C76: from=<>, size=2942, nrcpt=1 (queue active)
Feb  5 11:25:28 localhost postfix/trivial-rewrite[4638]: warning: do not list domain extmail.org in BOTH mydestination and virtual_mailbox_domains
Feb  5 11:25:28 localhost postfix/local[4640]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Feb  5 11:25:28 localhost postfix/local[4640]: 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[3486]: 53CE749C76: removed

论坛徽章:
0
发表于 2009-02-08 13:57 |显示全部楼层

postconf -n

[root@localhost log]# 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

论坛徽章:
0
发表于 2009-02-08 21:06 |显示全部楼层
host 163mx01.mxmail.netease.com[220.181.12.60] said: 550 MI:SPF mx10,PMCowLAbyBmnZI5J6cKzMw--.1333S2 1234068647 http://mail.163.com/help/help_sp ... amp;time=1234068647


SPF验证不通过

不要使用chuchu@extmail.org 来发
extmail.org不是你的域名

论坛徽章:
0
发表于 2009-02-08 22:41 |显示全部楼层

回复 #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
问题在这里

论坛徽章:
0
发表于 2009-02-08 23:22 |显示全部楼层

多谢指点

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可以了。

论坛徽章:
0
发表于 2009-02-09 09:06 |显示全部楼层
测试的时候,也建议不要用别人在使用的域名。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP