You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

NTFY无法与Microsoft Outlook完成SMTP认证的问题求助

NTFY无法与Microsoft Outlook完成SMTP认证的问题求助

大家好,我最近在配置NTFY的SMTP邮件通知时遇到了瓶颈,按照官方文档配置后始终无法成功发送邮件,报错提示认证类型不被识别,想请教下有没有同学碰到过类似的情况?

配置依据

  • 首先我参考了微软官方给出的Outlook SMTP参数,这些参数在其他服务中使用完全正常:
    • SMTP服务器名称:smtp-mail.outlook.com
    • SMTP端口:587
    • SMTP加密方式:STARTTLS
  • 同时NTFY的文档也明确说明支持SMTP和STARTTLS,原文如下:

"As of today, only SMTP servers with PLAIN auth and STARTLS are supported."

尝试过的配置及错误日志

我在/etc/ntfy/server.yml中先后尝试了两种配置方式,但最终都失败了,日志里均出现504 5.7.4 Unrecognized authentication type的错误提示。

第一种配置(微软推荐的主SMTP地址)

smtp-sender-addr: "smtp-mail.outlook.com:587"
smtp-sender-from: "alias@cencored.com"
smtp-sender-pass: "cencored"
smtp-sender-user: "cencored@cencored.com"

对应的错误日志:

{"time":"2024-02-08T22:33:56.559Z","level":"WARN","message":"Unable to send email to cencored@cencored.com: 504 5.7.4 Unrecognized authentication type [CY4PR0501MB3908.namprd05.prod.outlook.com 2024-02-08T22:33:51.710Z 08DC255743C7]","email":"cencored@cencored.com","error":"504 5.7.4 Unrecognized authentication type [CY4PR0501MB3908.namprd05.prod.outlook.com 2024-02-08T22:33:51.710Z 08DC25520C743C70]","message_body_size":9,"message_event":"message","message_id":"4qmF5LaJcSpv","message_sender":"172.25.0.1","message_time":1707431626,"message_user":"u_U5MeBhxJuu","tag":"email","topic":"test-expiry-notifications","user_id":"u_U5MeBhxJuu","user_name":"cwood","visitor_auth_limiter_limit":0.016666666666666666,"visitor_auth_limiter_tokens":30,"visitor_emails":2,"visitor_emails_limit":24,"visitor_emails_remaining":22,"visitor_id":"ip:172.25.0.1","visitor_ip":"172.25.0.1","visitor_messages":2,"visitor_messages_limit":17280,"visitor_messages_remaining":17278,"visitor_request_limiter_limit":0.2,"visitor_request_limiter_tokens":57.056149986399994,"visitor_seen":"2024-02-08T22:33:52.477Z"}

第二种配置(Office365旧版SMTP端点)

我后来尝试切换到旧版的SMTP端点,仅修改了服务器地址,其他参数保持不变:

smtp-sender-addr: "smtp-legacy.office365.com:587"

对应的错误日志:

{"time":"2024-02-08T23:16:18.697Z","level":"WARN","message":"Unable to send email to cencored@cencored.com: 504 5.7.4 Unrecognized authentication type [CY4PR0501.prod.exchangelabs.com 2024-02-08T23:16:13.824Z 08DC27850D59]","email":"cencored@cencored.com","error":"504 5.7.4 Unrecognized authentication type [CY4PR0501.prod.exchangelabs.com 2024-02-08T23:16:13.824Z 08DC278511F0D59E]","message_body_size":9,"message_event":"message","message_id":"H0c2IFiqomiR","message_sender":"172.26.0.1","message_time":1707434168,"message_user":"u_U5MeBhxJuu","tag":"email","topic":"test-expiry-notifications","visitor_auth_limiter_limit":0.016666666666666666,"visitor_auth_limiter_tokens":30,"visitor_emails":1,"visitor_emails_limit":24,"visitor_emails_remaining":23,"visitor_id":"ip:172.26.0.1","visitor_ip":"172.26.0.1","visitor_messages":1,"visitor_messages_limit":17280,"visitor_messages_remaining":17279,"visitor_request_limiter_limit":0.2,"visitor_request_limiter_tokens":60,"visitor_seen":"2024-02-08T23:16:09.983Z"}

求助问题

有没有朋友知道这种认证类型不被识别的问题是怎么回事?是不是NTFY的PLAIN认证和Outlook的SMTP之间有什么特殊的配置要求?比如是否需要开启某些权限,或者配置额外的参数?麻烦大家帮忙指点一下,谢谢!

备注:内容来源于stack exchange,提问作者MrChadMWood

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.20 06:23:03