Fetchmail - The Ultimate Mail Collector
Introduction
Fetchmail is an IMAP, POP2, POP3, etc. collector.
It allows you to retrieve emails from different mailboxes and consolidate them in your personal mailbox.
Installation
For installation, the usual steps:
Configuration
For a single user
Let's create a .fetchmailrc file in our home directory:
And insert these lines (for POP3):
For multiple users
If you want to create a file that will fetch (yes, the verb 😉) emails for multiple users with a single file, create the file "/etc/fetchmailrc" and insert lines like this:
Here the POP3 is with SSL, which is why we have the "ssl" option at the end.
Launch
Before doing anything, let's just test if the current configuration works:
Now that everything is good, let's retrieve our emails:
FAQ
mail forwarding loop
If you encounter this type of message, and have a line like this:
You need to add the "dropdelivered" option configured like this: