[fetchmail]supress errors in log

Matthias Andree matthias.andree@gmx.de
Sun, 13 Nov 2005 16:59:31 +0100


Paul Goodyear <pgudge@gmail.com> writes:

>> * Try a longer interval - frankly 1 minute is overkill.
>
> Not when you NEED those emails. :)

In that case, get a static IP and run your own SMTP server, or consider
something like IMAP (which has an IDLE mode) with --all option (the
latter is important so you don't miss out on mails that you read on the
upstream server instead).

>> * Use daemon mode - it's there for a reason!
>
> Does daemon mode allow for using ~/.fetchmailrc

Sure it does.

> I need a system where the users can add there own email accounts to
> their .fetchmail file. Wouldn't fetchmail daemon run under 1 user
> context (root, fetchmail, user1, user2 etc) and only process the one
> .fetchmailrc file?

I'd advise against running fetchmail as root at all. Users can stuff a
line into their crontab to start fetchmail every hour and configure
daemon mode for every 600 seconds or so. Then it will fetch mail every
600 seconds and come up after system restart or crash within half an
hour on average.

>> * Append ">/dev/null 2>/dev/null" (or ">/dev/null 2>&1") to direct all
>> output to /dev/null
>
> Sweet that worked.

Surprise? No, this is Unix, just plain UNIX shell behavior, you just
told it where you wanted the output to go, and it obeyed.

-- 
Matthias Andree