AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1135335
Accepted
ekkis
ekkis
Asked: 2023-07-01 11:03:16 +0800 CST2023-07-01 11:03:16 +0800 CST 2023-07-01 11:03:16 +0800 CST

535 5.7.8 错误:身份验证失败:UGFzc3dvcmQ6

  • 772

我在 Fedora 38 机器上安装了 Postfix,其中包含以下内容:

$ grep smtp_ main.cf
smtp_sasl_auth_enable = yes
smtp_sasl_type = cyrus
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_always_send_ehlo = yes
smtp_use_tls = yes
smtp_sasl_tls_security_options = noanonymous
smtp_tls_wrappermode = yes
smtp_tls_security_level = encrypt

$ grep smtpd_ main.cf
smtpd_banner = $myhostname ESMTP
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
smtpd_client_restrictions = permit_mynetworks, permit
smtpd_recipient_restrictions = permit_mynetworks, permit_auth_destination, permit_sasl_authenticated, reject
# smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/pki/tls/certs/arixserver.crt
smtpd_tls_key_file = /etc/pki/tls/certs/arixserver.key
smtpd_tls_session_cache_database = btree:/etc/postfix/smtpd_scache

我试图像这样登录它,其中用户名/密码是用类似的东西生成的perl -MMIME::Base64 -e 'print encode_base64("myvalue")

$ telnet mail 25
Trying 107.133.6.164...
Connected to arix.com.
Escape character is '^]'.
220 mail.arix.com ESMTP
EHLO arix.com
250-mail.arix.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250 CHUNKING
AUTH LOGIN
334 VXNlcm5hbWU6
Z=======
334 UGFzc3dvcmQ6
Z===========YXNz
535 5.7.8 Error: authentication failed: UGFzc3dvcmQ6

我在这里阅读了很多帖子,据我了解,对服务器的身份验证是由 Dovecot 处理的(所以我猜测 smtpd_* 信息是相关的),并且我知道用户名/密码是正确的,因为我可以登录使用它们的主机(使用 SSH),以及:

$ testsaslauthd -u $USR -p $PASS
0: OK "Success..

为什么我会遇到身份验证失败的情况?

TIA——埃基斯

postfix
  • 1 1 个回答
  • 21 Views

1 个回答

  • Voted
  1. Best Answer
    Erick Calder
    2023-07-01T11:45:40+08:002023-07-01T11:45:40+08:00

    像这样生成 base64 值会更好:

    $ echo -ne '\000user\000password' |openssl base64
    

    并且 AUTH PLAIN 将起作用

    • 1

相关问题

  • Postfix 在特定端口上接受邮件

  • 让 Postfix 以两种方式处理垃圾邮件

  • Postfix 或 exim:自动/程序化和转发电子邮件设置

  • 后缀电子邮件地址

  • 什么是最好的开源电子邮件解决方案包

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve