SwiftMailer error: Expected response code 250 but got code "", with message ""
I have supervisord running 8 Laravel queue worker instances. I just upgraded our server to PHP7.0 and L5.4, but now I'm getting this error when queuing messages:
Expected response code 250 but got code "", with message ""
frequently during peak traffic times. It doesn't appear our SMTP server is even getting these requests - no throttling or spam blocking is being shown.
Any idea what this error is telling me? Is my SMTP at fault or something in the PHP/Apache setup?
I restarted supervisor service and it seems to fix the issue for a while... is there a setting that could be not releasing a resource or something?
I also see this new error:
fwrite(): send of 8192 bytes failed with errno=11 Resource temporarily unavailable
still getting the error, i'm trying running queue:restart 2x per day.
it seems even overnight when load is low this just compounds once it starts happening. I have the queue set to retry 5 times and am still getting this error.
Solution! Apparently one of our Cisco routers had Esmtp Inspection turned on, which was messing with the detecting of the connection close. I still get "Connection to X timed out", but I think that's the SMTP connection closing after 2 minutes.