[SA-exim] SA-Exim checks *outgoing* mail too?

Marc MERLIN marc at merlins.org
Mon, 28 Oct 2002 18:18:17 -0800


On Mon, Oct 28, 2002 at 03:45:35PM -0500, Brian Kendig wrote:
> Marc MERLIN wrote:
> >Brian Kendig wrote:
> >>Is SA-Exim running all of my *outgoing* mail through SpamAssassin too?
> >
> >Look a spamassassin.conf
> >
> >SAEximRunCond: ${if and {{def:sender_host_address} {!Jeq 
> >{$sender_host_address}{127.0.0.1}} {!eq {$h_X-SA-Do-Not-Run:}{Yes}} } 
> >{1}{0}}
> 
> So what this is saying is that SpamAssassin will be run if the sender 
> host address is NOT localhost and if 'X-SA-Do-Not-Run: Yes' isn't found 
> in the message, right?
 
Right.
 
> Can I specify wildcards here?  My home network is all in the 10.0.x.x 
> subnet, so can I say something like 'if the sender host address is not 
> 10.0.*'?

See the exim spec, there is something to test if an IP is in a range
(you wouldn't say 10.0.*, you'd say 10.0.0.0/16)

> And what happens if a spammer gets wise to this and sends me spam with 
> a 'X-SA-Do-Not-Run: Yes' header?  ;-)

You rename the header :-)

Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking 
Home page: http://marc.merlins.org/   |   Finger marc_f@merlins.org for PGP key