Différences

Cette page vous donne les différences entre la révision choisie et la version actuelle de la page.

serveur_de_mail [2010/03/02 13:59]
tuxgasy
serveur_de_mail [2010/04/07 22:30] (version actuelle)
tuxgasy
Ligne 3: Ligne 3:
<note warning> <note warning>
-Ce note est encore en cours de rédaction.+Cette note est encore en cours de rédaction.
</note> </note>
Ligne 92: Ligne 92:
<code># aptitude install fetchmail</code> <code># aptitude install fetchmail</code>
-Ensuite, il faut éditer le fichier /etc/default/fetchmail et modifier la ligne +Ensuite, créer le fichier ~/.fetchmailrc et pour chaque boite mail à récupérer, ajouter une ligne comme suite : 
-<code>START_DAEMON=no</code> +<code>poll SERVERNAME protocol PROTOCOL username NAME password PASSWORD</code> 
-comme suite +Par exemple, pour récupérer les mails sur Gmail : 
-<code>START_DAEMON=yes</code>+<code>poll pop.gmail.com protocol POP3 username "username@gmail.com" password "mypassword"</code> 
 + 
 +Pour rediriger les mails vers procmail, ajouter à la fin du fichier
 +<code>mda "/usr/bin/procmail -Y -d %T"</code> 
 + 
 +Pour tester, il faut lancer fetchmail avec l'option k 
 +<code>fetchmail -kv</code> 
 +Si tout est bon, vous pouvez lancer fetchmail en démon : 
 +<code>fetchmail -d 120 -t 20</code> 
 + 
 +===== Lutter contre le spam ====== 
 +[[http://spamassassin.apache.org/|Spamassassin]] est un programme en Perl qui vérifie les mail pour détecter les éventuels spam. 
 + 
 +==== Installation et configuration ==== 
 +Pour l'installer, faites : 
 +<code># apt-get install spamassassin</code> 
 + 
 +Pour utiliser spamassassin avec procmail, ajouter les lignes suivantes dans le fichier ~/.procmailrc
 +<code> 
 +# Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc' 
 +# if you use the spamc/spamd combination) 
 +
 +# The condition line ensures that only messages smaller than 250 kB 
 +# (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam 
 +# isn't bigger than a few k and working with big messages can bring 
 +# SpamAssassin to its knees. 
 +
 +# The lock file ensures that only 1 spamassassin invocation happens 
 +# at 1 time, to keep the load down. 
 +
 +:0fw: spamassassin.lock 
 +* < 256000 
 +| spamassassin 
 + 
 +:0 
 +* ^X-Spam-Status: Yes 
 +.Junk/ 
 +</code> 
 + 
 +Ensuite, créer le dossier des courriers indésirables : 
 +<code>maildirmake ~/Maildir/.Junk</code> 
 + 
 + 
 +==== Whitelist et Blacklist ===== 
 + 
 +===== Filtrer les e-mail avec Procmail =====
===== Webmail (Roundcube) ===== ===== Webmail (Roundcube) =====
Ligne 107: Ligne 152:
http://trac.roundcube.net/wiki/Howto_Install_fr http://trac.roundcube.net/wiki/Howto_Install_fr
 +
 +http://www.tuteurs.ens.fr/internet/courrier/procmail.html
 
serveur_de_mail.1267534777.txt.gz · Dernière modification: 2010/03/02 13:59 par tuxgasy
 
Sauf mention contraire, le contenu de ce wiki est placé sous la licence suivante:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki