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

Better error when failing HELO #63

Open
john8329 opened this issue Nov 29, 2019 · 0 comments
Open

Better error when failing HELO #63

john8329 opened this issue Nov 29, 2019 · 0 comments

Comments

@john8329
Copy link

I found that using smtp-relay.gmail.com while using the localhost LocalName makes the library return an obscure EOF error, while the packet tracer reveals the actual response:

220 smtp-relay.gmail.com ESMTP f10sm1a4899ejl.97 - gsmtp
EHLO localhost
421 4.7.0 Try again later, closing connection. (EHLO) f10sm1a4899ejl.97 - gsmtp
HELO localhost

Specifying a different LocalName fixes the issue, still it makes it hard to debug, it'd be nice to check the server response in smtp.go:64 and return the server error instead of just EOF.

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

1 participant