Linux 使用外部 smtp 服务器发送电子邮件时达到 Amazon EC2 邮件限制
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5124128/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Amazon EC2 mail limit reached while using external smtp server to send emails
提问by Kiran
Hi
I am sending lots of emails from and Amazon EC2 linux instance using grails MailSender Service(Uses Java Mail API underneath). 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.
嗨,
我正在使用 grails MailSender 服务(在下面使用 Java Mail API)从 Amazon EC2 linux 实例发送大量电子邮件。我已将邮件 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. Additionally, I do get intermittent connection timeout errors for connecting to the external smtp server from the Java Mail API.
当我一直使用外部 smtp 服务器发送电子邮件时,我无法理解我是如何达到限制的。此外,我在从 Java Mail API 连接到外部 smtp 服务器时确实会遇到间歇性连接超时错误。
Any help is greatly appreciated.
任何帮助是极大的赞赏。
Thanks
谢谢
回答by Femaref
They probably restrict the number of total connections on port 25, and as you used that port to connect to the external server, it would be the same as sending the email directly from the server.
他们可能会限制端口 25 上的总连接数,并且当您使用该端口连接到外部服务器时,这与直接从服务器发送电子邮件相同。
回答by Simon at LabSlice-com
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
回答by Adrian Petrescu
By the way, if you're sending large volumes of E-mail from AWS infrastructure, you might be interested in this new service: Amazon Simple Email Service.
顺便说一下,如果您从 AWS 基础设施发送大量电子邮件,您可能会对这项新服务感兴趣:Amazon Simple Email Service。
回答by user3586516
My suggestion will be until amazon removes your smtp limit, connect to your email server using 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.
我的建议是在亚马逊取消您的 smtp 限制之前,使用 VPN 连接到您的电子邮件服务器。我在端口 25 上使用带有 tls 和 sasl 身份验证的 phpmailer 时遇到了类似的问题。因为我们托管我们的电子邮件服务器,所以我能够使用 VPN 连接电子邮件服务器并发送电子邮件。