seelog internal error
Opened this issue · 4 comments
mail.aliyun.com
seelog internal error: dial tcp 140.205.78.2:25: connectex: A connection attempt failed because the connected party did not properly resp
ond after a period of time, or established connection failed because connected host has failed to respond.
I guess from the port 25 that you are trying to use the SMTP writer?
It just sounds like something is not quite configured correctly — whether it's the port number (587 is more common than 25 for message submission), username/password or TLS settings I'm not sure. Judging from the error message it's more likely to be a port number or firewall issue. Can you manually talk to the server if you try telnet 140.205.78.2 25
?
This library can be sent
https://github.com/go-gomail/gomail
From a quick search in the Go source code, the error message you are getting is from a Windows "connect to remote server" function. I'm not at all familiar with Windows, but as far as I can see this must mean that the IP address or port number is wrong. DNS for mail.aliyun.com points to the IP you gave, so that seems correct. I can't connect to either port 25 or 587 from my machine, however.
I can't see that using a different library would change anything at this level (and in fact gomail is using the same net/smtp
library underneath that seelog uses).
Can you share your dialer setup for gomail, and your configuration for seelog? Obviously you can hide the username/password.
Cody, I'm not familiar with mail.aliyun.com, but we are using exmail.qq.com and I'm sure we have to use a ssl connection to port 465 without a caCert.
I guess aliyun doesn't support a plaintext transportation via port 25 neither, so you have to use a ssl connection to 587 or 465 (you can find or ask aliyun for support), but I don't know weather a caCert is required when sending email, if it's required, you should set <cacertdirpath path="cacdp1"/>
as a sub-node under <smtp>