postfix + dovecot 错误:NOQUEUE:拒绝:来自 localhost[127.0.0.1] 的 RCPT:

postfix + dovecot 错误:NOQUEUE:拒绝:来自 localhost[127.0.0.1] 的 RCPT:

我为我的新 mastodon 实例设置了 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/

相关内容