- 论坛徽章:
- 0
|
我的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投递我所有的邮件,谢谢. |
|