46 Star 35 Fork 122

openEuler / infrastructure

 / 详情

Figure out gmail PTR issue

待办的
任务 成员
创建于  
2019-09-18 11:47

raw content from exim4 log:

2019-09-18 03:22:48 1iAQYD-0000Ap-2K ** xxxxxx@gmail.com 
R=dnslookup_relay_to_domains T=remote_smtp: SMTP error from remote mail 
server after end of data: host gmail-smtp-in.l.google.com [74.125.203.27]: 
550-5.7.1 [159.138.58.40] The IP address sending this message does not have 
a\n550-5.7.1 PTR record setup. As a policy, Gmail does not accept messages
 from\n550-5.7.1 IPs with missing PTR records. Please visit\n550-5.7.1  
https://support.google.com/mail/answer/81126#authentication for more\n550 
5.7.1 information. i24si3205050pgi.56 - gsmtp

评论 (8)

TommyLike 创建了任务
TommyLike 修改了描述
展开全部操作日志

@TommyLike could you please let us know does this issue only occur on gmail system? and what kind of PTR do you suggest? thanks

openeuler-ci-bot 负责人设置为TommyLike

this issue is assigned to: @TommyLike.

Hi, I am expert with SMTP protocol.
A PTR record is a kind of DNS record that reverse point an IP to a domain. You should ask IP addr provider(ISP like 电信) to add the PTR for you. For example:

DNS A record: mail.openeuler.org -> 1.1.1.1
DNS PTR record: 1.1.1.1 -> mail.openeuler.org. (when setup record, it's not 1.1.1.1 by the way).

With this PTR record, email receiver system(gmail) knows that the sender owns the IP. (by checking whether email sender(domain) and email send IP matches, otherwise someone may send fake emails).

This is a kind of spam email protection mechanism.

By the way, you should setup TXT record like "v=spf xxxxx" too,almost all email system will check this record.

@freesky-edward @TommyLike

@Qianbiao.NG thanks, from what I know, we already have configured as what you are saying. @freesky-edward have more detail to share, but we are very gladed that you can help us with our mail system, since there are still some features and issues left here, for example the Unicode issue。

yeah, we already support the PTR,spf,dmarc,dkim currently. please refer to [dns definition] (https://gitee.com/openeuler/infrastructure/blob/master/environment/huaweicloud/resources.tf#L124) for more detailed information.
@Qianbiao.NG thank you so much anyway.
@TommyLike is it time to close this isuss now?

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(5)
5229366 tommylike 1578982886 5210900 freesky edward 1578982489 5227357 xiangxinyong 1578982846 5329419 openeuler ci bot 1632792936 131257 woocupid 1578918948
Shell
1
https://gitee.com/openeuler/infrastructure.git
git@gitee.com:openeuler/infrastructure.git
openeuler
infrastructure
infrastructure

搜索帮助