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

发邮件至Gmail邮箱失败 #236

Open
4 tasks done
shldol opened this issue Jan 6, 2025 · 5 comments
Open
4 tasks done

发邮件至Gmail邮箱失败 #236

shldol opened this issue Jan 6, 2025 · 5 comments

Comments

@shldol
Copy link

shldol commented Jan 6, 2025

完整性要求 / Integrity requirements

  • 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
  • 我提供了完整的配置文件和日志,而不是出于自己的判断只给出截取的部分。
  • 我搜索了issues,没有发现已提出的类似问题。
  • 我已经阅读了项目Readme常见问题

版本

2.8.0

服务端配置


服务端日志


[info][2025-01-06 09:12:26][ac110011677b2dfad5b30001e97432b0][/work/controllers/email/send.go:58]发送邮件
[warning][2025-01-06 09:13:52][ac110011677b2dfad5b30001e97432b0][/work/utils/send/send.go:192]Unsafe! gmail.com Server Not Support SMTPS & STARTTLS
[error][2025-01-06 09:15:15][ac110011677b2dfad5b30001e97432b0][/work/utils/send/send.go:213][0xc0002343e0] 邮件投递失败EOF
[error][2025-01-06 09:15:15][/work/hooks/framework/framework.go:123]params error json: cannot unmarshal object into Go struct field HookDTO.ErrMap of type error

描述

部署好后发邮件至GMAIL邮箱,会提示以下错误Unsafe! gmail.com Server Not Support SMTPS & STARTTLS
邮件投递失败
[info][2025-01-06 09:12:26][ac110011677b2dfad5b30001e97432b0][/work/controllers/email/send.go:58]发送邮件
[warning][2025-01-06 09:13:52][ac110011677b2dfad5b30001e97432b0][/work/utils/send/send.go:192]Unsafe! gmail.com Server Not Support SMTPS & STARTTLS
[error][2025-01-06 09:15:15][ac110011677b2dfad5b30001e97432b0][/work/utils/send/send.go:213][0xc0002343e0] 邮件投递失败EOF
[error][2025-01-06 09:15:15][/work/hooks/framework/framework.go:123]params error json: cannot unmarshal object into Go struct field HookDTO.ErrMap of type error

重现方式

直接给Gmail发邮件即可

@Jinnrry
Copy link
Owner

Jinnrry commented Jan 6, 2025

没能复现,我目测,你服务器是不是在国内呀,使用的国内的DNS服务器?

gmail域名存在dns污染,ip被解析到莫名其妙的地方去了,导致TLS握手失败就报这个错误了

@shldol
Copy link
Author

shldol commented Jan 6, 2025

没能复现,我目测,你服务器是不是在国内呀,使用的国内的DNS服务器?

gmail域名存在dns污染,ip被解析到莫名其妙的地方去了,导致TLS握手失败就报这个错误了

奇怪了 我的主路由上是有passwall的 局域网内的机器都能访问google,gmail。应该不会存在DNS污染问题

@Jinnrry
Copy link
Owner

Jinnrry commented Jan 6, 2025

你的证书有问题吗?是自动生成的证书吗

@Jinnrry
Copy link
Owner

Jinnrry commented Jan 6, 2025

主路由能访问google gmail不代表dns没污染呀,可能代理没有转发mx的dns查询?一般代理转发A记录和AAAA记录就能保证正常上网,但是PMail需要MX记录。

@shldol
Copy link
Author

shldol commented Jan 6, 2025

你的证书有问题吗?是自动生成的证书吗

不是 是外面找的商业1年签的证书 已经按教程添加了所有需要的域名记录 我感觉还真有可能是代理没有转发mx的dns查询

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants