Hi!
I administrate a small server together with some friends. Among others I
do the mail part. I set up fetchmail so that every user can fetch mails
from the different mail accounts they may have around the Internet and
read them in a single location. The problem is that AFAIK fetchmail
does not provide any #include-like directives in fetchmailrc so that I
have 2 options:
-either I save data (including passwords in clear text) for every user
in one single file
or
-every user has to run his/her own fetchmail instance.
I don't want to use the first option as I don't want to see the other's
passwords.
So we used the second option but we got problems when 2
fetchmail instances tried to access 2 different gmail mailboxes at the
same time. On top of that it's not very convenient to administrate. It
would be better to run fetchmail in a central way.
That's why I wrote a small piece of software which runs
fetchmail periodically for every user that has a .fetchmailrc in their
home folders.
I thought that it might interest other people so I post it here.
It's a daemon that has to be run as root. The only parameter it accepts
is the amount of seconds to sleep between calling fetchmail.
You can find the source code here:
http://0b10111.de/svn/development/c/console%20c/fetchiterd/fetchiterd.c
Best regards,
Jona
--
"Und das Schönste daran ist, dass die Mehrzahl der Amerikaner durch die
von Illuminaten gedeckten Terroranschläge so weit in Angst versetzt
sein werden, dass sie darum betteln werden, kontrolliert zu werden, wie
der Masochist nach der Peitsche wimmert." Hagbard Celine
|