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

x509: certificate is valid for ..., not ... #120

Open
BJBigler opened this issue Jul 11, 2018 · 4 comments
Open

x509: certificate is valid for ..., not ... #120

BJBigler opened this issue Jul 11, 2018 · 4 comments

Comments

@BJBigler
Copy link

Not sure what I'm doing wrong here. The emails send fine from localhost, but when I move the code to production, I get the error, "x509: certificate is valid for mywebhost.com, not smtp.smtphost.com". I'd sure appreciate any advice or direction.

@crazy-canux
Copy link

crazy-canux commented Oct 19, 2018

I got the same problem.
I use python to test the smtp server, it's works.
But with golang, it's not working.
BTW, I don't have authentication for smtp server.

@BJBigler
Copy link
Author

In my case, it wasn't the gomail package, but rather a server configuration issue as described here:

https://documentation.cpanel.net/display/68Docs/Tweak+Settings+-+Mail#TweakSettings-Mail-RestrictoutgoingSMTPtoroot,exim,andmailman(FKASMTPTweak)

@pedromorgan
Copy link

see #104 and #108

@ghost
Copy link

ghost commented Oct 21, 2019

it will only send the credentials if the connection is using TLS
or is connected to localhost. Otherwise authentication will fail with an
error, without sending the credentials.

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

3 participants