[Exim] Spamassassin and Exim 4.20 Help needed

Top Page
Delete this message
Reply to this message
Author: Daniel Bendersky
Date:  
To: exim-users
Subject: [Exim] Spamassassin and Exim 4.20 Help needed
--
[ Picked text/plain from multipart/alternative ]
Hi, I'm tring to set up the Spamassassin but don't work for me (Yet!)

I have the following router:
-----
spamcheck_router:
no_verify
condition = "${if and { {eq {1}{${if and { {!def:h_X-Spam-Flag:} {!eq
{$received_protocol}{spam-scanned}}} {1}{0}}}} {eq {1}{${lookup ldap
{ldap:///uid=${local_part},dc=${domain},o=MAIL,o=USERS,c=CL?mailSpam}
{$value}{$value}}}}} {1}{0}}"
driver = accept
transport = spamcheck
-----
The "condition" check if the message was scanned (as suggested in this
list by Phil Brutsche) and also (my add on) lookup in an LDAP if the
user need to be checked.

And the transport:
-----
spamcheck:
driver = pipe
command = /usr/sbin/exim -oMr spam-scanned -bS
use_bsmtp = true
transport_filter = /usr/bin/spamc
home_directory = "/tmp"
current_directory = "/tmp"
user = mail
group = mail
log_output = true
return_fail_output = true
return_path_add = false
message_prefix =
message_suffix =
-----
Then I do my test in the port 26 to check if I get mails.

The result is BAD. I get mails ONLY if the destination address is in
the LDAP marked as need to be checked.

So my guess is that the rest of the messages are lost in the cyberspace.

Any idea of what I'm doing wrong?

--
Saludos....

Daniel Bendersky.

------------------------------------------------------------------
Daniel Bendersky              Director de Operaciones y Tecnología
dbenders@???                          http://www.netline.cl
NETLINE                                Av. Vitacura # 2939 of. 202
Oficina   : +56 2 751 2600            Las Condes, Santiago - CHILE
Celular   : +56 9 998 9122               Fax2mail : +56 2 751 2651
Voice2mail: +56 2 751 2618
            "Success is a journey, not a destination"
------------------------------------------------------------------
--