[fetchmail]Fetchmail daemon mode

Matthias Andree matthias.andree@gmx.de
Sun, 17 Apr 2005 18:36:12 +0200


"Bill Greganti" <t20030101@greganti.com> writes:

> Hi All,
>
> I'm slightly confused on getting fetchmail to run in daemon mode.  Let me
> start by saying I'm running a Debian 3.1 (Sarge) system with Fetchmail
> 6.2.5. I have the following files setup...
>
> /etc/fetchmailrc
> -rw-------    1 fetchmail root         65 Apr 14 23:33 fetchmailrc
>
>   set daemon 300
>   set postmaster ""
>   set no bouncemail
>   set no spambounce
>   set syslog

Please do not run fetchmail as root. Copy your /etc/fetchmailrc
settings into the user's ~/.fetchmailrc and remove /etc/fetchmailrc.

> My question should be obvious now, but is there any way to do this with only
> one fetchmail process and still leave the files in ~/.fetchmailrc so the
> users can edit them?

This is not a reasonable or acceptable approach to fetchmail
configuration.

If users need to run fetchmail, have them run fetchmail. This can happen
from a crontab that run fetchmail once per hour (it will keep running in
daemon mode and just wake up once an hour in addition to that, or start
itself if it isn't run), or from a root script that scans user's
directory for those files and uses "su" to start fetchmail under the
user's accounts.

-- 
Matthias Andree