fetchmail-friends
[Top] [All Lists]

Re: [fetchmail]supress errors in log

2005-11-11 04:11:08
On 11/10/05, Rob MacGregor <rob(_dot_)macgregor(_at_)gmail(_dot_)com> wrote:
On 10/11/05, Paul Goodyear <pgudge(_at_)gmail(_dot_)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 !=
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.

_______________________________________________
Fetchmail-friends mailing list
Fetchmail-friends(_at_)lists(_dot_)ccil(_dot_)org
http://lists.ccil.org/cgi-bin/mailman/listinfo/fetchmail-friends