postfix + dovecot 錯誤:NOQUEUE:拒絕:來自 localhost[127.0.0.1] 的 RCPT:

postfix + dovecot 錯誤:NOQUEUE:拒絕:來自 localhost[127.0.0.1] 的 RCPT:

我為我的新乳齒象實例設定了 postfix/dovecot 僅傳出郵件設定。

我的郵件日誌:

Nov 20 04:51:57 simplysocial postfix/smtpd[23374]: connect from localhost[127.0.0.1]
Nov 20 04:51:57 simplysocial postfix/smtpd[23374]: warning: unknown smtpd restriction: "spermit_sasl_authenticated"
Nov 20 04:51:57 simplysocial postfix/smtpd[23374]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 451 4.3.5 Server configuration error; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<simplysocial.online>
Nov 20 04:51:57 simplysocial postfix/cleanup[23378]: 8AC2622534: message-id=<[email protected]>
Nov 20 04:51:57 simplysocial postfix/qmgr[23370]: 8AC2622534: from=<[email protected]>, size=1316, nrcpt=1 (queue active)
Nov 20 04:51:57 simplysocial postfix/smtpd[23374]: disconnect from localhost[127.0.0.1] ehlo=2 starttls=1 mail=1 rcpt=0/1 quit=1 commands=5/6

我的/etc/dovecot/conf.d/10-master.confhttps://pastebin.com/iwU6iFz5

/etc/postfix/master.cf在此輸入連結描述

有人知道出了什麼問題並進行除錯嗎?

順便說一句,我可以成功測試從命令列調用的發送mail

答案1

好吧,一切都好,基本上我必須註解掉一些行 /etc/postfix/master.cf::

submission inet n - n - - smtpd
  -o smtpd_tls_security_level=encrypt
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_sasl_type=dovecot
  -o smtpd_sasl_path=private/auth
  -o smtpd_sasl_security_options=noanonymous
  -o smtpd_sasl_local_domain=$myhostname
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o smtpd_sender_login_maps=hash:/etc/postfix/virtual
  -o smtpd_sender_restrictions=reject_sender_login_mismatch
#  -o smtpd_recipient_restrictions=reject_non_fqdn_recipient,reject_unknown_recipient_domain,permit_sasl_authenticated,reject

為了完整起見,這裡是與 smtp 相關的 mastodon 配置:

SMTP_SERVER=localhost
SMTP_PORT=587
SMTP_LOGIN=
SMTP_PASSWORD=
[email protected]
SMTP_AUTH_METHOD=plain
SMTP_OPENSSL_VERIFY_MODE=none
SMTP_ENABLE_STARTTLS_AUTO=true

這是我的原始參考:https://doc.dovecot.org/configuration_manual/howto/postfix_and_dovecot_sasl/

相關內容