[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: fetchmail (procmail mutt) : timeout socket error



Le Wednesday 29 July 2009 15:15:49 Michaël Pierson, vous avez écrit :
> Le mercredi 29 juillet 2009 à 08:30:18, serge@srv0.ath.cx a écrit :
> > Le Sunday 26 July 2009 12:43:52 Michaël Pierson, vous avez écrit :
> > > Le vendredi 24 juillet 2009 à 01:25:47, serge@srv0.ath.cx a écrit :
> > > > Le Friday 24 July 2009 00:34:30 Michaël Pierson, vous avez écrit :
> > > > > Le mercredi 22 juillet 2009 à 10:24:45, Edi Stojicevic a écrit :
> > > > > > * Michaël Pierson <michael.y.f.pierson@gmail.com> [2009-07-22
> > > > > > 19:03:35
> > > >
> > > > +0200] wrote :
> > > > > > > Je relève mes mails tous les quart d'heure (crontab):
> > > > > > > */15 * * * * fetchmail --silent
> > > > > >
> > > > > > Pourquoi ne pas mettre dans ton ~/.fetchmailrc
> > > > > > set daemon 900
> > > > >
> > > > > oui pourquoi pas
> > > > >
> > > > > > > Ce 22 juillet (à quelques autres reprises) j'ai reçu de Cron
> > > > > > > Deamon le mail suivant:
> > > > > > > fetchmail: timeout after 300 seconds waiting for server
> > > > > > > mail.voo.be. fetchmail: socket error while fetching from
> > > > > > > *moi*@*server* fetchmail: Query status=2 (SOCKET)
> > > > > > >
> > > > > > > Jj'ai rien dans /var/log/mail.info
> > > > > >
> > > > > > et dans /var/log/mail.(err|log) ?
> > > > >
> > > > > non rien du tout
> > > >
> > > > * Avec ces lignes ( au debut de "~/.fetchmailrc" ):
> > > >
> > > > set no syslog
> > > > set logfile ~/.fetchmail.log
> > >
> > > Lignes ajoutées le 24 juillet en début de fichier comme recommandé.
> > > 2 nouveaux messages mails de Cron Deamon le 25.
> > > Je n'ai pas de fichier "~/.fetchmail.log" créé.
> > >
> > > @+
> > > Michaël
> >
> > Salut;
> >
> > Il y a deux manières d'utiliser fetchmail:
> > 	- mode utilisateur ( un fichier ~/.fetchmailrc par utilisateur );
> > 	- mode système ( un unique fichier /etc/fetchmailrc pour tous les
> > 	  utilisateurs et administré par un utilisateur spécifique ou root ).
> >
> > Les paramètres utilisés pour chaque mode sont certaines fois différents,
> > et le mode de lancement différents aussi, mais ils n'utilisent pas un
> > service cron.
> >
> > Celui qui t'intéresse est certainement le mode utilisateur, avec un
> > fichier de configuration placé dans le 'home' de l'utilisateur:
> > ~/.fetchmailrc
> >
> > Pour lancer fetchmail automatiquement en mode 'daemon' lorsque
> > l'utilisateur se connecte ( login ), on utilise soit '~/.bash_login' ou
> > '~/.bash_profile' en y ajoutant:
> >
> > if [ -f ~/.fetchmailrc -a -x /usr/bin/fetchmail ]; then
> >     # Vérification des permissions
> >     if [ "$(stat -c '%U %a' ~/.fetchmailrc)" != "$USER 600" ]; then
> >         chown -h $USER  ~/.fetchmailrc
> >         chmod -f 0600  ~/.fetchmailrc
> >     fi
> >     # Si il y a une instance de fetchmail
> >     if [ -f ~/.fetchmail.pid ]; then
> >         PIDSTATUS="/proc/$(head -n 1 ~/.fetchmail.pid)/status"
> >         if [ -f "$PIDSTATUS" -a "$(grep fetchmail $PIDSTATUS)" ]; then
> >             /usr/bin/fetchmail --quit
> >             sleep 1
> >         fi
> >     fi
> >     # Lancement de fetchmail en mode daemon
> >     # avec interval entre ramassage de 300 s
> >     # et journal des actions.
> >     /usr/bin/fetchmail  \
> > 	--daemon 300 \
> > 	--logfile ~/.fetchmail.log \
> > 	--pidfile ~/.fetchmail.pid
> > fi
>
> Comme j'utilise zsh, j'ai ajouté ces lignes dans '~.zshrc'
>
> > Par la suite pour terminer proprement fetchmail en sortant, on ajout
> > à '~/.bash_logout':
> >
> > if [ -f ~/.fetchmail.pid ]; then
> >     PIDSTATUS="/proc/$(head -n 1 ~/.fetchmail.pid)/status"
> >     if [ -f "$PIDSTATUS" -a "$(grep fetchmail $PIDSTATUS)" ]; then
> >         /usr/bin/fetchmail --quit
> >     fi
> > fi
>
> Et pour sortir proprement j'ai créé un '~.zshrc_logout'
>
>
> Voici un extrait de '~.fetchmail.log' avec dépassement de délai et
> erreur socket et 10' plus tard la réception du mail pour ce compte.
> "...
> fetchmail: démarrage de fetchmail 6.3.9-rc2 en tâche de fond
> fetchmail: mise en sommeil à mer 29 jui 2009 12:17:16 CEST pour 300
> secondes fetchmail: réveillé à mer 29 jui 2009 12:22:16 CEST
> fetchmail: 1 message pour XXX@gmail.com dans pop.gmail.com (464589 octets).
> fetchmail: lecture du message XXX@gmail.com@gmail-pop.l.google.com:1 parmi
> 1 (464589 octets) éliminé fetchmail: mise en sommeil à mer 29 jui 2009
> 12:22:18 CEST pour 300 secondes fetchmail: réveillé à mer 29 jui 2009
> 12:27:18 CEST
> fetchmail: délai dépassé après 300 secondes d'attente du serveur
> mail.voo.be. fetchmail: erreur socket durant la réception de
> YYY@voo.be@mail.voo.be fetchmail: État de la requête=2 (SOCKET)
> fetchmail: mise en sommeil à mer 29 jui 2009 12:32:20 CEST pour 300
> secondes fetchmail: réveillé à mer 29 jui 2009 12:37:20 CEST
> fetchmail: 1 message pour YYY@voo.be dans mail.voo.be (470460 octets).
> fetchmail: lecture du message YYY@voo.be@mrouterout.brutele.be:1 parmi 1
> (470460 octets) éliminé fetchmail: mise en sommeil à mer 29 jui 2009
> 12:37:22 CEST pour 300 secondes ..."

Tu pourrais montrer la configuration du compte avec  'mail.voo.be' ? C'est un 
compte imap , pop3 , ... ?

Et par la suite, tu utilises 'sendmail', 'procmail' ou un serveur SMTP ? 

Pour l'erreur socket, le man de fetchmail dit:

An error was encountered when attempting to open a socket to retrieve mail. If 
you don't know what a socket is, don't worry about it -- just treat this as 
an 'unrecoverable error'. This error can also be because a protocol fetchmail 
wants to use is not listed in /etc/services.

Tu renvois les messages sur un compte SMTP ?

@+
-- 
(o_
(/)_
S e r g e


Reply to: