Fetch email from a remote server to a local user mailbox

Q. How do I fetch email from a remote server to a local user mailbox (localhost or desktop Linux system) ?

A. You need to use simple program called fetchmail. It is an utility which retrieves email from remote mailservers and delivers it to the local mail server or MTA. The fetchmail utility supports following common mail-retrieval protocols:
POP3
IMAP4
POP2 etc

You need to create a .fetchmailrc file in your home directory i.e. /home/you/.fetchmailrc and setup permission to 644.

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.