From smog1 at free.fr Wed Aug 18 05:00:39 2010 From: smog1 at free.fr (Sil) Date: Wed, 18 Aug 2010 14:00:39 +0200 Subject: [SA-exim] SAEximRunCond Always return 1 Message-ID: <4C6BCB67.7070900@free.fr> Hi sa-exim users, I'm using sa-exim 4.2.1-11 on my stable "Lenny" Debian and all messages are tested, but sometimes local deliveries are detected as spam. If I understand the SAEximRunCond line of my configuration file, all my messages posted by the localhost should't be tested but all my local messages return 1. I use procmail to move messages in Maildir subfolders and my exim version is exim4-deamon-heavy 4.69.9. My SAEximRunCond line : SAEximRunCond: ${if and {{def:sender_host_address} {!eq {$sender_host_address}{127.0.0.1}} {!eq {$sender_host_address}{::1}}}} Verbose of sa-exim don't show any details of the test line. How can I verify the value of sender_host_adress ? Thanks Sil From marc at merlins.org Wed Aug 18 08:41:06 2010 From: marc at merlins.org (Marc MERLIN) Date: Wed, 18 Aug 2010 08:41:06 -0700 Subject: [SA-exim] SAEximRunCond Always return 1 In-Reply-To: <4C6BCB67.7070900@free.fr> References: <4C6BCB67.7070900@free.fr> Message-ID: <20100818154106.GK3564@merlins.org> On Wed, Aug 18, 2010 at 02:00:39PM +0200, Sil wrote: > Hi sa-exim users, > > I'm using sa-exim 4.2.1-11 on my stable "Lenny" Debian and all messages > are tested, but sometimes local deliveries are detected as spam. > If I understand the SAEximRunCond line of my configuration file, all my > messages posted by the localhost should't be tested but all my local Correct. > messages return 1. Define "local messages": sent of smtp to localhost, smtp to your machine's real IP, or over the /usr/sbin/sendmail wrapper at the command line? Does echo test | Mail -s test -v root generate a message that is scanned? 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/ From smog1 at free.fr Wed Aug 18 23:28:18 2010 From: smog1 at free.fr (Sil) Date: Thu, 19 Aug 2010 08:28:18 +0200 Subject: [SA-exim] SAEximRunCond Always return 1 In-Reply-To: <20100818154106.GK3564@merlins.org> References: <4C6BCB67.7070900@free.fr> <20100818154106.GK3564@merlins.org> Message-ID: <4C6CCF02.6000408@free.fr> 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. > 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 (local) for root at domain.fr LOG: MAIN <= me at domain.fr U=me P=local S=774 me at domain:~$ me at domain:~$ delivering 1OlyWC-00076n-0T R: system_aliases for root at domain.fr R: system_aliases for me at domain.fr R: userforward for me at domain.fr R: procmail for me at domain.fr T: procmail_pipe for me at domain.fr LOG: MAIN => me R=procmail T=procmail_pipe LOG: MAIN Completed Thanks for your help Sil From marc at merlins.org Thu Aug 19 08:17:05 2010 From: marc at merlins.org (Marc MERLIN) Date: Thu, 19 Aug 2010 08:17:05 -0700 Subject: [SA-exim] SAEximRunCond Always return 1 In-Reply-To: <4C6CCF02.6000408@free.fr> References: <4C6BCB67.7070900@free.fr> <20100818154106.GK3564@merlins.org> <4C6CCF02.6000408@free.fr> Message-ID: <20100819151705.GL9950@merlins.org> 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 > (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/ From smog1 at free.fr Sat Aug 21 09:40:16 2010 From: smog1 at free.fr (sil) Date: Sat, 21 Aug 2010 18:40:16 +0200 Subject: [SA-exim] SAEximRunCond Always return 1 In-Reply-To: <20100819151705.GL9950@merlins.org> References: <4C6BCB67.7070900@free.fr> <20100818154106.GK3564@merlins.org> <4C6CCF02.6000408@free.fr> <20100819151705.GL9950@merlins.org> Message-ID: <4C700170.5040404@free.fr> Le 19/08/2010 17:17, Marc MERLIN a ?crit : > 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}} > I'm so confused, the problem was so stupid ! In the next paragraph of the config file an other SAEximRunCond was overwriting the good one. Now it works great ! Thanks for your help. Sil