[Exim] Exim4 + Amavis-perl + Spamassassin

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Wahib Nackad
Date:  
À: exim-users
Sujet: [Exim] Exim4 + Amavis-perl + Spamassassin
Hello,

I'm using Exim 4.05 with Amavis-perl 11 and Spamassassin 2.31 and receive
error message when sending mail. The error in the log file is "Child process
of amavis transport returned 81". I'm pretty sure that this error comes from
the way my routers and transport section are made. Here is my configuration,
can someone tell me where my error is? surely in the condition statment.

Here my config:

ROUTERS CONFIGURATION
---------------------
begin routers

# Enable Anti-Virus support with AMaViS.
amavis_router:
driver = accept
condition = "${if or{ {eq {$received_protocol}{scanned-ok}} \
{eq {$received_protocol}{spam-scanned}} } {0}{1}}"
retry_use_local_part
transport = amavis

# Enable Anti-Spam support with SpamAssassin.
spamcheck_router:
no_verify
check_local_user
condition = "${if and { {!def:h_X-Spam-Flag:} \
{!eq {$received_protocol}{spam-scanned}}} {1}{0}}"
driver = accept
transport = spamcheck

TRANSPORTS CONFIGURATION
------------------------
# Enable Anti-Spam support with SpamAssassin.
spamcheck:
driver = pipe
batch_max = 100
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 =

# Enable Anti-Virus support with AMaViS.
amavis:
driver = pipe
check_string =
command = "/usr/sbin/amavis -f <${sender_address}> -d ${pipe_addresses}"
current_directory = "/var/lib/amavis"
escape_string =
group = amavis
headers_add = "X-Virus-Scanned: by AMaViS OpenNA Linux"
message_prefix =
message_suffix =
path = "/bin:/sbin:/usr/bin:/usr/sbin"
no_return_output
no_return_path_add
user = amavis

Thanks.



_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx