[fetchmail]supress errors in log

Paul Goodyear pgudge@gmail.com
Fri, 11 Nov 2005 11:04:05 +0000


On 11/10/05, Rob MacGregor <rob.macgregor@gmail.com> wrote:
> On 10/11/05, Paul Goodyear <pgudge@gmail.com> wrote:
> > -- /etc/crontab
> > */1   *   *   *   *   user1   /usr/local/bin/fetchmail --silent --syslo=
g
> >
> > when fetchmal runs all logs about "no emails on server", and all
> > "Server CommonName mismatch: localhost.localdomain !=3D
> > mail.myserver.net" are not sent to the user which is great.
> >
> > But when the internet dies, or not available the user is still swamped
> > emails containing:
> >
> > "fetchmail: another foreground fetchmail is running at <uid>"
> >
> > Can these be stopped also?
>
> A few options:
>
> * Try a longer interval - frankly 1 minute is overkill.

Not when you NEED those emails. :)

> * Use daemon mode - it's there for a reason!

Does daemon mode allow for using ~/.fetchmailrc

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?

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

Sweet that worked.