在上一篇文章中,我用Lightsail搭建了邮件服务器,但很多提供商都因为SPAM的问题屏蔽了SMTP发送邮件的服务.
你可能会想,谁缺德罚谁呗.但是实际情况是,很多SMTP服务的配置不当,可能会被人利用发spam.被利用的人也挺委屈的:我这中规中矩的怎么就被罚了.
另外AWS也有自己的邮件服务,正好,也算多个理由赚钱.一刀切了SMTP既能防治spam又有新业务,啧啧,名利双收.
但是AWS还是讲道理的.可以提交工单解除封锁.而且人家贴出来了:How do I remove the restriction on port 25 from my Amazon EC2 instance or AWS Lambda function?
在这里提交申请
Request to remove email sending limitations
我在这里写的有点简单,当时心里想,碰运气了.估计没人理吧.
结果一个申请发了,几分钟后就收到邮件回复:
Thank you for submitting your request to have the email sending limit removed from your account and/or for an rDNS update.
We will require the following before this request can be processed.
* A clear/detailed use-case for sending mail from EC2.
* What type of configuration or setup have you implemented to prevent spam from originating from your EC2 resource? (Please Elaborate)
惊了,看来AWS认真了. 那么我怎么能不认真呢? XD
这种问题问得和主观题一样, 高中生就很擅长.
要详细分点说明,你要做什么.我邮件里分一二三,贴图证明.
我的理由就不说了,免得给某些人盯上抄作业了.
至于如何防止被利用发SPAM,嗯,你得详细的,从PTR,SPF,DKIM配置入手说明,限制SMTP的入站IP之类的,密码又长又反人类. 配置一遍.我也截了图,配上说明,发了.
十分钟以后收到回复:
We approved your request for the removal of the EC2 email sending limitations on your Amazon Web Services account for the following regions: xxx
完事了.
Comments
(no comments...maybe you can be the first?)