0

我一直在尝试设置 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

大师.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 支持

4

2 回答 2

0

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

于 2014-10-11T20:49:12.070 回答
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).
于 2015-07-03T05:25:39.003 回答