Koozali.org: home of the SME Server

Fetchmail - another foreground process

Offline andreasantini

  • **
  • 68
  • +0/-0
Fetchmail - another foreground process
« on: February 15, 2012, 08:46:25 AM »
Buongiorno a tutti,
ho un problema che mi assilla e non so come risolverlo.
Ho un SME 7.5 che fa da server di posta per cinque users.
Non ha mai avuto problemi,ma recentemente,almeno due volte al giorno,ricevo questo msg:

fetchmail: another foreground fetchmail is running at 10443

Conseguentemente il server non scarica più la posta perchè fetchmail rimane bloccato.
L'unica soluzione è riavviare il server.
Ho già letto altri post dove si dice di alzare a 15 min il controllo di fetchmail (che ho fatto),
ma il problema rimane.
Esiste un modo per ripristinare fetchmail senza riavviare ogni volta il server o esiste una soluzione per risolvere definitivamente il problema?
Grazie.

Offline Stefano

  • *
  • 10,841
  • +2/-0
Re: Fetchmail - another foreground process
« Reply #1 on: February 15, 2012, 09:29:02 AM »
ciao

metti fetchmail in verbose mode, dai una occhiata al file /var/log/maillog e verifica quale è l'account problematico..

magari c'è un messaggio con un grosso allegato da scaricare..

anyway, non è necessario riavviare il server, mai, per cose del genere

Offline andreasantini

  • **
  • 68
  • +0/-0
Re: Fetchmail - another foreground process
« Reply #2 on: February 15, 2012, 10:25:33 AM »
Grazie, seguirò i tuoi consigli e ti farò sapere.
Il mio problema però è un altro: se si blocca il processo, non si riesce più a scaricare le email.
Come posso fare per stoppare e riavviare fetchmail senza riavviare il server?
Ho provato con il comando top a controllare i processi,ma non trovo fetchmail.
Posso eventualmente fare un kill sul processo bloccato?
Tks.

Offline andreasantini

  • **
  • 68
  • +0/-0
Re: Fetchmail - another foreground process
« Reply #3 on: February 15, 2012, 10:33:14 AM »
Sì, effettivamente ho trovato delle anomalie nel file maillog:


Feb 14 13:02:06 server fetchmail[8745]: timeout after 60 seconds.
Feb 14 13:02:06 server fetchmail[8745]: socket error while fetching from mail.lexonweb.it
Feb 14 13:02:06 server fetchmail[8745]: Query status=2 (SOCKET)
Feb 14 13:04:16 server fetchmail[8760]: timeout after 60 seconds waiting for server box.tin.it.
Feb 14 13:04:16 server fetchmail[8760]: socket error while fetching from box.tin.it
Feb 14 13:04:16 server fetchmail[8760]: Query status=2 (SOCKET)
Feb 14 13:15:09 server fetchmail[8893]: Server CommonName mismatch: postacdweb.cdweb.it != mail.lexonweb.it

Potrebbero essere queste che stoppano?

Offline Stefano

  • *
  • 10,841
  • +2/-0
Re: Fetchmail - another foreground process
« Reply #4 on: February 15, 2012, 10:34:23 AM »
fetchmail non è bloccato

c'è una istanza che sta cercando di scaricare le email da un account e per farlo ci mette più tempo del previsto, al punto che cron lancia l'istanza successiva..

a meno che tu non abbia continuamente email (ogni tot minuti) che ti riportano il problerma e sempre con lo stesso PID, non devi fare nulla.. tranne che verificare i log e gli account esterni, ovviamente

Offline andreasantini

  • **
  • 68
  • +0/-0
Re: Fetchmail - another foreground process
« Reply #5 on: February 15, 2012, 11:05:49 AM »
Praticamente,quando si blocca,ricevo ogni 15 min lo stesso messaggio con lo stesso PID.
Provo a controllare ciò che mi hai detto.
Grazie mille.
Andrea

Offline Stefano

  • *
  • 10,841
  • +2/-0
Re: Fetchmail - another foreground process
« Reply #6 on: February 15, 2012, 11:29:05 AM »
Sì, effettivamente ho trovato delle anomalie nel file maillog:


