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

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

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

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

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

【热门文章】
【热门文章】