On Thu, 17 Oct 2002 20:17:59 +0200
[EMAIL PROTECTED] (R�mi Letot) wrote:

[...]

> > J'ai juste un petit souci c'est qu'une autre doc dit aussi que
> > fetchmail doit tourner sous un compte avec des restrictions de droit
> > pour des raisons de s�curit�.  Et le mien il tourne en root???
> 
> Pas bien pas bien pas bien
> 
> > root       301  0.0  0.3  1916  888 ?        S    10:19   0:00 /usr/bin/fetchmail 
>-f /etc/fetchmailrc
> > C'est normal �a?
> 
> Ben non :
> 
> fetchma    674  0.0  0.2  1952  920 ?        S    10:39   0:01 /usr/bin/fetchmail 
>--daemon 300 --syslog -f /etc/fetchmailrc -i /var/mail/.fetchmail-UIDL-cache
> 
> A mon avis, tu as un sacr� probl�me avec fetchmail, il ne semble pas
> du tout install� comme il devrait.
> 
> A ta place : 
> cp /etc/fetchmailrc /root/fetchmailrc
> apt-get --purge remove fetchmail
> apt-get install fetchmail


J'avais d�j� essay� �a mais �a n'avais rien donn�, j'ai recommenc� en d�sinstallant 
aussi --purge fetchmail-common en effet c'est lui qui cr�e ces fichiers entre autre 
/etc/init.d/fetchmail.
Me voila avec un fetchmail et des fichiers de config tout neuf.;)
Ok c'est r�gl�:

fetchma   4312  0.0  0.4  2420 1228 ?        S    22:52   0:00 /usr/bin/fetchmail 
--daemon 300 -f /etc/fetchmailrc -i /var/mail/.fetchmail-UIDL-cache

> 
> et recopier ce qu'il faut de /root/fetchmailrc dans /etc/fetchmailrc,
> cad juste les informations de compte (ne recopie pas tout le fichier,
> sinon �a n'aura servi � rien)

Pas besoin, il �tait est toujours l�, encore une bizarrerie...
J'ai pourtant bien donn� l'option "--purge"

> 
> Pour contrer un autre post que tu as eu en r�ponse, non fetchmail ne
> doit pas tourner avec un user ayant des droits sur les fichiers mbox
> car il d�livre les mails via le MTA (postfix, exim,...) De ce fait il
> ne touche jamais les fichiers directement. C'est peut-�tre une
> particularit� debian.
> 

Mais j'ai encore un probl�me....et oui....
Pour que le fichier /var/mail/.fetchmail-UIDL-cache (l� ou il liste les mail � ne plus 
rapatrier, option par d�faut de /etc/init.d/fetchmail) puisse �tre cr�� (si non il ne 
voulais rien savoir) j'ai du changer les droit du rep /var/mail :
chmod o+w mail
Je l'ai laiss� cr�er son fichier et ensuite, je l'ai remis comme il �tait :
chmod o-w mail
Ses permissions sont :

drwxrwsr-x    2 root     mail         4096 oct 17 22:24 mail

Les droits du fichier sont :
-rw-------    1 fetchmai mail          208 oct 17 23:42 /var/mail/.fetchmail-UIDL-cache

Puis-je enfin consid�rer l'affaire class�e ou pas?
Si pas, quelles sont les permissions � donner � /var/mail ?
A qui doit-il appartenir?

Parceque quand je quitte le prog mail
& q
mail: Cannot create lockfile /var/spool/mail/benoit.lock: Error creating temporary 
lockfile

Merci pour tout ces conseils.
Beno�t.
_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/linux@;lists.unixtech.be
IRC: efnet.skynet.be:6667 - #unixtech

Répondre à