[SA-exim] SAEximRunCond Always return 1

Marc MERLIN marc at merlins.org
Thu Aug 19 08:17:05 PDT 2010


On Thu, Aug 19, 2010 at 08:28:18AM +0200, Sil wrote:
>   Le 18/08/2010 17:41, Marc MERLIN a écrit :
> > Define "local messages": sent of smtp to localhost,
> Messages sent by smtp to localhost, for example cron messages sent to 
> the local user.
 
Mail root should _not_ send via smtp to localhost, it should process
internally.

> > Does
> > echo test | Mail -s test -v root
> > generate a message that is scanned?
> Yes and the message is redirected on my adresse by /etc/aliases
> 
> /etc/aliases
> root: me
> 
> 
> me at domain:~$ echo test | Mail -s test -v root
> LOG: MAIN
>    SA: Debug: SAEximRunCond expand returned: '1'
> LOG: MAIN
>    SA: Debug: check succeeded, running spamc
> LOG: MAIN
>    SA: Action: scanned but message isn't spam: score=-98.0 required=5.0 
> (scanned in 0/0 secs | Message-Id: E1OlyWC-00076n-0T at tecelec56.fr). From 
> <me at domain.fr> (local) for root at domain.fr

Ok, so '(local)' is good at least, it shows it was accepted locally, not via
smtp.
Wait, I looked at your Runcond again. Did you modify it yourself?

You gave:
SAEximRunCond: ${if and {{def:sender_host_address} {!eq
{$sender_host_address}{127.0.0.1}} {!eq {$h_X-SA-No-Run:}{Yes}} } {1}{0}}
when it should likely be:
SAEximRunCond: ${if and {{def:sender_host_address} {!eq
{$sender_host_address}{127.0.0.1}} {!eq {$sender_host_address}{::1}}
}{1}{0}}

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/  



More information about the SA-Exim mailing list