邮递员在更新后拒绝中继

邮递员在更新后拒绝中继

在我更新我的邮件安装后,服务器现在拒绝发送消息...我不知道为什么。(因为我的邮件帐户在同一个服务器上,所以我收到了消息,但它们没有发送给列表中的其他成员。)

系统日志显示以下错误消息

postfix/smtpd[2541]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 454 4.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<myserver.stratoserver.net>

关于如何修复该问题或我应该研究什么,您有什么想法吗?

以下是 postconf -n 的输出

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases, hash:/var/spool/postfix/plesk/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
disable_vrfy_command = yes
inet_interfaces = all
inet_protocols = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mailman_destination_recipient_limit = 1
message_size_limit = 102400000
mydestination = localhost.stratoserver.net, localhost, localhost.localdomain
myhostname = mywebsite.de
mynetworks =
myorigin = /etc/mailname
plesk_virtual_destination_recipient_limit = 1
readme_directory = no
recipient_delimiter = +
relayhost =
sender_dependent_default_transport_maps = hash:/var/spool/postfix/plesk/sdd_transport_maps
smtp_send_xforward_command = yes
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_use_tls = no
smtpd_authorized_xforward_hosts = 127.0.0.0/8 [::1]/128
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated
smtpd_milters = , inet:127.0.0.1:12768
smtpd_proxy_timeout = 3600s
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sender_restrictions = check_sender_access hash:/var/spool/postfix/plesk/blacklists, permit_sasl_authenticated
smtpd_timeout = 3600s
smtpd_tls_cert_file = /etc/postfix/postfix_default.pem
smtpd_tls_key_file = $smtpd_tls_cert_file
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
transport_maps = , hash:/var/spool/postfix/plesk/transport
virtual_alias_maps = $virtual_maps, hash:/var/spool/postfix/plesk/virtual
virtual_gid_maps = static:31
virtual_mailbox_base = /var/qmail/mailnames
virtual_mailbox_domains = $virtual_mailbox_maps, hash:/var/spool/postfix/plesk/virtual_domains
virtual_mailbox_limit = 0
virtual_mailbox_maps = , hash:/var/spool/postfix/plesk/vmailbox
virtual_transport = plesk_virtual
virtual_uid_maps = static:30

由于这里可能涉及主机,所以我的 /etc/hosts 的内容

127.0.0.1       localhost
::1             localhost ip6-localhost ip6-loopback
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters

我还收到来自 postfix/master 的另一条消息 - 我不知道其是否相关:

message repeated 4 times: [ warning: master_wakeup_timer_event service pickup(public/pickup): Connection refused]
warning: master_wakeup_timer_event service qmgr(public/qmgr): Connection refused]
warning: master_wakeup_timer_event service pickup(public/pickup): Connection refused]

postconf -M 的输出:(已更新 19.12)

smtp       inet  n       -       -       -       -       smtpd
cleanup    unix  n       -       -       -       0       cleanup
tlsmgr     unix  -       -       -       1000?   1       tlsmgr
rewrite    unix  -       -       -       -       -       trivial-rewrite
bounce     unix  -       -       -       -       0       bounce
defer      unix  -       -       -       -       0       bounce
trace      unix  -       -       -       -       0       bounce
verify     unix  -       -       -       -       1       verify
flush      unix  n       -       -       1000?   0       flush
proxymap   unix  -       -       n       -       -       proxymap
proxywrite unix  -       -       n       -       1       proxymap
smtp       unix  -       -       -       -       -       smtp
relay      unix  -       -       -       -       -       smtp
showq      unix  n       -       -       -       -       showq
error      unix  -       -       -       -       -       error
retry      unix  -       -       -       -       -       error
discard    unix  -       -       -       -       -       discard
local      unix  -       n       n       -       -       local
virtual    unix  -       n       n       -       -       virtual
lmtp       unix  -       -       -       -       -       lmtp
anvil      unix  -       -       -       -       1       anvil
scache     unix  -       -       -       -       1       scache
maildrop   unix  -       n       n       -       -       pipe flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp       unix  -       n       n       -       -       pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail     unix  -       n       n       -       -       pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp      unix  -       n       n       -       -       pipe flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n       n       -       2       pipe flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman    unix  -       n       n       -       -       pipe flags=R user=list:list argv=/usr/lib/plesk-9.0/postfix-mailman ${nexthop} ${user} ${recipient}
plesk_virtual unix -     n       n       -       -       pipe flags=DORhu user=popuser:popuser argv=/usr/lib/plesk-9.0/postfix-local -f ${sender} -d ${recipient} -p /var/qmail/mailnames
pickup     fifo  n       -       -       60      1       pickup
plesk_saslauthd unix y   y       y       -       1       plesk_saslauthd status=5 listen=6 dbpath=/plesk/passwd.db
qmgr       fifo  n       -       n       300     1       qmgr
smtps      inet  n       -       -       -       -       smtpd -o smtpd_tls_wrappermode=yes
plesk-85.214.241.135- unix - n   n       -       -       smtp -o smtp_bind_address=85.214.241.135 -o smtp_bind_address6= -o smtp_address_preference=ipv4
plesk-85.214.91.206- unix - n    n       -       -       smtp -o smtp_bind_address=85.214.91.206 -o smtp_bind_address6= -o smtp_address_preference=ipv4

答案1

我不知道为什么你设置的参数mynetworks是空白的。所以,请编辑参数的值,mynetworks使其变为

mynetworks = 127.0.0.1

你的 master.cf 也乱了,可能是plesk 本身存在错误...

解决方案:

  • 注释掉此行pickup unix n - - 60 1 pickup
  • 注释掉此行qmgr unix n - n 300 1 qmgr
  • 修改此行

    qmgr       fifo  n       -       n       1       1       qmgr
    

    qmgr       fifo  n       -       n       300       1       qmgr
    

答案2

所以我终于找到了一个解决方案 - 尽管我无法准确解释它为什么会启动。我更改了 mynetworks 设置,如下所示:

原来的:mynetworks = 127.0.0.1

在职的: mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 VPS_IP

相关内容