Difference between revisions of "Fetchmail"
Jump to navigation
Jump to search
m |
m |
||
| Line 3: | Line 3: | ||
installer un fichier /etc/fetchmailrc comme celui-ci: |
installer un fichier /etc/fetchmailrc comme celui-ci: |
||
| + | ==fetchmailrc== |
||
Exemple de /etc/fetchmailrc: |
Exemple de /etc/fetchmailrc: |
||
| Line 21: | Line 22: | ||
==Fetchyahoo== |
==Fetchyahoo== |
||
apt-get install fetchyahoo |
apt-get install fetchyahoo |
||
| − | andrea@olympe:~$ cp /usr/share/doc/fetchyahoo/examples/fetchyahoorc |
+ | andrea@olympe:~$ cp /usr/share/doc/fetchyahoo/examples/fetchyahoorc ~/.fetchyahoorc |
andrea@olympe:~$ echo "0,15,30,45 6-23 * * * /usr/bin/fetchyahoo"|crontab -u andrea - |
andrea@olympe:~$ echo "0,15,30,45 6-23 * * * /usr/bin/fetchyahoo"|crontab -u andrea - |
||
| + | |||
| + | Édition d'une copie de /usr/share/doc/fetchyahoo/examples/fetchyahoorc dans ~/.fetchyahoorc |
||
| + | |||
| + | ==fetchyahoorc== |
||
| + | Username et password évidemment |
||
| + | username = ''yahoo_user_name'' |
||
| + | password = ''XXXXXXXX'' |
||
| + | On choisit de délivrer dans un Maildir (veiller à finir la ligne par le "/" !!) |
||
| + | use-spool = 1 |
||
| + | spool = /home/andrea/Maildir/.Yahoo/ |
||
| + | spool-mode = append |
||
| + | Ou alors on délivre via procmail: |
||
| + | use-spool = 1 |
||
| + | spool = procmail |
||
| + | spool-mode = pipe |
||
| + | Théoriquement on peut reprendre jusquà 100 messages mais on a déjà eu une erreur à 97 alors autant rester ''safe'' |
||
| + | max-messages = 80 |
||
| + | On le lancera depuis un cron donc on évite d'avoir un output en temps normal |
||
| + | quiet = 1 |
||
| + | On vide le répertoire Bulk qui ne contient jamais rien d'intéressant... |
||
| + | empty-bulk = 1 |
||
| + | Il semble plus sûr de se déconnecter après coup. |
||
| + | logout = 1 |
||
Revision as of 00:11, 25 November 2006
Installation de Fetchmail
apt-get install fetchmail
installer un fichier /etc/fetchmailrc comme celui-ci:
fetchmailrc
Exemple de /etc/fetchmailrc:
set postmaster "fetchmail"
set nobouncemail
set no spambounce
set properties ""
set daemon 120
poll courriel.latribu.com with proto IMAP
user 'xxxx.xxxx@latribu.com' there with password 'xxxx' is 'phil' here fetchall
poll mail.hellea.be with proto IMAP and with interval 5
user 'xxxx' there with password 'xxxx' is 'phil' here fetchall ssl sslfingerprint "24:96:59:5C:A2:D0:60:14:FA:CD:66:32:40:CC:CA:1D"
Pour avoir les sslfingerprints:
su fetchmail -c "fetchmail -f /etc/fetchmailrc -v -v -N"
Fetchyahoo
apt-get install fetchyahoo andrea@olympe:~$ cp /usr/share/doc/fetchyahoo/examples/fetchyahoorc ~/.fetchyahoorc andrea@olympe:~$ echo "0,15,30,45 6-23 * * * /usr/bin/fetchyahoo"|crontab -u andrea -
Édition d'une copie de /usr/share/doc/fetchyahoo/examples/fetchyahoorc dans ~/.fetchyahoorc
fetchyahoorc
Username et password évidemment
username = yahoo_user_name password = XXXXXXXX
On choisit de délivrer dans un Maildir (veiller à finir la ligne par le "/" !!)
use-spool = 1 spool = /home/andrea/Maildir/.Yahoo/ spool-mode = append
Ou alors on délivre via procmail:
use-spool = 1 spool = procmail spool-mode = pipe
Théoriquement on peut reprendre jusquà 100 messages mais on a déjà eu une erreur à 97 alors autant rester safe
max-messages = 80
On le lancera depuis un cron donc on évite d'avoir un output en temps normal
quiet = 1
On vide le répertoire Bulk qui ne contient jamais rien d'intéressant...
empty-bulk = 1
Il semble plus sûr de se déconnecter après coup.
logout = 1