Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TIP] Usare spamassassin e clamav con evolution
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools)
View previous topic :: View next topic  
Author Message
maur8
Apprentice
Apprentice


Joined: 04 Mar 2003
Posts: 229
Location: Pescara (in serie B!!!), Italy

PostPosted: Fri Sep 19, 2003 6:10 pm    Post subject: [TIP] Usare spamassassin e clamav con evolution Reply with quote

Che palle lo spam, eh?! Beh, facendomi un giro in rete ho trovato questo documento che vi permette di usare quel bel programmino che è spamassassin direttamente con Evolution senza passare per fetchmail, procmail, etc. Non so se l'argomento è stato trattato, ma sinceramente sul forum (almeno quello italiano) non ho trovato nulla. Il documento lo trovate a questo indirizzo. Io vi consiglio di avviare il demone spamd e di configurare la pipe con spamc al posto di spamassassin in quanto (come spiegato dalla guida) si velocizza il tutto.
Spero di essere stato d'aiuto e di non aver creato un dup!

Ciao ciao 8)
_________________
Maur8.
"They decided our fate in a microsecond. Extermination"
Sgt. Kyle Rise, The Terminator
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Fri Sep 19, 2003 7:46 pm    Post subject: Reply with quote

Ottimo tip.
"Post utilissimi" award :D
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30837
Location: here

PostPosted: Fri Sep 19, 2003 8:34 pm    Post subject: Reply with quote

Stupendo questo si che e' un tip degno di nota.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
xlyz
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1470
Location: Italy

PostPosted: Tue Sep 23, 2003 3:46 pm    Post subject: Reply with quote

8)
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Sun Jan 25, 2004 7:47 pm    Post subject: Re: [TIP] Usare spamassassin con evolution Reply with quote

maur8 wrote:
Io vi consiglio di avviare il demone spamd e di configurare la pipe con spamc al posto di spamassassin in quanto (come spiegato dalla guida) si velocizza il tutto.

Nota: se usate spamc, va usato 'spamc -c' al posto di 'spamassassin -e'.
Enjoy.
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
akiross
Veteran
Veteran


Joined: 02 Mar 2003
Posts: 1170
Location: Mostly on google.

PostPosted: Wed Feb 18, 2004 8:07 pm    Post subject: Reply with quote

c'e' un modo di utilizzarlo con Sylpheed-Claws?
In sylpheed si puo' mettere l'Action "Execute" per ogni singolo messaggio, credo che in quel campo si esegua un comando su shell, solo che non c'e' il modo di passare l'intero file, ma al max si puo' ricavare il nome del file.

Usando qualcosa come
cat '%F' | spamassassin -e > /dev/null

ma comunque non posso verificare il valore di ritorno, e comunque come potrei verificare il risultato del comando? non saprei se ritorna piu' o meno di 0...

a meno che non faccio uno script per la shell, ma a questo punto entriamo nel complesso :\

Che ne dite?
_________________
Libera scienza in libero stato.
Horizon of Events
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Sun Feb 29, 2004 11:41 am    Post subject: Reply with quote

