Postfix
郵遞員在更新後拒絕轉發
在我更新我的郵遞員安裝後,伺服器現在拒絕發送消息……我不知道為什麼。(因為我的郵件帳戶在同一台伺服器上,所以我收到了這些消息,但它們沒有發送給列表中的其他成員。)
syslog 顯示以下錯誤消息
postfix/smtpd[2541]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 454 4.7.1 <email@gmx.de>: Relay access denied; from=<list-bounces@domain.de> to=<email@gmx.de> 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
所以我終於找到了一個解決方案——儘管我無法準確解釋為什麼它一開始就開始了。我更改了 mynetworks 設置如下:
原來的:
mynetworks = 127.0.0.1
在職的:
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 VPS_IP
我不明白你為什麼設置參數
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