Subject: Re: allowing only mail from same domain
To: David Wetzel <dave@turbocat.de>
From: Andrew Doran <ad@interlude.eu.org>
List: netbsd-help
Date: 12/13/2001 15:10:17
David Wetzel <dave@turbocat.de> wrote:
> I get lots of spam from faked hotmail.com aol.com etc. But they come from
> hosts that do not match *hotmail.com etc. Is there an sendmail hack that
> enables me to specify a list of domains that are only acceptable when the
> mail actually comes from a host of that domain?
A silly point to make since you're using sendmail, but if you were using
Exim, them for hotmail.com you could check for an X-Originating-IP field in
the header using message filters. Or you could check the headers for other
traits. I suppose it's of more use if you have an upstream MX that's not
under your control.
Andrew