免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5904 | 回复: 3
打印 上一主题 下一主题

[Mail] postfix的extmail可以发邮件,但是却收不到本地域的邮件 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-09-09 16:23 |只看该作者 |倒序浏览
以下是报错日志!
Sep  9 13:57:23 mail postfix/smtpd[6050]: connect from mail.lead.com.cn[127.0.0.1]
Sep  9 13:57:23 mail postfix/trivial-rewrite[6051]: warning: do not list domain lead.com.cn in BOTH mydestination and virtual_mailbox_domains
Sep  9 13:57:23 mail postfix/trivial-rewrite[6051]: warning: do not list domain lead.com.cn in BOTH mydestination and virtual_mailbox_domains
Sep  9 13:57:23 mail postfix/smtpd[6050]: 3C7FEC6536: client=mail.lead.com.cn[127.0.0.1]
Sep  9 13:57:23 mail postfix/cleanup[6054]: 3C7FEC6536: message-id=<20100909055723.3C7FEC6536@mail.lead.com.cn>
Sep  9 13:57:23 mail postfix/smtpd[6050]: disconnect from mail.lead.com.cn[127.0.0.1]
Sep  9 13:57:23 mail postfix/qmgr[2504]: 3C7FEC6536: from=<alex.guo@lead.com.cn>, size=636, nrcpt=1 (queue active)
Sep  9 13:57:23 mail postfix/trivial-rewrite[6051]: warning: do not list domain lead.com.cn in BOTH mydestination and virtual_mailbox_domains
Sep  9 13:57:23 mail postfix/local[6056]: 3C7FEC6536: to=<tom.zhang@lead.com.cn>, relay=local, delay=0.57, delays=0.1/0.42/0/0.05, dsn=5.1.1, status=bounced (unknown user: "tom.zhang")
Sep  9 13:57:23 mail postfix/cleanup[6054]: C27D5C6538: message-id=<20100909055723.C27D5C6538@mail.lead.com.cn>
Sep  9 13:57:23 mail postfix/bounce[6058]: 3C7FEC6536: sender non-delivery notification: C27D5C6538
Sep  9 13:57:23 mail postfix/qmgr[2504]: 3C7FEC6536: removed
Sep  9 13:57:23 mail postfix/qmgr[2504]: C27D5C6538: from=<>, size=2418, nrcpt=1 (queue active)
Sep  9 13:57:23 mail postfix/trivial-rewrite[6051]: warning: do not list domain lead.com.cn in BOTH mydestination and virtual_mailbox_domains
Sep  9 13:57:23 mail postfix/local[6056]: C27D5C6538: to=<alex.guo@lead.com.cn>, relay=local, delay=0.03, delays=0.02/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "alex.guo")
Sep  9 13:57:23 mail postfix/qmgr[2504]: C27D5C6538: removed

老是说用户名 unknow,我看了Mysql里面的extmail数据库里面的extmail表,这2个用户都存在的呀。。
我在google上基本上都看完了,也没有解决我的问题,我疯掉了。。。
以下是main.cf
[root@mail ~]# /usr/sbin/postconf -n
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
html_directory = /var/www/postfix_html
inet_interfaces = all
local_recipient_maps =
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/postfix/man
message_size_limit = 14336000
mydestination = 172.16.200.111, $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain, www.$mydomain, ftp.$mydomain
mydomain = lead.com.cn
myhostname = mail.lead.com.cn
mynetworks = 172.16.200.0/24, 127.0.0.0/8
myorigin = lead.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:2525
virtual_mailbox_base = /var/mailbox
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 = virtual
virtual_uid_maps = static:2525


救命啊!!

论坛徽章:
0
2 [报告]
发表于 2010-09-09 17:28 |只看该作者
解决了。。

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
3 [报告]
发表于 2010-09-10 12:43 |只看该作者
解决了。。
709101040516 发表于 2010-09-09 17:28



    说下解决方法吧
估计是配置参数错误

论坛徽章:
0
4 [报告]
发表于 2011-01-30 15:18 |只看该作者
怎么解决的哦 ,我也遇到同样的问题了。大侠帮帮忙哦。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP