denying email from your own domain but external IP's?

Ugo Bellavance ugob at CAMO-ROUTE.COM
Fri Jul 1 18:23:04 IST 2005

    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

Matt Kehler wrote:
> I'd like to toss all email if the 'from' address is of my own domain
> (, and it does NOT originate from my internal
> network.  Can I do this with MailScanner?  Or can I even do it with
> Sendmail itself instead?  
> Basically in our environment, people can use our internal mail client
> while at work, or they can use our webmail, but thats IT.  (ie, no
> Outlook express clients at home :).  So essentially anything with the
> 'from' as and NOT using our internal IP addressing would have to
> be forged.

Forwarded by Ugo for Steve:

Check out this "clams to be us sendmail test which blocks email on bad
HELO/EHLO information:

We just installed this test at a site that was getting hammered with
spam and viruses from email addresses pretending to be from their
domain. It stopped these attacks cold.


Steve Swaney
steve at

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki ( and
the archives (

Support MailScanner development - buy the book off the website!

More information about the MailScanner mailing list