[Mimedefang] Easy way to tell message is sent from local machine?

Justin King justin at othius.com
Fri Jun 7 12:34:01 EDT 2002


I do the following.

global:
$LocalRelayAddrs{"1.2.3.4"} = 1;
$LocalRelayAddrs{"1.2.3.5"} = 1;
$LocalRelayAddrs{"1.2.4.3"}  = 1;


filter_begin:
if ((-s "./INPUTMSG") <= (100 * 1024) and $Features{"SpamAssassin"} and
!(exists $LocalRelayAddrs{$RelayAddr})) {
...handle spam check...
}

-Justin


----- Original Message -----
From: "Nate Carlson" <natecars at real-time.com>
To: <mimedefang at lists.roaringpenguin.com>
Sent: Friday, June 07, 2002 11:53 AM
Subject: [Mimedefang] Easy way to tell message is sent from local machine?


> Is there an easy way to tell if a message is being sent from the local
> machine out to someone else?
>
> I'd like to set my mimedefang-filter up to only run SpamAssassin on
> inbound messages; I really don't need to add Spam-Status: No headers to
> outbound messages..
>
> I suppose I could run through each of the local domains and see if the
> sender is from one of them, but that wouldn't be good because spammers
> sometimes leave a FQDN off so it gets spoofed to the local one (I know, I
> can fix that in sendmail config), and because that'd mean maintaing a list
> of local domains by hand.
>
> --
> Nate Carlson <natecars at real-time.com>   | Phone : (952)943-8700
> http://www.real-time.com                | Fax   : (952)943-8500
>
>
>
>
> _______________________________________________
> MIMEDefang mailing list
> MIMEDefang at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
>




More information about the MIMEDefang mailing list