我尝试设置我的 postfix 电子邮件服务器 (mailclient --> postfix/relay host --> smarthost/mailprovider),并在发送邮件时收到以下错误:
luke postfix/smtp[9059]: < smtp.strato.de[81.169.145.133]:587: 535 5.7.8 Authentication failed: wrong user/password
我的邮件日志
....
luke postfix/smtp[9059]: < smtp.strato.de[81.169.145.133]:587: 220 smtp.strato.de ESMTP RZmta (P16 -)
luke postfix/smtp[9059]: > smtp.strato.de[81.169.145.133]:587: EHLO luke.mydomain.de
luke postfix/smtp[9059]: < smtp.strato.de[81.169.145.133]:587: 250-smtp.strato.de greets 87.134.30.76
luke postfix/smtp[9059]: < smtp.strato.de[81.169.145.133]:587: 250-ENHANCEDSTATUSCODES
luke postfix/smtp[9059]: < smtp.strato.de[81.169.145.133]:587: 250-PIPELINING
luke postfix/smtp[9059]: < smtp.strato.de[81.169.145.133]:587: 250-8BITMIME
luke postfix/smtp[9059]: < smtp.strato.de[81.169.145.133]:587: 250-DELIVERBY
luke postfix/smtp[9059]: < smtp.strato.de[81.169.145.133]:587: 250-SIZE 104857600
luke postfix/smtp[9059]: < smtp.strato.de[81.169.145.133]:587: 250-AUTH PLAIN LOGIN CRAM-MD5 DIGEST-MD5
luke postfix/smtp[9059]: < smtp.strato.de[81.169.145.133]:587: 250-STARTTLS
luke postfix/smtp[9059]: < smtp.strato.de[81.169.145.133]:587: 250-BURL imap
luke postfix/smtp[9059]: < smtp.strato.de[81.169.145.133]:587: 250-CHUNKING
luke postfix/smtp[9059]: < smtp.strato.de[81.169.145.133]:587: 250 HELP
luke postfix/smtp[9059]: match_string: smtp_sasl_mechanism_filter: plain ~? plain
luke postfix/smtp[9059]: match_string: smtp_sasl_mechanism_filter: login ~? plain
luke postfix/smtp[9059]: match_string: smtp_sasl_mechanism_filter: login ~? login
luke postfix/smtp[9059]: match_string: smtp_sasl_mechanism_filter: cram-md5 ~? plain
luke postfix/smtp[9059]: match_string: smtp_sasl_mechanism_filter: cram-md5 ~? login
luke postfix/smtp[9059]: match_string: smtp_sasl_mechanism_filter: cram-md5 ~? cram-md5
luke postfix/smtp[9059]: match_string: smtp_sasl_mechanism_filter: digest-md5 ~? plain
luke postfix/smtp[9059]: match_string: smtp_sasl_mechanism_filter: digest-md5 ~? login
luke postfix/smtp[9059]: match_string: smtp_sasl_mechanism_filter: digest-md5 ~? cram-md5
luke postfix/smtp[9059]: match_list_match: DIGEST-MD5: no match
luke postfix/smtp[9059]: server features: 0x103f size 104857600
luke postfix/smtp[9059]: Using ESMTP PIPELINING, TCP send buffer size is 46080, PIPELINING buffer size is 4096
luke postfix/smtp[9059]: smtp_stream_setup: maxtime=300 enable_deadline=0
luke postfix/smtp[9059]: > smtp.strato.de[81.169.145.133]:587: STARTTLS
luke postfix/smtp[9059]: < smtp.strato.de[81.169.145.133]:587: 220 Ready to start TLS
^^^^^^^^^^^^^^^^^^^^starting TLS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
....
luke postfix/smtp[9059]: server features: 0x102f size 104857600
luke postfix/smtp[9059]: Using ESMTP PIPELINING, TCP send buffer size is 46080, PIPELINING buffer size is 4096
luke postfix/smtp[9059]: maps_find: smtp_sasl_password_maps: hash:/etc/postfix/sasl_password(0,lock|fold_fix|utf8_request): [email protected] = [email protected]:MeinGeheimnis
luke postfix/smtp[9059]: mail_addr_find: [email protected] -> [email protected]:MeinGeheimnis
luke postfix/smtp[9059]: smtp_sasl_passwd_lookup: host `smtp.strato.de' user `[email protected]' pass `MeinGeheimnis'
^^^^^^^^^^^^^^^^^^^^^ The sasl_password_lookup gives correct results for host + user + pass ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
luke postfix/smtp[9059]: starting new SASL client
luke postfix/smtp[9059]: name_mask: noplaintext
luke postfix/smtp[9059]: name_mask: noanonymous
luke postfix/smtp[9059]: smtp_sasl_authenticate: smtp.strato.de[81.169.145.133]:587: SASL mechanisms PLAIN LOGIN CRAM-MD5
luke postfix/smtp[9059]: > smtp.strato.de[81.169.145.133]:587: AUTH CRAM-MD5
luke postfix/smtp[9059]: < smtp.strato.de[81.169.145.133]:587: 334 PDNkZWI3NDM4ODNkOTk5ODE3MDBlMmMyOWZkQHNtdHAuc3RyYXRvLmRlPg==
luke postfix/smtp[9059]: xsasl_cyrus_client_next: decoded challenge: <[email protected]>
luke postfix/smtp[9059]: xsasl_cyrus_client_get_user: [email protected]
luke postfix/smtp[9059]: xsasl_cyrus_client_get_passwd: MeinGeheimnis
luke postfix/smtp[9059]: xsasl_cyrus_client_next: uncoded client response [email protected] f932fcf1bcee82d97b2e7b577df016c3
luke postfix/smtp[9059]: > smtp.strato.de[81.169.145.133]:587: bWljaGFlbEByb2VzbGVydGVzcGUuZGUgZjkzMmZjZjFiY2VlODJkOTdiMmU3YjU3N2RmMDE2YzM=
luke postfix/smtp[9059]: < smtp.strato.de[81.169.145.133]:587: 535 5.7.8 Authentication failed: wrong user/password
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
我不明白原因和错误。
我的postconf -n:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
canonical_maps = hash:/etc/postfix/canonical
compatibility_level = 2
inet_interfaces = 127.0.0.1 192.168.178.19
inet_protocols = ipv4
mailbox_size_limit = 0
mua_client_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
myhostname = luke.MyDomain.de
mynetworks = 127.0.0.0/8 192.168.178.0/24
readme_directory = no
recipient_delimiter =
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_dependent
smtp_connection_cache_on_demand = no
smtp_sasl_auth_enable = yes
smtp_sasl_auth_soft_bounce = yes
smtp_sasl_mechanism_filter = plain, login, cram-md5
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
smtp_sasl_security_options = noplaintext, noanonymous
smtp_sasl_tls_security_options = noplaintext, noanonymous
smtp_sender_dependent_authentication = yes
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_relay_restrictions = $mua_client_restrictions
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_loglevel = 2
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
- Postfix 版本 = 3.3.0
- libsasl2 Ubuntu 18.04.04
- 最后更新&& 今天升级
感谢帮助。
答案1
您的电子邮件账户或电子邮件账户密码错误,请更改电子邮件账户密码并重试。
错误 535 - 身份验证数据不正确
“服务器显示:535 - 不正确的身份验证数据”错误通常与您在电子邮件设置中配置(或未配置)的 SMTP 用户身份验证详细信息有关。
维护多个邮件设备并忘记在其中一个设备中更新登录详细信息的邮件用户通常会报告此错误。
但是,在极少数情况下,当邮箱权限由于迁移或帐户/服务器更新等而发生变化时,会导致“535 不正确的身份验证数据”。如果是这种情况,我已经运行了“修复邮箱权限”,这应该可以解决问题。