Greylisting (WAS: gif attachments)

John Rudd jrudd at
Thu Aug 24 01:21:49 IST 2006

On Aug 23, 2006, at 16:28, Michele Neylon:: wrote:

> John Rudd wrote:
>> a) had no PTR record,
> Reasonable enough
>> b) PTR and A record didn't match, or
> So what about shared hosting??

The PTR record doesn't have to reflect any of the virtual/hosted 
domains.  Assuming that the virtual/hosted domains are all sharing 1 IP 
address, instead of having virtual interfaces:

Lets say you have the machine's actual nodename
and it hosts mail with hostnames and

You can have records such as:   IN A   W.X.Y.Z  IN A   W.X.Y.Z  IN A   W.X.Y.Z  IN A   W.X.Y.Z   IN PTR

Thus, the PTR record points to an A record which then matches the PTR 
record.  This satisfies what I think most people see as the intent of 
section 2.1 of RFC 1912 (the one which states that your PTR and A 
records should match).  The fact that there are other A records besides 
the one that matches the PTR record is ok.

The only problem you might have is if the receiving host is NOT RFC 
COMPLIANT and is rejecting sessions based upon the HELO/EHLO string.  
You can get around this if your helo string is always "" and 
not one of the mail.[B-D].com hostnames.  Or you can switch to using 
virutal network interfaces for each hosted domain.  Or you can decide 
not to care about recipients whose mail servers aren't RFC compliant.

As for me being the recipient and blocking if their PTR record doesn't 
lead to an A record which has an IP address that matches the machine 
connected to me ... if they aren't going to set up their DNS records 
like the above, then I'm not confident that they're a legitimate mail 
service.  And I give them an error which specifically says "you're not 
RFC 1912 compliant".

More information about the MailScanner mailing list