How do I block a domain from the recieved portion of headers
Brandon Hoppe
bhoppe at ti.com
Sat Mar 25 16:36:02 GMT 2006
> -----Original Message-----
> > here's where the line resides in my sendmail.mc file:
> >
> > divert(-1)dnl
> > dnl #
> > dnl # This is the sendmail macro config file for m4. If you make changes
> > to
> > dnl # /etc/mail/sendmail.mc, you will need to regenerate the
> > dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf
> > package
> > is
> > dnl # installed and then performing a
> > dnl #
> > dnl # make -C /etc/mail
> > dnl #
> > include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
> > include(`/usr/share/sendmail-cf/hack/block_bad_helo.m4')dnl
> > VERSIONID(`@(#)sendmail.mc 1.00 (Berkeley) 12/03/99')
> > OSTYPE(`linux')dnl
> > -----------snip---------------
> >
> > Steve
>
> Steve,
>
> Ok, I moved my include lines just before the VERSIONID line. I now am able
> to receive email. I let y'all know if it starts blocking the fake domain
> email.
>
> Thanks
Well, I still receive email that fakes the sending domain to look like mine.
Is there a way to test to make sure the block script is working?
The full headers are below again:
Return-Path: <g>
Received: from mydom.com (cpe-24-170-49-168.stx.res.rr.com [24.170.49.168])
by mailhost.mydom.com (8.13.3/8.13.3) with ESMTP id k2PEpEsT014729
for <user at mydom.com>; Sat, 25 Mar 2006 08:51:15 -0600 (CST)
Message-Id: <200603251451.k2PEpEsT014729 at mailhost.adoy.com>
From: webmaster at mydom.com
To: user at mydom.com
Subject: Warning Message: Your services near to be closed.
Date: Sat, 25 Mar 2006 08:55:21 -0600
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_NextPart_000_0001_C604B19B.06FDF7BD"
X-Priority: 3
X-MSMail-Priority: Normal
More information about the MailScanner
mailing list