How to retrieve emails from a POP3 account(s)

Contributed by: based on contribution from Michael Smith
Created/Updated: 19-06-2004 (Added external link for 6.0 and 6.0.1 support

 


If you for example would like to retrieve emails from some external POP3 accounts and drop them in individual user mailboxes then fetchmail is just the solution for you.

 

SME 5.5

[root@e-smith ]# rpm -Uvh http://sme.swerts-knudsen.dk/downloads/e-smith-fetchmail-0.3-4.noarch.rpm

 

 

SME 5.6

[root@e-smith ]# rpm -Uvh http://sme.swerts-knudsen.dk/downloads/sme-upgppp-1.0-1.noarch.rpm

[root@e-smith ]# rpm -Uvh http://sme.swerts-knudsen.dk/downloads/sme-fetchmail-1.0-2.noarch.rpm

 

SME 6.0/6.0.1

Have a look at this excellent site http://www.schirrms.net/sme/SMEFetchMail.php

 

SME 5.5 and 5.6 you now have a server-manager panel called "Mail Users" but first you need to configure your SME server in its "Email" panel". Set  "E-mail retrieval" to "multi-drop" and make sure to change the secondary mail server to a valid address (suggestion: type your own host name). Configure the check interval and then go to the "Mail Users" section in the server manager main menu. Choose "Individual mailbox" and configure the POP3 name, username and password.

If you do not want to use the Multi-Drop feature, but only want to fetch mail to your users from e.g. POP3 accounts, then can clear the content of the following template file created by the above installation.

[root@e-smith ]# echo -n "" > /etc/e-smith/templates-custom/etc/fetchmail/50multi-drop

[root@e-smith ]# /sbin/e-smith/expand-template /etc/fetchmail

 

This way you avoid having your log files filled up with POP3 errors.