Re: How do I run fetchmail from crontab and log to syslog? [solved]
On Fri, Mar 23, 2007 at 08:40:43PM -0700, Raquel wrote:
> On Fri, 23 Mar 2007 21:14:33 -0600
> Paul E Condon <pecondon@mesanetworks.net> wrote:
>
> > the subject line is the question. creating a personal crontab was
> > easy, but fetchmail running under cron sends a whole bunch of mail
> > to root which, since i'm sysadmin on my own machine, clutters up
> > my email.
> >
> > --
> > Paul E Condon
> >
>
> I do it without incurring the excessive mail to root.
>
> My personal account crontab:
> # Fetch mail from mail server
> */2 * * * * /usr/bin/fetchmail -s
>
> My .fetchmailrc:
> set postmaster "raquel"
> set bouncemail
> set properties ""
>
> poll server.domain.com with proto POP3 timeout 300
> user "username" there with password "password" is username
> here options fetchall warnings 3600;
>
> Am I missing something?
>
I found 'set syslog' in some instructions for fetchmailconfig. Sorry
for the noise. And, yes '-s' cuts the messages by a lot.
--
Paul E Condon
pecondon@mesanetworks.net
Reply to: