Hi!
Running mail server on FC3 - sendmail+cyrus. Some user want to fetch mail from other servers so I have provided then fetchmail functionality. The question is how to run fetchmail as a daemon for all users at server startup? For now every user is responsible to run fetchmail -d xxx manually but if server went down for some reason then they need again manually to start it up.
Regards, Sasa
Sasa Stupar wrote:
Running mail server on FC3 - sendmail+cyrus. Some user want to fetch mail from other servers so I have provided then fetchmail functionality. The question is how to run fetchmail as a daemon for all users at server startup? For now every user is responsible to run fetchmail -d xxx manually but if server went down for some reason then they need again manually to start it up.
An alternative would be for each user to set a cron job (see "man crontab" and "man 5 crontab") that called fetchmail periodically instead of using "fetchmail -d ...".
This would run at the specified times whenever the server was up, needing no user interaction once it was set up.
Paul.
--On 21. februar 2005 15:05 +0000 Paul Howarth paul@city-fan.org wrote:
Sasa Stupar wrote:
Running mail server on FC3 - sendmail+cyrus. Some user want to fetch mail from other servers so I have provided then fetchmail functionality. The question is how to run fetchmail as a daemon for all users at server startup? For now every user is responsible to run fetchmail -d xxx manually but if server went down for some reason then they need again manually to start it up.
An alternative would be for each user to set a cron job (see "man crontab" and "man 5 crontab") that called fetchmail periodically instead of using "fetchmail -d ...".
This would run at the specified times whenever the server was up, needing no user interaction once it was set up.
Paul.
For a couple of thousand users it is not a good idea. To add a cron job for each user. Any other idea?
Sasa
Am Mo, den 21.02.2005 schrieb Sasa Stupar um 17:01:
For a couple of thousand users it is not a good idea. To add a cron job for each user.
Sasa
Why do thousands of users fetch mail from outside? Let users configure forwarding of their mail on the foreign server(s).
Alexander
Sasa Stupar wrote:
Running mail server on FC3 - sendmail+cyrus. Some user want to fetch mail from other servers so I have provided then fetchmail functionality. The question is how to run fetchmail as a daemon for all users at server startup? For now every user is responsible to run fetchmail -d xxx manually but if server went down for some reason then they need again manually to start it
Do I understand that you want to run fetchmail as a service? Put the attached script under /etc/init.d, copy the .fetchmailrc to /etc/fetchmailrc, run "chkconfig --add fetchmail", and turn it on however you normally turn on services.
Hope this helps,
James.