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

Répondre à