[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: spamassassin (lunga)



On Wed, 2 Jul 2003, oran wrote:

> oran wrote:
> io vorrei usare fetchmail+amavisd+clamd+spamassassin+exim , devo
> installare una versione particolare di amavis perchè funzioni con exim
> v3? sapete consigliarmi della documentazione dato che con exim non trovo
> nulla, quasi quasi passerei a postfix.

Oggi pom. ho finito di configurare amavisd+clamd+spamassassin+exim e
funziona egreggiamente! :))

I passi sono:

NON usare amavis-new MA amavis-ng!!! Importante!!!
                        ^^^^^^^^^

devi scaricarlo dalla unstable e compilarlo ma è facilissimo

configura il file /etc/amavis-ng/amavis.conf
(se ti serve una mano fammi sapere)

installi clamav (e qui non dovrebbero esserci problemi, ma non ricordo
perché l'ho fatto un mesetto fa..:))

fai partire i due servizi e poi modifichi il file exim.conf come segue:

nella sezione TRANSPORT metti:

---------------
# Amavis Antivirus (Aggiunto da CDF)
amavis:
  driver = pipe
  command = "/usr/bin/amavis -f <${sender_address}> -d ${pipe_addresses}"
  prefix =
  suffix =
  check_string =
  escape_string =
# for debugging change return_output to true
  return_output = false
  return_path_add = false
  headers_add = "X-Virus-Scanned: by AMaViS (http://amavis.org/)"
  user = amavis
  group = amavis
  path = "/bin:/sbin:/usr/bin:/usr/sbin"
  current_directory = "/var/spool/amavis-ng"

# Spam Assassin (Aggiunto da CDF)
spamcheck:
    driver = pipe
    command = /usr/sbin/exim -oMr spam-scanned -bS
    transport_filter = /usr/bin/spamc
    bsmtp = all
    home_directory = "/tmp"
    current_directory = "/tmp"
    # must use a privileged user to set $received_protocol on the way back in!
    user = mail
    group = mail
    return_path_add = false
    log_output = true
    return_fail_output = true
    prefix =
    suffix =
--------------


ALL'INIZIO della sezione DIRECTORS aggiungi:

----------------------------------------------
# Amavis Antivirus (Aggiunto da CDF)
amavis_director:
#condition = "${if eq {$received_protocol}{no-scan} {0}{1}}"
  condition = "${if def:h_X-Virus-Scanned: {0}{1}}"
  driver = smartuser
  transport = amavis
# verify must be set to false, to avoid troubles with receiver and/or sender verify
#  verify = false

# Spam Assassin  (Aggiunto da CDF)
spamcheck_director:
    # do not use this director when verifying a local-part at SMTP-time
    no_verify
    # When to scan a message :
    #   -   it isn't already flagged as spam
    #   -   it isn't already scanned
    #   -   it didn't originate locally
    condition = "${if and { {!def:h_X-Spam-Flag:} {!eq {$received_protocol}{spam-scanned}} {!eq {$received_protocol}{local}} } {1}{0}}"    driver = smartuser
    transport = spamcheck

---------------------------------

(occhio agli "a capo"!!!)

e dovrebbe funzionare tutto... incrocia le dita...

Per il momento funziona, solo che ho dovuto modificare la condizione per
amavis_director altrimenti amavis e spamassasin fanno a botte... spero che
non dia problemi, ma lo soprirò solo col tempo! :)


bye
CDF



Reply to: