Koozali.org: home of the SME Server

Starting fetchmail from crontab

Markus Schmuck

Starting fetchmail from crontab
« on: February 14, 2001, 11:12:02 AM »
Hi ,

I read the information about the custom templates, but I still don´t know how to start fetchmail from crontab. I want fetchmail to look every 30 minutes after new mail in my pop-accounts. What entry do I need in crontab? Can someone help me, please?

thanks,
Markus

Holger Imbery

Re: Starting fetchmail from crontab
« Reply #1 on: February 14, 2001, 02:54:06 PM »
> I read the information about the custom templates, but I
> still don´t know how to start fetchmail from crontab. I want
> fetchmail to look every 30 minutes after new mail in my
> pop-accounts. What entry do I need in crontab? Can someone
> help me, please?
Go just this 2 steps:

crontab -e -u root
0-59/30 * * * * fetchmail

sample .fetchmailrc in /root (with dot in front)
---
set logfile "/var/log/fetchmail.log"
set postmaster "POSTMASTER"

poll POP.ourISP.COM with protocol POP3, with options
        user "YouUserName" there with password "YouPassword" is  
        Youlocalusername here  with options rewrite mimedecode fetchall pass8bits

POSTMASTER:= your postmaster on e-smith
POP.ourISP.COM:= your providers pop3 server
YouUserName:= you username on POP.ourISP.COM
YouPassword:= password for YouUserName
Youlocalusername:= username on e-smith

greetings
Holger

Markus Schmuck

Re: Starting fetchmail from crontab
« Reply #2 on: February 14, 2001, 05:26:21 PM »
> crontab -e -u root
> 0-59/30 * * * * fetchmail
I read it´s better to change the custom-templates than the config-files. With "crontab -e -u root" I´m changing the /etc/crontab, will this not be lost when e-smith is rewriting the configfiles during saving configuration.

Thanks and greetings,
Markus

Holger Imbery

Re: Starting fetchmail from crontab
« Reply #3 on: February 14, 2001, 06:44:12 PM »
> I read it´s better to change the custom-templates than the
> config-files. With "crontab -e -u root" I´m changing the
> /etc/crontab,
No, it´s /var/spool/cron/root

>will this not be lost when e-smith is rewriting
> the configfiles during saving configuration.
IMHO, it will not be lost

greetings
Holger Imbery