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

Connection could not be established with host, but only with certain mails #953

Closed
korsmakolnikov opened this issue Jun 13, 2017 · 3 comments

Comments

@korsmakolnikov
Copy link

request.CRITICAL: Uncaught PHP Exception Swift_TransportException: "Connection could not be established with host host.com [ #0]" at vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php line 269 {"exception":"[object] (Swift_TransportException(code: 0): Connection could not be established with host host.com [ #0] at vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:269)"}

I found this error in production today and I've discovered it happens purely in random way. I have no other errors on logs, so it seems that nothing is break in my source code. Host.com is not actually the address (I simply hide it) of my smtp server but we ping it from local and from our web server machine, I could also log into mail service console normally.
Any Ideas?

@xdecock
Copy link
Member

xdecock commented Jun 13, 2017 via email

@fredec
Copy link

fredec commented Nov 2, 2018

It's probably a problem with the SSL certificate. Take a look at here: https://laravel.io/forum/04-03-2014-problem-with-sending-emails

@NewtonCazzaro
Copy link

I know how to solve your problem.. Simply rekey your SSL cert and wait 48h*. You must wait 48h as the domain might get certified ,but the SMTP servers takes longer to propagate.

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

4 participants