关于maddy-mail发送邮件的问题

能够正常接收邮件,但却无法发送,我实在不懂怎么设置(但我如果使用同样步骤配置,但增加了frp反代理功能却能够正常发送邮件),我用的腾讯云服务器,我也不清楚rDNS该如何配置,我使用了cloudflare的ptr记录但始终无法使用rDNS。


我这样配置到底正确吗?
下面附上发送失败的容器日志

table.file: ignoring non-existent file: /etc/maddy/aliases	
smtp: listening on tcp://0.0.0.0:25	
submission: listening on tls://0.0.0.0:465	
submission: listening on tcp://0.0.0.0:587	
imap: listening on tls://0.0.0.0:993	
imap: listening on tcp://0.0.0.0:143	
submission: incoming message	{"msg_id":"9cc3afa4","sender":"ysmj@ysmj.xyz","src_host":"[10.211.209.219]","src_ip":"116.169.80.240:47520","username":"ysmj@ysmj.xyz"}
submission: RCPT ok	{"msg_id":"9cc3afa4","rcpt":"2106758890@qq.com"}
submission: accepted	{"msg_id":"9cc3afa4"}
submission: rDNS error	{"reason":"dial udp 127.0.0.11:53: operation was canceled","src_ip":"116.169.80.240:47520"}
remote: cannot use MX	{"domain":"qq.com","io_op":"dial","msg_id":"9cc3afa4-65e9c742","reason":"dial tcp 109.244.198.41:25: i/o timeout","remote_addr":"109.244.198.41:25","remote_server":"mx3.qq.com.","smtp_code":450,"smtp_enchcode":"4.4.2","smtp_msg":"Network I/O error"}
remote: cannot use MX	{"domain":"qq.com","io_op":"dial","msg_id":"9cc3afa4-65e9c742","reason":"dial tcp 43.141.43.82:25: connect: connection timed out","remote_addr":"43.141.43.82:25","remote_server":"mx2.qq.com.","smtp_code":450,"smtp_enchcode":"4.4.2","smtp_msg":"Network I/O error"}
remote: cannot use MX	{"domain":"qq.com","io_op":"dial","msg_id":"9cc3afa4-65e9c742","reason":"dial tcp 109.244.198.41:25: i/o timeout","remote_addr":"109.244.198.41:25","remote_server":"mx1.qq.com.","smtp_code":450,"smtp_enchcode":"4.4.2","smtp_msg":"Network I/O error"}
queue: delivery attempt failed	{"domain":"qq.com","io_op":"dial","msg_id":"9cc3afa4","rcpt":"2106758890@qq.com","reason":"dial tcp 109.244.198.41:25: i/o timeout","remote_addr":"109.244.198.41:25","smtp_code":451,"smtp_enchcode":"5.4.0","smtp_msg":"No usable MXs, last err: dial tcp 109.244.198.41:25: i/o timeout","target":"remote"}
queue: will retry	{"attempts_count":{"2106758890@qq.com":1},"msg_id":"9cc3afa4","next_try_delay":"14m59.999998658s","rcpts":["2106758890@qq.com"]}

找到发不出邮件问题了,应该是25端口被封的问题

可以写一篇文章,讲一下通过 1Panel 应用商店来安装并使用 maddy-mail 邮件服务器。

1 个赞

如何解决呢?我问了阿里云的25端口被封指的是云服务器不能访问外部服务的25端口所以发不出邮件去,如何设置maddy让它走465端口传输呢?

1 个赞

我遇到了同样的问题,请问有办法解决吗

配置ssl就是465端口了,或者手动修改配置将25端口改为其他端口。

配置ssl就是465端口了,或者手动修改配置将25端口改为其他端口。或者向服务商申请开放25端口,一个号好像可以开放4个IP的25端口。我腾讯云默认是开通状态。