postfix 554 5.7.1 : Recipient address rejected: Access denied错误了

发布于 2022-09-01 21:00:07 字数 1932 浏览 21 评论 0

Nov 12 19:28:02 AY130422153235562313 postfix/smtpd[21179]: NOQUEUE: reject: RCPT from unknown[123.114.38.84]: 554 5.7.1 <lefpfdigssss@qq.com>: Recipient address rejected: Access denied; from=<no-reply@test.com> to=<lefpfdigssss@qq.com> proto=ESMTP helo=<mongo.dev>
Nov 12 19:28:03 AY130422153235562313 postfix/smtpd[21179]: warning: non-SMTP command from unknown[123.114.38.84]: User-Agent: CI
Nov 12 19:28:03 AY130422153235562313 postfix/smtpd[21179]: disconnect from unknown[123.114.38.84]

配了台邮件服务器做程序发送邮件的。我在foxmai上都可以进行收发,也配置了ssl

但是用到程序上的时候发现一直提示错误 ci框架。
不知道要配置哪里了?

ci debug

Failed to send AUTH LOGIN command. Error: 503 5.5.1 Error: authentication not enabled 
from: 250 2.1.0 Ok
to: 554 5.7.1 : Recipient address rejected: Access denied
The following SMTP error was encountered: 554 5.7.1 : Recipient address rejected: Access denied 
data: 554 5.5.1 Error: no valid recipients
The following SMTP error was encountered: 554 5.5.1 Error: no valid recipients 
221 2.7.0 Error: I can break rules, too. Goodbye. 
The following SMTP error was encountered: 221 2.7.0 Error: I can break rules, too. Goodbye. 
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

部分配置

smtpd_recipient_restrictions = permit_mynetworks,permit_auth_destination,permit_sasl_authenticated,reject
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/pki/dovecot/certs/dovecot.pem
smtpd_tls_key_file = /etc/pki/dovecot/private/dovecot.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:/etc/postfix/smtpd_scache
smtpd_use_tls = yes

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

太阳公公是暖光 2022-09-08 21:00:07

postconf 开始了 smtpd_tls_auth_only = yes选项,导致tls认证不通过就报错。

所以为了以防万一还是把这个选项设置成smtpd_tls_auth_only = no或者直接注释掉

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文