我的 postfix 服务器遇到了几个域退回电子邮件的问题。错误消息如下:
postfix/smtpd[2673]: NOQUEUE: reject: RCPT from mail.foo.com[xxx.xxx.xxx.xx]: 554 5.7.1 < [email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail.foo.com>
以下是postconf -n的结果:
alias_database = hash:/usr/local/etc/postfix/aliases
alias_maps = hash:/usr/local/etc/postfix/aliases, hash:/usr/local/etc/postfix/aliases-www
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
debug_peer_level = 2
html_directory = /usr/local/share/doc/postfix
mail_owner = postfix
mailbox_command = /usr/local/bin/procmail
mailbox_size_limit = 524288000
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
message_size_limit = 40960000
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
myhostname = <<hostname here>>
mynetworks = <<list of server ip's>>
myorigin = $mydomain
newaliases_path = /usr/local/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/local/share/doc/postfix
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
unknown_local_recipient_reject_code = 550
virtual_alias_maps = mysql:/usr/local/etc/postfix/mysql-virtual-alias-maps.cf
virtual_mailbox_base = /var/mail
virtual_mailbox_limit = 524288000
我已检查确保 IP 在 mynetworks 中列出,并且 virtual_alias_maps 有该地址,但邮件仍然被拒绝。
答案1
但确实virtual_alias_maps
有领域? 您可以在其中输入所有想要的地址,但还未尝试进行传送;Postfix 仍在尝试确定该域名是否是它愿意接受的域名。