简体   繁体   English

使用外部smtp服务器发送电子邮件时达到Amazon EC2邮件限制

[英]Amazon EC2 mail limit reached while using external smtp server to send emails

Hi 你好
I am sending lots of emails from and Amazon EC2 linux instance using grails MailSender Service(Uses Java Mail API underneath). 我使用grails MailSender Service(使用下面的Java Mail API)从Amazon EC2 linux实例发送大量电子邮件。 I have configured the Mail API to use an external smtp server on port 25 to send the emails and I could verify from the external email server logs that emails are indeed sent by them. 我已将Mail API配置为使用端口25上的外部smtp服务器发送电子邮件,我可以从外部电子邮件服务器日志验证电子邮件确实是由他们发送的。

But Amazon AWS has sent me an email saying that I reached their email sending limit to send out of SMTP port 25 . 但是亚马逊AWS已经向我发送了一封电子邮件,说我已经达到他们的电子邮件发送限制,以便发送出SMTP端口25。

I am not able to understand how did I reach the limit when I have always used external smtp server to send emails. 当我一直使用外部smtp服务器发送电子邮件时,我无法理解我是如何达到限制的。 Additionally, I do get intermittent connection timeout errors for connecting to the external smtp server from the Java Mail API. 此外,我确实从Java Mail API连接到外部smtp服务器时出现间歇性连接超时错误。

Any help is greatly appreciated. 任何帮助是极大的赞赏。

Thanks 谢谢

There's a limit on outbound emails to stop spamming (I presume). 出站电子邮件有限制,以阻止垃圾邮件(我猜)。 You can request to override this: https://aws-portal.amazon.com/gp/aws/html-forms-controller/contactus/ec2-email-limit-rdns-request 您可以请求覆盖此: https//aws-portal.amazon.com/gp/aws/html-forms-controller/contactus/ec2-email-limit-rdns-request

顺便说一句,如果您从AWS基础架构发送大量电子邮件,您可能会对这项新服务感兴趣: Amazon Simple Email Service

它们可能会限制端口25上的总连接数,并且当您使用该端口连接到外部服务器时,它与直接从服务器发送电子邮件相同。

My suggestion will be until amazon removes your smtp limit, connect to your email server using VPN. 我的建议是,直到amazon删除你的smtp限制,使用VPN连接到你的电子邮件服务器。 I had a similar issue using phpmailer with tls and sasl authentication on port 25. Because we are hosting our email server I was able to use the VPN to connect on the email server and send emails out. 我在端口25上使用phpmailer和tls和sasl身份验证有类似的问题。因为我们托管我们的电子邮件服务器,所以我能够使用VPN连接电子邮件服务器并发送电子邮件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM