问题描述
- 关于postfix退信的问题。向外域发件一直发不出去
- 公网ip:120.1.2.3
云服务器系统:centOS6.5
WDcp控制面板
域名:zenhuang.com搞了一天只可以向本服务器的成员(例如:test@zenhuang.com)发送邮件能内外域收邮件但是不能向外域(例如:zenhuangzheng@126.com)发送邮件,会被退信,并且发回
This is the mail system at host mail.theglowrun.cn.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.For further assistance please send mail to postmaster.
If you do so please include this problem report. You can
delete your own text from the attached returned message.The mail system
zenhuang@126.com: unknown user: ""zenhuang""
这段文字
maillog的报错日志是:
Mar 16 21:34:07 iZ94a13ehonZ postfix/smtpd[16470]: connect from unknown[101.232.79.114]
Mar 16 21:34:07 iZ94a13ehonZ postfix/smtpd[16470]: CD4FEC1B10: client=unknown[101.232.79.114]Mar 16 21:34:08 iZ94a13ehonZ postfix/cleanup[16472]: CD4FEC1B10: message-id=2015031621340746055029@zenhuang.com
Mar 16 21:34:08 iZ94a13ehonZ postfix/qmgr[16388]: CD4FEC1B10: from=test@zenhuang.com size=1491 nrcpt=1 (queue active)
Mar 16 21:34:08 iZ94a13ehonZ postfix/local[16473]: CD4FEC1B10: to=zenhuang@126.com relay=local delay=0.37 delays=0.34/0.01/0/0.02 dsn=5.1.1 status=bounced (unknown user: ""zenhuang"")
Mar 16 21:34:08 iZ94a13ehonZ postfix/cleanup[16472]: 20723C1B15: message-id=20150316133408.20723C1B15@mail.zenhuang.com
Mar 16 21:34:08 iZ94a13ehonZ postfix/qmgr[16388]: 20723C1B15: from=<> size=3295 nrcpt=1 (queue active)
Mar 16 21:34:08 iZ94a13ehonZ postfix/bounce[16474]: CD4FEC1B10: sender non-delivery notification: 20723C1B15
Mar 16 21:34:08 iZ94a13ehonZ postfix/qmgr[16388]: CD4FEC1B10: removed
Mar 16 21:34:08 iZ94a13ehonZ postfix/local[16473]: 20723C1B15: to=test@zenhuang.com relay=local delay=0.02 delays=0.01/0/0/0.01 dsn=2.0.0 status=sent (delivered to maildir)
Mar 16 21:34:08 iZ94a13ehonZ postfix/qmgr[16388]: 20723C1B15: removed
Mar 16 21:34:08 iZ94a13ehonZ postfix/smtpd[16470]: disconnect from unknown[101.232.79.114]
我的postfix main.cf的配置参数是:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
myhostname = mail.zenhuang.com
mydomain = zenhuang.com
myorigin = $mydomain
inet_interfaces = all
inet_protocols = ipv4
mydestination = $myhostname localhost.$mydomain localhost $mydomainqq.com foxmail.com sina.com 163.com msn.com hotmail.com 126.com
local_recipient_maps =
unknown_local_recipient_reject_code = 550
mynetworks_style = subnet
relay_domains = $mydestination
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.6.6/samples
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES我的DNS解析如下:
MX @ 默认 mail.zenhuang.com.
CNAME smtp 默认 smtp.zenhuang.com
CNAME pop3 默认 pop3.zenhuang.com
A mail 默认 120.24.79.226
TXT @ 默认 v=spf1 mx -all