大网数据广告活动
服务器运维问答

Spam filtering: MX record and reverse DNS (PTR)

· 52CE 我爱测

If I perform an MX query on my domain (domain.com) I receive this answer: Pref Hostname IP Address 5 mail.domain.com 12.34.20.145 If I perform a reverse DNS (PTR) query on 12.34.20.145 I receive: Type IP Address Domain Name PTR 1…

问题原文

原帖链接 · J.B. · CC BY-SA 3.0

If I perform an MX query on my domain (domain.com) I receive this answer:

Pref   Hostname         IP Address
5      mail.domain.com  12.34.20.145

If I perform a reverse DNS (PTR) query on 12.34.20.145 I receive:

Type    IP Address      Domain Name
PTR     12.34.20.145    firewall.domain.com

MX and PTR do not match each other, but our mail are not marked as spam. Is it working as expected?

已采纳解答

原帖链接 · Tedwin · CC BY-SA 3.0

You don't care what the MX record is compared to the rDNS record. You do care about the outgoing IP from your mailserver compared to the rDNS record for your domain. They may or may not be the same.

So make sure that whatever address the email server is actually sending from has a corresponding reverse pointer that resolves to your email domain name.

Most spam appliances/cloud services don't care, but some do, and one of them is Craigslist. Here's what a bounce back from CL looks like when you don't have a proper rDNS entry:

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-04-20)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。