Gmail - smtp error 421 4.7.0 [closed]

萝らか妹 提交于 2019-12-24 07:58:35

问题


We are using gmail oAuth2 to send the mail from nodemailer and receiving below error -

{"code":"EENVELOPE","response":"421 4.7.0 Temporary System Problem.  
Try again later (WS). e189-v6sm98ioe.0 - 
gsmtp","responseCode":421,"command":"DATA"}

Out testing team by mistake run the automation test script and triggered a lot of mails simultaneously, I understand that might have blocked the mail's temporarily as the error suggest. I am interested to know how long this blockage will continue and what can one do to resolve it. At this point it is not possible for us to switch mail sending from gmail to some thing else.


回答1:


I faced the same problem as I tried to pump several mails as part of load testing, nearly 100 mails in a minute. After sending 500 mails, Gmail started rejecting the connection with the same error.

The situation became normal after I introduced a think time of 1 second, limiting the outgoing mail at < 50 per min.

For me, Gmail was rejecting my mails only for a duration of 3 minutes.




回答2:


It is a 24 hours lockout; however, sometimes it can be just temporary. Try reducing the amount of connections sent to be no more than 1 every other second.



来源:https://stackoverflow.com/questions/50284228/gmail-smtp-error-421-4-7-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!