The Fetchmail package contains the a mail retrieval program. "It retrieves mail from remote mail servers and forwards it to your local (client) machine's delivery system, so it can then be read by normal mail user agents."
Download (HTTP): http://www.catb.org/~esr/fetchmail/fetchmail-6.2.5.tar.gz
Download (FTP): ftp://gnome.dti.ad.jp/.1/unix/net/mail/fetchmail/fetchmail-6.2.5.tar.gz
Download size: 1.2 MB
Estimated Disk space required: 5.8 MB
Estimated build time: 0.14 SBU
OpenSSL-0.9.7d and a local MDA (Procmail-3.22)
Install Fetchmail by running the following commands:
./configure --prefix=/usr --with-ssl --enable-fallback=procmail &&
make &&
make install
--with-ssl: This enables SSL if found, so that you can handle connections to secure POP3 and IMAP servers.
--enable-fallback=procmail: This tells Fetchmail to hand incoming mail to Procmail for delivery if your port 25 mail server is not present or not responding.
set logfile /var/log/fetchmail.log set no bouncemail set postmaster root poll SERVERNAME : user "username" pass "password"; mda "/usr/bin/procmail -f %F -d %T";
Is an example configuration that should suffice for most people. You can add as many users and servers as you need using the same syntax.
man fetchmail: Look for the section near the bottom named CONFIGURATION EXAMPLES it gives some quick examples too. There are countless other config options once you get used to it.
The Fetchmail package contains fetchmail and fetchmailconf.
When executed as a user, this will source that users ~/.fetchmailrc and download the appropriate mail.