Re: Starting fetchmail in daemon mode from cron

From: Night Owl (Night.Owl_at_dark.scary.night.nodomain)
Date: 07/16/05


Date: Sat, 16 Jul 2005 11:41:51 -0400

On Fri, 15 Jul 2005 08:09:05 +0100, Richard Polhill
<richard.news@polhill.vispa.invalid> wrote:

>Night Owl wrote:
>> Ok guys. I'm starting to get desperate. <g>
>>
>> Nobody has stepped forward with any questions or suggestions, so I
>> guess I may have posted this to the wrong groups. I would appreciate
>> a suggestion on where I can take this to get some help.
>>
>
>Not really sure what you're trying to achieve. Why don't you run the
>fetchmail daemon normally and then just modify the /etc/fetchmailrc
>periodically? Fetchmail in daemon mode will notice the change and reload
>at next run. Or you might prefer to call fetchmail with no options. If
>called by root this forces a poll, and thereby a config reload if it's
>changed.
>
>Rich

(Sorry, I just realized that I hadn't cross posted this to all groups
carring this thread)

Rich and Noi,

I'm trying to change the polling frequency depending on whether or not
users are logged on to the local IMAP mail server. The idea is to
have frequent polling when users are logged on and poll infrequently
when not. Typically, users are only connected for about 2 hours a
day.

I like the idea of modifying fetchmailrc. I wasn't aware that
fetchmail notices these changes and reloads. I guess a little RTFM
would have gone a long way for me there. <g>

I changed the script and it now uses a combination of updating the
fetchmailrc file and calling fetchmail with no parameters to force a
poll / reload.

This works like a charm and I can now move on to other things. Thank
you very much for your help!



Relevant Pages

  • Re: Starting fetchmail in daemon mode from cron
    ... Fetchmail in daemon mode will notice the change and reload ... Or you might prefer to call fetchmail with no options. ... >called by root this forces a poll, and thereby a config reload if it's ... I'm trying to change the polling frequency depending on whether or not ...
    (alt.os.linux)
  • Re: Starting fetchmail in daemon mode from cron
    ... Fetchmail in daemon mode will notice the change and reload ... Or you might prefer to call fetchmail with no options. ... >called by root this forces a poll, and thereby a config reload if it's ... I'm trying to change the polling frequency depending on whether or not ...
    (alt.os.linux)
  • Re: Starting fetchmail in daemon mode from cron
    ... Fetchmail in daemon mode will notice the change and reload ... Or you might prefer to call fetchmail with no options. ... >called by root this forces a poll, and thereby a config reload if it's ... I'm trying to change the polling frequency depending on whether or not ...
    (comp.os.linux)
  • Re: Best solution for mail server?
    ... I picked different polling periods so that mail runs will not run at the ... stop their own automatic poll, and restart it, if they want to. ... Why would you not just have a single cron job which runs fetchmail without the -d? ...
    (Fedora)
  • Re: [SLE] cron email
    ... > such a setup and it wouldn't work. ... Hence, cron, fetchmail and procmail ... set daemon 300 ... poll joe-isp.com username user2 pass qrstu ...
    (SuSE)