Pb avec config Director sur Exim 3.35
J'utilise Exim 3.35 (woody oblige) sur un serveur de mail.
L'architecture est un peu comlexe (multiples domaine virtuels, délivrance dans
serveur IMAP, scan Antivirus etc...).
J'ai voulu ajouter récemment SpamAssassin à la main (pour avoir la dernière
version).
Très grosse galère!
Enfin, j'y suis arrivé non sans mal.
Le problème est le suivant:
1. Le filtrage Spam s'execute bien, mais du coups, plus de passage à
l'antivirus (c'est comme si le DIRECTOR était ignoré).
Je pécise que le director du scan AV se trouve avant celui du SPAM.
2 Si je commente les lignes du director "spamcheck", l'antivirus ce met à
nouveau à fonctionner.
3. Si je redécommente, le filtrage SPAM s'execute à nouveau, mais plus de
filtrage AV.
J'imagine que c'est un problème de DIRECTOR.
Mais j'ai beau creuser, je ne trouve pas.
Je joints un extrait de mon exim.conf...
Merci à tous et bonne journéee.
Loick.
######################################################################
# TRANSPORTS CONFIGURATION #
######################################################################
scanmails:
driver = pipe
bsmtp = all
batch_max = 32767
command = "/usr/sbin/scanmails -f ${sender_address} -d ${local_part}"
prefix =
return_output = false
return_path_add = false
user = amavis
group = amavis
path = "/bin:/sbin:/usr/sbin:/usr/bin"
current_directory = "/var/tmp"
headers_add = "X-AntiVirus: scanned by AMaVis/AntiVir"
spamcheck:
driver = pipe
command = /usr/sbin/exim -oMr spam-scanned -bS
transport_filter = /usr/local/bin/spamc
bsmtp = all
home_directory = "/tmp"
current_directory = "/tmp"
user = mail
group = mail
return_path_add = false
log_output = true
return_fail_output = true
prefix =
suffix =
end
######################################################################
# DIRECTORS CONFIGURATION #
######################################################################
# On fait un control antivirus du courrier entrant
scanmails:
condition = "${if or { {eq {$received_protocol}{scanned-ok}} {eq {$received_protocol}{spam-scanned}} } {0}{1}}"
driver = localuser
transport = scanmails
# Control spam effectué par SpamAssassin
spamcheck_director:
no_verify
condition = "${if and { {!def:h_X-Spam-Flag:} {!eq {$received_protocol}{spam-scanned}} {!eq {$received_protocol}{local}} } {1}{0}}"
driver = smartuser
transport = spamcheck
Reply to: