Jinnrry/PMail

尝试往edu发送邮件失败

Closed this issue · 2 comments

请说明问题 / Describe the bug
自己管理的证书,config关闭https,用nginx反代的https,发送邮件到gmail和qq邮箱都能成功但是往edu后缀邮箱发邮件时候被reject了,这是对方服务器不支持smtps吗,应该如何配置

日志信息 / Log

log
[root@VM-0-5-centos pmail]# ./pmail_linux_amd64
[info][2024-05-20 14:43:26][/home/runner/work/PMail/PMail/server/main.go:81]*******************************************************************
[info][2024-05-20 14:43:26][/home/runner/work/PMail/PMail/server/main.go:82]***	Server Start Success 

[info][2024-05-20 14:43:26][/home/runner/work/PMail/PMail/server/main.go:83]***	Server Version: v2.4.7 

[info][2024-05-20 14:43:26][/home/runner/work/PMail/PMail/server/main.go:84]***	Git Commit Hash: bd26a3904918d425f7619c4e7e1a1066bcb7c53b 
[info][2024-05-20 14:43:26][/home/runner/work/PMail/PMail/server/main.go:85]***	Build Date: 2024-04-30 14:52:42 
[info][2024-05-20 14:43:26][/home/runner/work/PMail/PMail/server/main.go:86]***	Build GoLang Version: go version go1.22.2 linux/amd64 
[info][2024-05-20 14:43:26][/home/runner/work/PMail/PMail/server/main.go:87]*******************************************************************
[info][2024-05-20 14:43:26][/home/runner/work/PMail/PMail/server/hooks/base.go:179][web_push_linux_amd64] Plugin Load
[web_push_linux_amd64] Plugin Start! PID:2489[info][2024-05-20 14:43:27][/home/runner/work/PMail/PMail/server/hooks/base.go:211][web_push_linux_amd64] Plugin Load Success!
[warning][2024-05-20 14:43:27][/home/runner/work/PMail/PMail/server/res_init/init.go:52]Config File Info:  {"logLevel":"","domain":"","domains":[""],"webDomain":"","dkimPrivateKeyPath":"config/dkim/dkim.priv","sslType":"1","SSLPrivateKeyPath":"./config/ssl/private.key","SSLPublicKeyPath":"./config/ssl/public.crt","dbDSN":"./config/pmail.db","dbType":"sqlite","httpsEnabled":2,"spamFilterLevel":0,"httpPort":8002,"httpsPort":8003,"weChatPushAppId":"","weChatPushSecret":"","weChatPushTemplateId":"","weChatPushUserId":"","tgBotToken":"","tgChatId":"","isInit":true,"webPushUrl":"","webPushToken":""}
[info][2024-05-20 14:43:27][/home/runner/work/PMail/PMail/server/pop3_server/pop3server.go:27]POP3 With TLS Server Start On Port :995
[info][2024-05-20 14:43:27][/home/runner/work/PMail/PMail/server/smtp_server/smtp.go:174]Starting Smtp Server Port: :25
[info][2024-05-20 14:43:27][/home/runner/work/PMail/PMail/server/http_server/http_server.go:68]HttpServer Start On Port :8002
[info][2024-05-20 14:43:27][/home/runner/work/PMail/PMail/server/smtp_server/smtp.go:146]Starting Smtp With SSL Server Port: :465
[info][2024-05-20 14:43:27][/home/runner/work/PMail/PMail/server/pop3_server/pop3server.go:46]POP3 Server Start On Port :110
[info][2024-05-20 14:44:42][ac130005664af15a040609b5c17f83b0][/home/runner/work/PMail/PMail/server/controllers/email/send.go:57]发送邮件
[info][2024-05-20 14:46:05][ac130005664af1ad65b909b5bdad6eb0][/home/runner/work/PMail/PMail/server/controllers/email/send.go:57]发送邮件
[warning][2024-05-20 14:46:08][ac130005664af1ad65b909b5bdad6eb0][/home/runner/work/PMail/PMail/server/utils/send/send.go:180]Unsafe! hkbu.edu.hk Server Not Support SMTPS & STARTTLS
[error][2024-05-20 14:46:09][ac130005664af1ad65b909b5bdad6eb0][/home/runner/work/PMail/PMail/server/utils/send/send.go:198][0xc00006c820] 邮件投递失败550 #5.7.1 Your access to submit messages to this e-mail system has been rejected.
[error][2024-05-20 14:46:09][/home/runner/work/PMail/PMail/server/hooks/framework/framework.go:110]params error json: cannot unmarshal object into Go struct field HookDTO.ErrMap of type error

和配置没关系,Unsafe! hkbu.edu.hk Server Not Support SMTPS & STARTTLS这个是提醒你对方服务器不支持加密传输,邮件有泄密的风险

传输连接降级后,对方服务器给出了#5.7.1 Your access to submit messages to this e-mail system has been rejected. 这样的错误。

对方没有给错拒绝原因,可能是对方服务器设置了域名白名单,或者是你发件频率太高被ban了,你可以换个其他邮箱试试能发进去不

和配置没关系,Unsafe! hkbu.edu.hk Server Not Support SMTPS & STARTTLS这个是提醒你对方服务器不支持加密传输,邮件有泄密的风险

传输连接降级后,对方服务器给出了#5.7.1 Your access to submit messages to this e-mail system has been rejected. 这样的错误。

对方没有给错拒绝原因,可能是对方服务器设置了域名白名单,或者是你发件频率太高被ban了,你可以换个其他邮箱试试能发进去不

往另一个邮件发有返回原因了,被Spamhaus ban ip了,尝试申请解除。但是用mail-tester显示全通过,很奇怪。
日志信息 / Log

log
邮件投递失败550 5.7.1 Service unavailable, Client host [xxxx] blocked using Spamhaus. To request removal from this list see https://www.spamhaus.org/query/ip/xxxx AS(1450) [SG1PEPF000082E6.apcprd02.prod.outlook.com 2024-05-20T07:10:53.256Z 08DC7732FC49EC43]