Problème dovecot et postfix

Bonjour,

Mon service postfix et dovecot s’arrête de façon aléatoire.
Lorsque je redémarre dovecot, il me met ce message :

Voici les logs /var/www/syslog juste avant le plantage :

Jan 22 15:05:01 web /USR/SBIN/CRON[28302]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /et$ Jan 22 15:05:01 web /USR/SBIN/CRON[28303]: (munin) CMD (if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi) Jan 22 15:05:03 web postfix/smtpd[21949]: warning: 127.0.0.1: address not listed for hostname localhost.localdomain Jan 22 15:05:03 web postfix/smtpd[21949]: connect from unknown[127.0.0.1] Jan 22 15:05:03 web postfix/smtpd[21949]: lost connection after CONNECT from unknown[127.0.0.1] Jan 22 15:05:03 web postfix/smtpd[21949]: disconnect from unknown[127.0.0.1] Jan 22 15:07:01 web /USR/SBIN/CRON[28778]: (root) CMD (cd / && run-parts --report /etc/cron.hourly) Jan 22 15:09:01 web /USR/SBIN/CRON[28807]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete) Jan 22 15:10:01 web /USR/SBIN/CRON[28827]: (www-data) CMD ([ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh) Jan 22 15:10:01 web /USR/SBIN/CRON[28828]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /et$ Jan 22 15:10:01 web /USR/SBIN/CRON[28829]: (munin) CMD (if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi) Jan 22 15:10:03 web postfix/smtpd[21949]: warning: 127.0.0.1: address not listed for hostname localhost.localdomain Jan 22 15:10:03 web postfix/smtpd[21949]: connect from unknown[127.0.0.1] Jan 22 15:10:03 web postfix/smtpd[21949]: lost connection after CONNECT from unknown[127.0.0.1] Jan 22 15:10:03 web postfix/smtpd[21949]: disconnect from unknown[127.0.0.1] Jan 22 15:15:02 web /USR/SBIN/CRON[29352]: (munin) CMD (if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi) Jan 22 15:15:02 web /USR/SBIN/CRON[29351]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /et$ Jan 22 15:15:09 web postfix/smtpd[21949]: warning: 127.0.0.1: address not listed for hostname localhost.localdomain Jan 22 15:15:09 web postfix/smtpd[21949]: connect from unknown[127.0.0.1] Jan 22 15:15:09 web postfix/smtpd[21949]: lost connection after CONNECT from unknown[127.0.0.1] Jan 22 15:15:09 web postfix/smtpd[21949]: disconnect from unknown[127.0.0.1] Jan 22 15:17:44 web dovecot: dovecot: Fatal: Time just moved backwards by 10 seconds. This might cause a lot of problems, so I'll just kill myself now. http://wiki.dovecot.org/TimeMovedBackwards
Bien entendu j’ai bien appliqué ce qu’ils disent mais rien ne fonctionnent.
Le script n’a aucun effet même lorsque je l’exécute à la main. (Et puis je trouve que c’est pas la meilleur des solutions. :slightly_smiling: )

J’ai désinstallé ntpd mais même problème.

Pouvez-vous m’aider ?

Merci

As-tu vu ce poste : debian-fr.org/dovecot-et-ntpdate-t33260.html ?

Salut,

Oui oui je l’ai vu.
ntpdate n’est plus installé sur le serveur et ntp est installé à la place, mais toujours pareil.

Peut être qu’un autre service règle la date sans te prévenir.
Sinon essaye de désinstaller complètement tout service NTP Si le problème persiste c’est qu’il y a autre chose.

Le problème c’est qu’il n’y a pas d’autres services NTP.
Comment faire pour le voir ?

Merci

Non ce que je te propose est d’enlever tous tes service NTP pour voir si ce n’est pas un autre process qui décale ton horloge.
Si c’est le cas il faudra l’identifier, mais je ne sais pas trop comment pour l’instant.
Sinon c’est peut être la configuration de ton NTP qui est mauvaise.

Oui mais comment je peux identifier qu’il y a un autre service ntp ? ^^
C’est justement là ou sa pose problème.

Merci

Je verrais 2 moyen :
– étudier tous les service et cron qui tourne sur ta machine
– Faire un script qui surveille les sortie réseau sur le port NTP (123), peut être que c’est faisable avec le pare-feu …

Pour le moment le bug ne c’est pas reproduit.
Sinon je bloquerai tout en sortie sur le port 123 et j 'essaierai de voir comment créer un script qui regarde qui essaye d’envoyer sur le port 123.

Merci :slightly_smiling:

Regarde de temps a autre si ton horloge ne se décale pas trop non plus. Sur mon petit serveur (guruplug) elle se décale d’environ 1 seconde par jour, corrigé par un cron qui lance le client ntp. Postfix & Dovecot ne m’ont jamais fait faut bon pour l’instant. :smiley: