[fetchmail]supress errors in log

Rob MacGregor rob.macgregor@gmail.com
Thu, 10 Nov 2005 16:46:09 +0000


On 10/11/05, Paul Goodyear <pgudge@gmail.com> wrote:
> -- /etc/crontab
> */1   *   *   *   *   user1   /usr/local/bin/fetchmail --silent --syslog
>
> 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.

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

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

--
                 Please keep list traffic on the list.
Rob MacGregor
      Whoever fights monsters should see to it that in the process he
        doesn't become a monster.                  Friedrich Nietzsche