Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant