Postfix / dovecot Relay访问被拒绝

时间:2014-10-11 20:18:20

标签: centos postfix-mta dovecot

我一直试图设置Postfix / dovecot。我可以通过telnet smtp连接并发送电子邮件,没有任何问题。

554 5.7.1:收件人地址被拒绝:拒绝访问; from = to = proto = ESMTP helo =

postconf -n

   alias_database = 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
debug_peer_list = 127.0.0.1
header_checks = regexp:/etc/postfix/header_checks
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp local_destination_recipient_limit = 300 local_destination_concurrency_limit = 5
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain, www.$mydomain, ftp.$mydomain
mydomain = hungrypandasupplies.com
myhostname = mail.hungrypandasupplies.com
mynetworks = 127.0.0.0/8
mynetworks_style = subnet
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
recipient_delimiter = +
relay_domains = 
relayhost = mailout.serverpronto.com
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,             permit_mynetworks,                  reject_unauth_destination, permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = 
smtpd_sasl_path = inet:127.0.0.1:12345
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
soft_bounce = no
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual

master.cf

smtp      inet  n       -       n       -       -       smtpd
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject

我知道它与Postfix有关,而且它无法识别我的电子邮件地址,但我无法弄清楚如何修复它。

我在/ etc / postfix / virtual中有这个:

support@domain.com支持

2 个答案:

答案 0 :(得分:0)

您是否尝试在电子邮件客户端程序中为外发邮件设置用户?当需要对传出服务器进行身份验证时,会出现此错误。

答案 1 :(得分:0)

Relay Access Denied error的唯一原因是网络配置无效。要解决此问题,请修改/etc/postfix/main.cf 并改变

mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 your_network_ID/CIDR" (eg.192.168.0.0/24).