SA Bugzilla – Bug 1402
MX lookups IPs matching to sending email address
Last modified: 2003-05-25 14:54:23 UTC
A header has the received lines and the from. Could a test be performed on the from to do an MX lookup. Then that result could be tested against all the servers listed in the received lines. If it matches with the MX's then the message could be given a negative (or nothing). If it doesn't then it could be given a positive. I'd even go as far as saying if it matches within the same Class C subnet (or B) it should go be given the negative. exemptions for hotmail and other multi-pop mail hosters as well.
it doesn't necessarily follow that incoming and outgoing mail servers are the same. for instance, at work the outgoing mail server is an exchange box on one network, and the incoming mail server is a solaris box on a different network. they communicate via private frame relay, and so there are no mx records pointing at the exchange box.