this is obsolete doc -- see http://doc.nethence.com/ instead
Fetchmail configuration
http://pbraun.nethence.com/doc/mail/fetchmail.html
http://pbraun.nethence.com/doc/mail/getmail.html
http://pbraun.nethence.com/doc/mail/procmail.html
Installation
Make sure Fetchmail and eventually Procmail are installed,
rpm -q \
fetchmail \
procmail
#pkg_info | grep fetchmail
Configuration
As user, configure fetchmail,
cd ~/
vi .fetchmailrc
like e.g.,
set postmaster "exampleuser"
set nobouncemail
#5 minutes interval,
#set daemon 300
#set logfile $HOME/.fetchmailrc.log
poll POP3SERVER proto pop3
user "USERNAME"
password "PASSWORD"
keep
mda "/usr/bin/procmail -f - -m $HOME/.procmailrc"
#fetchall
Note. if you really need to keep the messages on the server, there's a tool in contrib (untar fetchmail's source) : delete-after
Fix the perms,
cd ~/
chmod 600 .fetchmailrc
Usage
Run fetchmail,
fetchmail
Once everything works you can enable daemon mode. Uncomment daemon and logfile lines,
#5 minutes interval,
set daemon 300
set logfile $HOME/.fetchmailrc.log
Usage with Cygwin
Note on windows/cygwin,
cygrunsrv.exe --install fetchmail \
--path /usr/bin/fetchmail \
--env HOME=$HOME \
--user "NTUSER" \
--args '--nodetach' \
--shutdown
Note. the password for NTUSER will be asked twice.
Note. alternatively,
--user "$USERDOMAIN\\$USERNAME"
Ref. '/usr/share/doc/Cygwin/fetchmail-*.README'
Then go to Windows services administration and check it,
Start > Execute > services.msc
(go down to "fetchmail") > right click > properties > automaticly
Other POP utilities
Getmail : http://pbraun.nethence.com/doc/mail/getmail.html
Retchmail : http://alumnit.ca/wiki/index.php?page=RetchMail
Cleanpop : http://cleanpop.sourceforge.net/
Popselect
Mpop
Poppy