Feb 14 13:02:06 server fetchmail[8745]: timeout after 60 seconds.
Feb 14 13:02:06 server fetchmail[8745]: socket error while fetching from mail.lexonweb.it
Feb 14 13:02:06 server fetchmail[8745]: Query status=2 (SOCKET)
Feb 14 13:04:16 server fetchmail[8760]: timeout after 60 seconds waiting for server box.tin.it.
Feb 14 13:04:16 server fetchmail[8760]: socket error while fetching from box.tin.it
Feb 14 13:04:16 server fetchmail[8760]: Query status=2 (SOCKET)
Feb 14 13:15:09 server fetchmail[8893]: Server CommonName mismatch: postacdweb.cdweb.it != mail.lexonweb.it

Potrebbero essere queste che stoppano?

quei timeout sono il problema.. sei certo di non aver problemi di connettività? o che sia cambiato qualcosa?
prova a usare un client di posta qualsiasi, configurare quegli account (occhio a lasciare i messaggi sul server) e verificare se va..

Offline Stefano

  • *
  • 10,841
  • +2/-0
Re: Fetchmail - another foreground process
« Reply #7 on: February 15, 2012, 11:32:16 AM »
il primo server non si fa pingare ma mi risulta up and running con la porta 110 in ascolto

Offline andreasantini

  • **
  • 68
  • +0/-0
Re: Fetchmail - another foreground process
« Reply #8 on: February 15, 2012, 05:18:52 PM »
Ora si è presentato il problema.La situazione è questa:
ho provato su un pc tutte le caselle e funzionano
ho provato ad entrare sulle caselle con il servizio webmail del provider e vedo tutte le email.
SME server non scarica le email e mi segnala sempre questo errore:
fetchmail: another foreground fetchmail is running at 11074.
fetchmail: another foreground fetchmail is running at 11074.
fetchmail: another foreground fetchmail is running at 11074.
fetchmail: another foreground fetchmail is running at 11074.
fetchmail: another foreground fetchmail is running at 11074.
fetchmail: another foreground fetchmail is running at 11074.
fetchmail: another foreground fetchmail is running at 11074.
fetchmail: another foreground fetchmail is running at 11074.

Secondo te,esiste un modo per "killare" questo processo ?
Ho provato anche dal server-manager a stoppare e riavviare fetchmail ma senza successo.
Non so più cosa fare?
Avresti un'idea?
Grazie
Andrea

Offline Stefano

  • *
  • 10,841
  • +2/-0
Re: Fetchmail - another foreground process
« Reply #9 on: February 15, 2012, 06:20:05 PM »
Ora si è presentato il problema.La situazione è questa:
ho provato su un pc tutte le caselle e funzionano
ho provato ad entrare sulle caselle con il servizio webmail del provider e vedo tutte le email.
SME server non scarica le email e mi segnala sempre questo errore:
fetchmail: another foreground fetchmail is running at 11074.
fetchmail: another foreground fetchmail is running at 11074.
fetchmail: another foreground fetchmail is running at 11074.
fetchmail: another foreground fetchmail is running at 11074.
fetchmail: another foreground fetchmail is running at 11074.
fetchmail: another foreground fetchmail is running at 11074.
fetchmail: another foreground fetchmail is running at 11074.
fetchmail: another foreground fetchmail is running at 11074.

Secondo te,esiste un modo per "killare" questo processo ?
Ho provato anche dal server-manager a stoppare e riavviare fetchmail ma senza successo.
Non so più cosa fare?
Avresti un'idea?
Grazie
Andrea

Code: [Select]
pstree -p

ti da la lista dei processi in visualizzazione ad albero, con i pid.. da li dovresti saper agire di conseguenza..

macchina aggiornata? versione di fetchmail? come sono configurati gli account su fetchmail? pop3? pop3s? imap?

ricordo che con virgilio ebbi lo stesso problema molti anni fa.. ma non ricordo la soluzione..

lo fa con tutti gli account o si bloccca su uno in particolare? per capirlo, metti in verbose tutti gli account e poi apri una shell e dai:
Code: [Select]
tail -f /var/log/maillog

prova a mettere uno degli account in imap, se supportato.. o, al limite, mettili tutti in imap e riverifica

Offline andreasantini

  • **
  • 68
  • +0/-0
Re: Fetchmail - another foreground process
« Reply #10 on: February 17, 2012, 01:32:10 PM »
Ciao, in effetti è un account che da dei problemi.
Ho fatto anche un'altra prova: ho disabilitato il controllo antivirus sulle email.
Per il momento il problema non si è più presentato.
Ti farò sapere.
Grazie per il momento.
Andrea