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

seelog internal error #139

Open
CodyGuo opened this issue Dec 25, 2016 · 4 comments
Open

seelog internal error #139

CodyGuo opened this issue Dec 25, 2016 · 4 comments

Comments

@CodyGuo
Copy link

CodyGuo commented Dec 25, 2016

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.

@lwithers
Copy link

lwithers commented Jan 8, 2017

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 ?

@CodyGuo
Copy link
Author

CodyGuo commented Jan 8, 2017

This library can be sent
https://github.com/go-gomail/gomail

@lwithers
Copy link

lwithers commented Jan 8, 2017

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.

@liguodong
Copy link

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>

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

No branches or pull requests

4 participants