通过Gmail EC2邮件 [英] EC2 mail via gmail

查看:169
本文介绍了通过Gmail EC2邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个EC2 / CentOS的车辆定位系统,它有后缀/ sendmail来排挤邮件。

I've got a EC2 / centOS vps, it's got postfix / sendmail for pushing out mail.

现在,域它的自我是建立在谷歌DNS,与它的邮件记录指向到Gmail服务器。 Gmail的用于主电子邮件/ SMTP。

Now, the domain it self is set up on Google DNS, with it's mail records pointing to gmail servers. Gmail is used for primary email / smtp.

回到EC2,EC2的并每周电子邮件...你能看到我要与这一点;的Gmail /雅虎/等认为EC2是一个垃圾邮件服务器中,从/回复电子邮件是正确的域名,但服务器的地址/ IP不匹配的域名的MX记录。

Back to the EC2, the ec2 does a weekly email... you can see where I'm going with this; Gmail / Yahoo / etc think the EC2 is a spam server, the from / reply to email is the correct domain, but the server's address / ip doesn't match the domain's MX record.

什么是关联这一点的最好方法是什么?

What's the best way to associate this?

推荐答案

将基于从我的第一个答案的发表评论的第二个答案。所以你保持相同的,你可以要求一个静态IP(弹性IP )从亚马逊IP地址的所有的时间。这将允许您使用您的传入邮件实例(设置MX记录您的IP地址)。接下来,你可能需要一个请求发送到亚马逊删除<一href="https://aws-portal.amazon.com/gp/aws/html-forms-controller/contactus/ec2-email-limit-rdns-request"相对=nofollow> SMTP邮件发送限制。最后,您需要调整您的 SPF记录的确认电子邮件,您的IP到来实际上是从未来您的域名。一旦做到这一点,你应该确定。我说应该...电子邮件是一个有趣的问题得到解决......但的工作...

adding a second answer based on the comment from my first answer. You can request a Static IP (Elastic IP) from Amazon so you keep the same IP address all the time. This will allow you to use your instance for incoming emails (set the MX Record to your IP address). Next, you may need to send a request to Amazon to remove the SMTP mail sending limit. Finally, you need to tweak your SPF Record to confirm the email coming from your IP is actually coming from your domain. Once this is done, you should be ok. I say should... Email is an interesting "problem" to get around... but that should work...

这篇关于通过Gmail EC2邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