Jon*_*han 5 postfix-mta smtp sasl cyrus smtp-auth
我有一个运行postfix + dovecot作为邮件服务器的VPS服务器.我已经创建了两个运行良好的帐户.两者都可以通过STARTTLS和SSL发送和接收电子邮件.
但是,当我今天添加第三个帐户时,它只能接收电子邮件但无法连接SMTP服务器.所以这不是密码错误的问题.SMTP设置与其他两个帐户相同.客户端的设置应该是正确的.
后缀日志说:
Aug 28 12:55:32 server postfix/smtpd[1645]: warning: SASL authentication failure: Password verification failed
Aug 28 12:55:32 server postfix/smtpd[1645]: warning: unknown[203.97.197.232]: SASL PLAIN authentication failed: authentication failure
Aug 28 12:55:35 server postfix/smtpd[1645]: warning: unknown[203.97.197.232]: SASL LOGIN authentication failed: authentication failure
Run Code Online (Sandbox Code Playgroud)
main.cf中的sasl和tls设置为:
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = cyrus
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
Run Code Online (Sandbox Code Playgroud)
谁能帮我吗?
非常感谢你.
| 归档时间: |
|
| 查看次数: |
1786 次 |
| 最近记录: |