<![CDATA[Andesi - forum / fetchmail et logfile]> 2005-10-13T04:09:16Z FluxBB http://forum.andesi.org/viewtopic.php?id=4711 <![CDATA[Réponse à : fetchmail et logfile]> bonjour

regarde les droits de ton fichier

-rw-r--r--  1 fetchmail root    14652 2005-10-13 00:45 fetchmail.log

et rajoute cette ligne au debut de ton .fetchmailrc
set no syslog avant set logfile /var/log/fetchmail.log

a+ gilles

]>
http://forum.andesi.org/profile.php?id=778 2005-10-13T04:09:16Z http://forum.andesi.org/viewtopic.php?pid=44267#p44267
<![CDATA[fetchmail et logfile]> Bonjour,
je voudrais logguer tous les accès de fetchmail dans /var/log/fetchmail.

J'ai donc mis ca dans mon /etc/fetchmailrc:

set logfile /var/log/fetchmail.log
set daemon 300
poll pop.wanadoo.fr proto pop3 user "xxxx" pass "xxxxx"

Voila les permissions des différents fichiers;

debian:/home/thierry# ls -l /var/log/fetchmail.log
-rw-r--r-- 1 fetchmail root 0 2005-08-06 18:15 /var/log/fetchmail.log

debian:/home/thierry# ls -l /etc/fetchmailrc
-rw------- 1 fetchmail root 152 2005-08-06 18:58 /etc/fetchmailrc

Et malheuresement, mon fichier /var/log/fetchmail.log est toujours vide :-(, et il ecrit tout dans /var/log/mail.log:

Aug 6 19:45:12 debian fetchmail[3978]: awakened at Sat Aug 6 19:45:12 2005
Aug 6 19:45:16 debian fetchmail[3978]: sleeping at Sat Aug 6 19:45:16 2005
Aug 6 19:50:16 debian fetchmail[3978]: awakened at Sat Aug 6 19:50:16 2005
Aug 6 19:50:20 debian fetchmail[3978]: sleeping at Sat Aug 6 19:50:20 2005

Fetchmail ne se lance pas tout seul au demarrage, donc pour l'instant je le lance moi mêmee manuellement.

Quelqu'un comprend pourquoi ca ne loggue pas là ou je veux?

Merci
A+

> Lire le message (0 commentaire).

]>
http://forum.andesi.org/profile.php?id=558 2005-08-06T17:54:37Z http://forum.andesi.org/viewtopic.php?pid=42606#p42606