I've done some searching of the web and the mailing list archives but
been unable to find anything which helps. If I've missed something, I
apologise.
Situation: a Linux server running SMTP and IMAP servers, and using
Fetchmail to retrieve users' email. No interactive logins by users.
Webmin used by a few 'superusers' to create and manage each user's
.fetchmailrc.
Problem: How best to run fetchmail for each user.
Possibilities:
1. Have a crontab entry for each user which runs fetchmail once a
minute. Advantage: simple. Disadvantage: if email retrieval takes more
than a minute then fetchmail (rightly) complains that it is already
running. Observation: the fetchmail webmin module does not have an
interface to add daemon commands to a user's .fetchmailrc
2. Have a crontab job which builds a 'master' .fetchmailrc along the
lines of: for i in $(find /home -name .fetchmailrc); do cat $i
masterfile; done. Advantage: means one fetchmail process can run as a
daemon. Disadvantage: messy.
3. Discover an as-yet unfound 'include' directive in the .fetchmailrc
syntax so that I could check and dynamically build a master fetchmairc
file lines of the form 'include /home/john/.fetchmailrc
Any other ideas? I can't be the only person trying to set up such a
system, so I suspect I've missed something obvious.
Thanks,
Keith