From: Andrew C A. <fet...@ai...> - 2023-07-26 15:27:15
|
On Wed, 26 Jul 2023, ns...@gm... wrote: > I would like to have multiple Fetchmail instances running on > machine. All instances shall be started directly on system start-up > and running all the time until the system is shutdown. Each of the > instances shall hold one IMAP Idle connection. That sounds reasonable. > Is using the daemon mode the correct way or would it only be > required to start/call each Fetchmail instance once in start-up and > it will continue to run? > What about errors (e.g. interruptions of the IMAP connection), will > fetchmal simply continue its processes or will they abort and have > to be restarted? How to ensure that Fetchmal runs forever and does > never close a process? fetchmail -idle *will* terminate on errors and closed connections; The attached log file shows that it has stopped 52 times for me so far this year; the error 11's were my ISP down for maintenance. So, yes if you cannot have daemon mode and IDLE, you will need some sort of wrapper script, daemon monitor, or cron job that checks and restarts fetchmail when it stops. I have a cron job which summarizes my unread mail a couple of times a day and that reports if the pid-file is missing or there is no matching process. I am only fetching my own mailbox and am happy to restart fetchmail manually ... Personally, if it were important that a service was *always* available I would not trust the daemon providing the service to ensure that is stayed up, but would want something else to monitor and if necessary restart it. >> Gesendet: Mittwoch, den 26.07.2023 um 16:10 Uhr >> Von: "Andrew C Aitchison" <fet...@ai...> >> An: ns...@gm... >> Cc: fet...@li... >> Betreff: Re: [Fetchmail-users] IMAP Idle in Daemon mode as non-root user >> >> On Wed, 26 Jul 2023, ns...@gm... wrote: >> >>> is it possible to run IMAP Idle in daemon mode as non-root user? I don't get the point on how to configure the daemon interval if IMAP wants to keep the connection open for "Idle". >>> Wouldn't the daemon interval conflict with the connection that is kept open? >>> >>> Could someone help me with my understanding? >> >> Are you using daemon mode because you want to connect to several >> mailboxes ? In IDLE mode you can only connect to one mailbox, so I >> think the answer is "No, you cannot run IDLE and daemon mode in the >> same process". >> >> If you want to connect in IDLE mode, I would suggest a separate >> FETCHMAILHOME directory, with its own config, and run a separate >> fetchmail -f <configfile> >> process for each mailbox. >> >> -- >> Andrew C. Aitchison Kendal, UK >> an...@ai... > > > _______________________________________________ > Fetchmail-users mailing list > Fet...@li... > https://lists.sourceforge.net/lists/listinfo/fetchmail-users > -- Andrew C. Aitchison Kendal, UK an...@ai... |