Aggiungo anche l'antivirus.

  • Installate clamav
  • Configuratelo editando i files:
    - /etc/clamav.conf
    Code:
    LogFile /var/log/clamd.log
    LogFileMaxSize 5M
    LogTime
    LocalSocket /tmp/clamd
    MaxDirectoryRecursion 15
    User clamav
    AllowSupplementaryGroups
    ScanMail
    ScanArchive
    ArchiveMaxFileSize 10M
    ArchiveMaxRecursion 5
    ArchiveMaxFiles 1000
    ArchiveMaxCompressionRatio 200


    - /etc/freshclam.conf
    Code:
    UpdateLogFile /var/log/freshclam.log
    LogVerbose
    DatabaseOwner clamav
    DatabaseMirror database.clamav.net
    MaxAttempts 3
    Checks 12
    HTTPProxyServer proxyserver
    HTTPProxyPort 8080
    NotifyClamd


    - /etc/conf.d/clamd
    Code:
    # Config file for /etc/init.d/clamd
    START_CLAMD=yes # IMPORTANTE!!
    CLAMD_OPTS=""
    CLAMD_LOG=""
    START_FRESHCLAM=yes
    FRESHCLAM_OPTS="-d -c 2"
    FRESHCLAM_LOG="/var/log/clam-update.log"


  • Lanciate clamav con
    Code:
    # /etc/init.d/clamd start

  • Create il seguente script:
    Code:
    #!/bin/sh
    TMP=$RANDOM
    /bin/cat - > /tmp/$TMP.tmp
    /usr/bin/clamdscan /tmp/$TMP.tmp
    /bin/rm /tmp/$TMP.tmp
    exit $?

  • Rendetelo eseguibile con chmod 755
  • Create una nuova cartella in evolution chiamata VIRUS!
  • Create una nuova regola che sia la prima di tutte con le seguenti opzioni:
    - Nome della regola: Controllo VIRUS
    - SE: Manda messaggio in pipe ad un comando della shell: mettete il path del vostro script
    - DI: Sposta nella cartella: VIRUS!
    - DI: Arresta processo in corso (è importante!!!)
  • Dite addio ai cari virus microsoftiani... ;)

_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
zUgLiO
l33t
l33t


Joined: 12 Aug 2003
Posts: 754
Location: Ferrara (Italy)

PostPosted: Sun Feb 29, 2004 12:38 pm    Post subject: Reply with quote

vi consiglio anche bogofilter
_________________

voglio poi dire che il tempo mi avrà fatto abituare,

ma io non trovo nemmeno brutta la stiva buia di questa nave
Back to top
View user's profile Send private message
strafacendo
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2004
Posts: 75

PostPosted: Sun Oct 31, 2004 8:33 pm    Post subject: Reply with quote

a me non funziona il filtro per i virus, ho seguito tutti i passaggi ma quando sono andato a scaricare la posta mi ha spostato tutti i messaggi nella cartella virus, allora ho creato una nuova cartella con un altro nome e ho indirizzato il filtro a quest'ultima cartella, ma anche se riavvio la regola non succede niente, rimane tutto così com'è.
_________________
---Ho sentito urla di furore di generazioni senza piu' passato di neoprimitivi rozzi cibernetici signori degli anelli orgoglio dei manicomi---
Back to top
View user's profile Send private message
lopio
Veteran
Veteran


Joined: 22 Dec 2003
Posts: 1161
Location: savona, Italy

PostPosted: Mon Nov 01, 2004 8:50 am    Post subject: Reply with quote

strafacendo wrote:
a me non funziona il filtro per i virus, ho seguito tutti i passaggi ma quando sono andato a scaricare la posta mi ha spostato tutti i messaggi nella cartella virus, allora ho creato una nuova cartella con un altro nome e ho indirizzato il filtro a quest'ultima cartella, ma anche se riavvio la regola non succede niente, rimane tutto così com'è.

sei sicuro che non sia un problema di sa-learn.credo che il filtro vada allenato un pochino prima di funzionare (non credo bastino pochi messaggi in croce).
Anche a me sembrava non funzionare ma nel momento in cui mi son messo a cercare spam file da dare in pasto al filtro (tramite file gia' presenti in rete) ha cominciato ad andare tutto ok
:wink:
Back to top
View user's profile Send private message
strafacendo
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2004
Posts: 75

PostPosted: Mon Nov 01, 2004 2:44 pm    Post subject: Reply with quote

a me non interessa il filtro spam, mi serve solo poter eliminare in automatico le mail contenenti virus, a quanto ho capito con la regola evolution fa fare la scansione a clamav e se questo rileva un virus sposta la mail in un'altra cartella, ma a me non funziona così, la prima volta ho scaricato tutta la posta che avevo in rete circa 150 mail e me le ha spostate tutte nella nuova cartella, ma non sono tutte infettate, poi o modificato la regola cambiandogli cartella di destinazione, ho applicato la regola a tutti i msg e non è successo niente
_________________
---Ho sentito urla di furore di generazioni senza piu' passato di neoprimitivi rozzi cibernetici signori degli anelli orgoglio dei manicomi---
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum