|
While it is possible to run fetchmail on your regular shell server
(specifying the correct SMTP server address with "-S mailXX.csoft.net"),
it is best to run fetchmail on the mail server itself.
Log onto your mail server ("mailXX.csoft.net") with SSH using your
regular csoft account username and password.
Note that this is a different machine containing a mirror copy
of your home directory. The mirror is only updated daily so you will
probably want to manually copy ~/.fetchmailrc from the main
server:
$ scp yourname@yourserver.csoft.net:.fetchmailrc .
You can then run a verbose fetchmail test:
$ fetchmail -d0 -vk pop.gmail.com
If all is working fine, open up your crontab:
$ crontab -e
and add the line:
*/15 * * * * fetchmail -s
This directive specifies to look for new mail every 15 minutes. You
can also substitute the "*/15 * * * *" part for "@hourly" or
"@daily". Please make sure not to use an interval smaller than
5 minutes.
|