Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMTP STARTTLS 兼容性问题 #291

Open
6 tasks done
Brave963 opened this issue Nov 25, 2024 · 12 comments
Open
6 tasks done

SMTP STARTTLS 兼容性问题 #291

Brave963 opened this issue Nov 25, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@Brave963
Copy link

Brave963 commented Nov 25, 2024

  • 我已确认目前没有类似 issue
  • 我已确认我已升级到最新版本
  • 我已完整浏览项目 README 和项目文档并未找到解决方案
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我将以礼貌和尊重的态度提问,不得使用不文明用语 (包括在此发布评论的所有人同样适用, 不遵守的人将被 block)
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述
SMTP服务器那里代码里是有支持StartTLS的,但是在实际操作中,报错authentication not qualified,而且outlook现在也是用不了的了 需要auth2或是modern authentication 不支持应用密码了 望作者优化下那部分的代码
复现步骤
SMTP服务器功能配置填写Ahasend的server ahasend那边是需要StartTLS的 导致认证出错 本人验证了用swaks跑是可以正常运行的
预期结果
正常运行SMFP服务器去发送邮件
日志信息

相关截图 (如果有)

@Brave963 Brave963 added the bug Something isn't working label Nov 25, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: StartTLS is not supported, which cost me a whole night (8 hours)😭

  • I have confirmed that there is currently no similar issue
  • I have confirmed that I have upgraded to the latest version
  • I have completely browsed the project README and project documentation and did not find a solution
  • I understand and am willing to follow up on this issue, assist with testing and provide feedback
  • I will ask questions in a polite and respectful manner and shall not use uncivilized language (the same applies to everyone who posts comments here, those who do not comply will be blocked)
  • I understand and acknowledge the above content, and understand that project maintainers have limited energy. Issues that do not follow the rules may be ignored or closed directly

Problem description
The code of the SMTP server supports StartTLS, but in actual operation, an authentication not qualified error is reported, and Outlook cannot be used now. Auth2 or modern authentication is required. Application passwords are not supported. I hope the author can optimize that part of the code.
Steps to reproduce
SMTP server function configuration fills in the server of Ahasend. Ahasend requires StartTLS, which leads to authentication errors. I have verified that it can run normally with swaks.
Expected results
Run the SMFP server normally to send emails
Log information

Relevant screenshots (if any)

@SpiralTower
Copy link

outlook强制使用oauth验证,建议先使用阿里免费企业邮箱或者qq邮箱等过渡

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Outlook is forced to use oauth authentication. It is recommended to use Alibaba's free corporate email or QQ email first for transition.

@Brave963
Copy link
Author

outlook强制使用oauth验证,建议先使用阿里免费企业邮箱或者qq邮箱等过渡

Pull request 有个大佬已经解决了我的问题了 可以使用StartTLS去用ahasend的SMTP服务器了

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Outlook is forced to use oauth authentication. It is recommended to use Alibaba's free corporate email or QQ email first for transition.

Pull request A big guy has solved my problem. You can use StartTLS to use ahasend's SMTP server.

@omega-leo
Copy link

我用了最新版的镜像后反而不能用 outlook 发件了,更新前是可以的,用户名密码填的微软账号密码。

image

image

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


After using the latest version of the image, I can no longer use outlook to send emails. Before the update, it was possible. The username and password were filled in with the Microsoft account password.

image

image

@zmh-program zmh-program reopened this Dec 3, 2024
@zmh-program zmh-program changed the title 不支持StartTLS 害我搞了一晚上(耗时八小时)😭 SMTP STARTTLS 兼容性问题 Dec 3, 2024
@zmh-program
Copy link
Member

smtp兼容性确实耐人钻研,等有空专门设计一个专项反馈smtp provider兼容性问题。

生产仍然推荐使用 resend, 腾讯云发件(hk), 阿里云发件, lark mail。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


The smtp compatibility is really interesting to study, and I will design a special project to provide feedback on the smtp provider compatibility issue when I have time.

For production, it is still recommended to use resend, Tencent Cloud Send (hk), Alibaba Cloud Send, and Lark Mail.

@zmh-program
Copy link
Member

#301 测试一下 @omega-leo

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


#301 Test it @omega-leo

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Boss, I still can’t post it.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants