Discussion:
[SA-exim] SAEximRunCond Always return 1
Sil
2010-08-18 12:00:39 UTC
Permalink
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
Marc MERLIN
2010-08-18 15:41:06 UTC
Permalink
Post by Sil
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.
Post by Sil
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/
Sil
2010-08-19 06:28:18 UTC
Permalink
Post by Marc MERLIN
Define "local messages": sent of smtp to localhost,
Messages sent by smtp to localhost, for example cron messages sent to
the local user.
Post by Marc MERLIN
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


***@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-***@tecelec56.fr). From
<***@domain.fr> (local) for ***@domain.fr
LOG: MAIN
<= ***@domain.fr U=me P=local S=774
***@domain:~$
***@domain:~$ delivering 1OlyWC-00076n-0T
R: system_aliases for ***@domain.fr
R: system_aliases for ***@domain.fr
R: userforward for ***@domain.fr
R: procmail for ***@domain.fr
T: procmail_pipe for ***@domain.fr
LOG: MAIN
=> me <***@domain.fr> R=procmail T=procmail_pipe
LOG: MAIN
Completed

Thanks for your help
Sil
Marc MERLIN
2010-08-19 15:17:05 UTC
Permalink
Post by Sil
Post by Marc MERLIN
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.
Post by Sil
Post by Marc MERLIN
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
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
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/
sil
2010-08-21 16:40:16 UTC
Permalink
Post by Sil
SAEximRunCond: ${if and {{def:sender_host_address} {!eq
{$sender_host_address}{127.0.0.1}} {!eq {$h_X-SA-No-Run:}{Yes}} } {1}{0}}
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

Loading...