Projet

Général

Profil

Tuto fetchmail » Historique » Version 1

pizzacoca, 24/09/2018 21:22

1 1 pizzacoca
# Tuto fetchmail
2
3
## Installation  de fetchmail
4
5
~~~
6
apt-get update && apt-get install fetchmail
7
~~~
8
9
10
## Configuration de fetchmail
11
12
~~~
13
touch ~/.fetchmailrc
14
~~~
15
Edition du fichier :
16
17
~~~
18
poll imap.aquilenet.fr protocol IMAP
19
  user "prenom.nom@aquilenet.fr"
20
  password "votremotdepasse"
21
#  fetchlimit 100 # pour limiter le nombre de mails récupérer, bien pour du debug
22
  keep
23
  ssl
24
~~~
25
26
Une fois le fichier .fetchmailrc créé, il faudra changer ses droits d'accès avec la commande chmod. 
27
28
~~~
29
chmod 600 .fetchmailrc
30
~~~
31
32
Faire un alias pour fetchmail
33
34
Rajouter cette ligne dans le ~/.bashrc ou dans le ~/.zshrc 
35
36
~~~
37
 alias fetchmail="fetchmail -k -v -m \"/usr/bin/procmail -d %T\""
38
~~~
39
40
> option -a : Pour rapatrier tous les messages
41
> option -m : demande à fetchmail de transmettre le courrier rapatrié à procmail. 
42
> option -k : demande à fetchmail de laisser le courrier sur le serveur après l'avoir téléchargé
43
> Pour voir fetchmail en action, utilisez l'option -v (mode bavard).