关于多域名EXCHANGE如何设置PTR的问题

找了很多网页,

有效的是MX可以设置不同的域名,但PTR只设置一个即可。。。

如果设置为一个IP为两个PTR,则在进行测试时,会发生DNS ROBBINS,即一次找这个,一次找那个。

切记。

。。。。

 

I know this is an old thread, but recently had a customer request multiple PTR names for a single IP, and they keep coming back asking, is it done, is it done? Like the kid in the back seat, are we there yet? They keep doing an nslookup on the IP and it keeps coming back with only one name. Well, duh, thats how it works.

To answer this correctly after doing hours of research and finding the correct answer, I thought I would share.

The correct method of doing a PTR record for a mail server with multiple domains using one single IP, IE a hosted mail server, use the servers host name for the PTR record. What you can do to verify my answer, send an email from each domain off that server to an account you have access to and look at the headers. You will find that the received from server name will all be the same, the servers name. When a receiving server looks at an email it will be looking at the headers, and will run a PTR check against the name found in the header, in most case, all the server needs to allow it through is for a name to come back, regardless if it matches or not. For servers that have strict anti-spam filters, it does an actual name match, PTR to server name, and if it isn't and exact match, will reject it. It gets that name from the headers. Check it out, look at the headers of some emails you have, chances are the server name matches the forward lookup for most emails, but you will find a few that don't.

這都是觀念不夠所致, 我的 sendmail 有十幾個 domain , 但因為我的 hostname 叫 twnic.net.tw 所以我反解只要設 twnic.net.tw 就可以了,至於其他的名字都不需要  因為 hostname 就是你的 ehlo/helo name

你設多個,依 DNS Round Robin 特性怎能保證這次的 ehlo 或 mail from 一定和 PTR 能 match 呢 ! 所以只要一個,就是 hostname 那一個,而 hostname 解出來的 IP 是 MTA 的 IP

上一篇:【新功能】开放搜索多路召回技术解读


下一篇:Nginx配置之基于域名的虚拟主机