歡迎您光臨本站 註冊首頁

兩個郵件伺服器,在其中一個做了alias轉發之後的問題。

←手機掃碼閱讀     火星人 @ 2014-03-05 , reply:0

兩個郵件伺服器,在其中一個做了alias轉發之後的問題。

郵件伺服器都是用的postfix+mysql+Courier-IMAP+extmail,想把部分發送到.com.cn伺服器的郵件通過alias錶轉發到.com同一個人的郵箱中。但是凡是使用.com郵箱往.com.cn發送的時候就會報下面的錯誤


<test@aaa.com> (expanded from <test@aaa.com.cn>): host
mail.aaa.com said: 554 5.7.1 <xxx@aaa.com>: Sender
address rejected: Access denied (in reply to RCPT TO command)

Reporting-MTA: dns; email.aaa.com.cn
X-Postfix---by-JRJ-Queue-ID: EF2C1E5CED
X-Postfix---by-JRJ-Sender: rfc822; xxx@aaa.com
Arrival-Date: Wed, 7 Feb 2007 14:22:56 +0800 (CST)

Final-Recipient: rfc822; test@aaa.com
Original-Recipient: rfc822;test@aaa.com.cn
Action: failed
Status: 5.7.1
Remote-MTA: dns; mail.aaa.com
Diagnostic-Code: smtp; 554 5.7.1 <xxx@aaa.com>: Sender address rejected:
Access denied

也就是說,當用.com的郵箱xxx@aaa.com發送郵件到 test@aaa.com.cn后,轉發郵件到test@aaa.com。轉發后就會被拒絕,其他域沒有問題,該如何解決?

.com伺服器上Log

postfix/smtpd: NOQUEUE: reject: RCPT from mail.aaa.com.cn: 554 5.7.1 <test@aaa.com>: Sender address rejected: Access denied; from=<xxx@aaa.com> to=<test@aaa.com> proto=ESMTP helo=<email.aaa.com.cn>

.com.cn上LOG

postfix/smtp: 1099AE5CED: to=<test@aaa.com>, orig_to=<test@aaa.com.cn>, relay=mail.aaa.com, delay=0, dsn=5.7.1, status=bounced (host mail.aaa.com said: 554 5.7.1 <xxx@aaa.com>: Sender address rejected: Access denied (in reply to RCPT TO command))

[ 本帖最後由 eddie_we 於 2007-2-7 15:21 編輯 ]
《解決方案》

# postconf -n

alias_database = hash:/etc/postfix/aliases

alias_maps = hash:/etc/postfix/aliases

broken_sasl_auth_clients = yes

command_directory = /usr/sbin

config_directory = /etc/postfix

daemon_directory = /usr/libexec/postfix

debug_peer_level = 2

default_process_limit = 600

html_directory = /usr/share/doc/postfix-2.3.20050716/html

mail_name = Postfix

mail_owner = postfix

mailq_path = /usr/bin/mailq.postfix

manpage_directory = /usr/share/man

message_size_limit = 15360000

mydestination = $mynetworks $myhostname

myhostname = email.aaa.com.cn

mynetworks = 127.0.0.1

newaliases_path = /usr/bin/newaliases.postfix

queue_directory = /var/spool/postfix

readme_directory = /usr/share/doc/postfix-2.3.20050716/README_FILES

sample_directory = /etc/postfix

sendmail_path = /usr/sbin/sendmail.postfix

setgid_group = postdrop

smtpd_banner = $myhostname ESMTP $mail_name

smtpd_error_sleep_time = 0s

smtpd_helo_restrictions = permit_mynetworks,reject_invalid_hostname,check_client_access m
ysql:/etc/postfix/mysql_virtual_client_access.cf

smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated, reject_sender_
login_mismatch,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unauth_destinatio
n,reject_unauth_pipelining,reject_invalid_hostname,permit

smtpd_restriction_classes = local_only

smtpd_sasl_auth_enable = yes

smtpd_sasl_local_domain = $myhostname

smtpd_sasl_security_options = noanonymous

smtpd_sender_login_maps = hash:/etc/postfix/sender_login_maps

smtpd_sender_restrictions = check_recipient_access hash:/etc/postfix/local_recipient check_s
ender_access hash:/etc/postfix/sender
unknown_local_recipient_reject_code = 450
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_transport = maildrop:

[火星人 ] 兩個郵件伺服器,在其中一個做了alias轉發之後的問題。已經有894次圍觀

http://coctec.com/docs/service/show-post-41323.html