Google engineers confirm some of the emails sent by Postman are being blocked
-
THE PROBLEM
============Gmail servers are blocking some emails sent (through the Gmail API) by the Postman SMTP Mailer/Email Log plugin, it has been confirmed by Google engineers.
They state that out of many connections started by the plugin, a few of them are blocked due to the fact the plugin is using a EHLO argument of “localhost“.
They explain that Gmail servers check for the frequency of the EHLO/HELO argument (for “localhost“) and if it hits certain threshold it starts rejecting some of these connections. At the same time they clarify that their servers do not associate the EHLO/HELO argument with the IP address, that means that if within a time window there are different users using “localhost” as EHLO/HELO argument then they start blocking some of these connections.
I have done some research and I can corroborate Google engineer’s argument of “localhost” as EHLO/HELO argument not being a good practice (serverfaul).
THE SOLUTION
============Changing the EHLO argument to mydomain.com (senders domain) fixes the problem.
I solved it in a very rudimentary way (I am not a programmer), editing:
postman-smtp/Postman/Postman-Mail/Zend-1.12.10/Mail/Protocol/Smtp.php
Adding$host=‘mydomain.com’;
after line 196.HOW TO KNOW IF YOU HAVE BEEN AFFECTED BY THIS ISSUE
===================================================This issue might have been affecting a lot of users without noticing it.
I installed Postman SMTP and set it up to work using OAuth 2 and Gmail.
I have always kept an eye on my email log (looking at the sessions transcripts in case something has gone wrong). All along 2 months (since I installed the plugin) I could see that between 5% and 10% of my outbound emails were being rejected by Gmail servers. I even opened a support topic here. I got in touch with Google support and they escalated it to their engineers…the rest has been told above.
So if you are wondering if you have been affected, just check your email log and if you find a Status of “Could not read from smtp-relay.gmail.com” then look at the session transcript and search for a line saying:
“421 4.7.0 Try again later, closing connection. (EHLO) XXXXXXXXX.X – gsmtp (right after “EHLO localhost”).
- The topic ‘Google engineers confirm some of the emails sent by Postman are being blocked’ is closed to new replies.