免费注册 查看新帖 |

Chinaunix

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

[Mail] postfix不能接受其他域发送的邮件 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-06-22 21:14 |只看该作者 |倒序浏览
我的postfix可以服务器可以正常发送邮件给自己和其他域的用户。但是无法接收其他域发来的邮件。下面是我得配置和错误日值:

bash-2.05b# postconf -n
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
fallback_transport = /usr/bin/procmail
home_mailbox = Maildir/
html_directory = no
mail_owner = postfix
mailbox_command = /usr/bin/procmail
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
mydestination =
mydomain = sww.com.cn
myhostname = mail.sww.com.cn
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_myhostname, 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_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = $myhostname, localhost.$mydomain, localhost, sww.com.cn
virtual_mailbox_maps = ldap:/etc/postfix/virtual_user.conf
virtual_minimum_uid = 101
virtual_transport = virtual
virtual_uid_maps = static:5000


Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: >;>;>; START Recipient address RESTRICTIONS <<<
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: generic_checks: name=permit_sasl_authenticated
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: generic_checks: name=permit_sasl_authenticated status=0
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: generic_checks: name=permit_myhostname
Jun 22 20:37:11 <mail.warn>; mail postfix/smtpd[7002]: warning: unknown smtpd restriction: "permit_myhostname"
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: NOQUEUE: reject: RCPT from unknown[61.135.132.105]: 451 Server configuration error; from=<wangmingda@sohu.com>; to=<wangmd@sww.com.cn>; proto=ESMTP helo=<sohu.com>;
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: >; unknown[61.135.132.105]: 451 Server configuration error
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: watchdog_pat: 0x8087a08
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: < unknown[61.135.132.105]: DATA
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: >; unknown[61.135.132.105]: 554 Error: no valid recipients
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: watchdog_pat: 0x8087a08
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: < unknown[61.135.132.105]: RSET
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: >; unknown[61.135.132.105]: 250 Ok
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: watchdog_pat: 0x8087a08
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: < unknown[61.135.132.105]: QUIT
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: >; unknown[61.135.132.105]: 221 Bye
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: smtpd_chat_notify: notify postmaster
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: connect to subsystem public/cleanup
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: public/cleanup socket: wanted attribute: queue_id
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: input attribute name: queue_id
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: input attribute value: A7A5FF7A5
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: public/cleanup socket: wanted attribute: (list terminator)
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: input attribute name: (end)
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: send attr flags = 32
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: public/cleanup socket: wanted attribute: status
Jun 22 20:37:11 <mail.info>; mail postfix/cleanup[7008]: A7A5FF7A5: message-id=<20040622123711.A7A5FF7A5@mail.sww.com.cn>;
Jun 22 20:37:11 <mail.info>; mail postfix/qmgr[6869]: A7A5FF7A5: from=<double-bounce@mail.sww.com.cn>;, size=854, nrcpt=1 (queue active)
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: input attribute name: status
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: input attribute value: 0
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: public/cleanup socket: wanted attribute: (list terminator)
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: input attribute name: reason
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: input attribute value: (end)
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: public/cleanup socket: wanted attribute: (list terminator)
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: input attribute name: (end)
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: disconnect from unknown[61.135.132.105]
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: master_notify: status 1
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: connection closed
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: watchdog_stop: 0x8087a08
Jun 22 20:37:11 <mail.info>; mail postfix/smtpd[7002]: watchdog_start: 0x8087a08
Jun 22 20:37:11 <mail.info>; mail postfix/virtual[7009]: A7A5FF7A5: to=<postmaster@sww.com.cn>;, orig_to=<postmaster>;, relay=virtual, delay=0, status=sent (delivered to maildir)
Jun 22 20:37:11 <mail.info>; mail postfix/qmgr[6869]: A7A5FF7A5: removed


我使用postfix 的virtual投递我所有的邮件,谢谢.

论坛徽章:
0
2 [报告]
发表于 2004-06-23 02:08 |只看该作者

postfix不能接受其他域发送的邮件

use smtp protocol to send an email and see if that works first

论坛徽章:
0
3 [报告]
发表于 2004-06-23 14:29 |只看该作者

postfix不能接受其他域发送的邮件

mydestination =  $myhostname, localhost.$mydomain, localhost, sww.com.cn

论坛徽章:
0
4 [报告]
发表于 2004-06-23 18:01 |只看该作者

postfix不能接受其他域发送的邮件

将:smtpd_recipient_restrictions = permit_sasl_authenticated, permit_myhostname, reject_unauth_destination
修改为:
smtpd_recipient_restrictions = permit_sasl_authenticated,  permit_mynetworks, reject_unauth_destination
就可以了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP