Docs/SysAdmin/Server/Mail/FetchmailSA

From Mandriva Community Wiki

Jump to: navigation, search
Setting up Fetchmail, Procmail & Spamassassin

What I wanted to do was retrieve my mail from two different pop accounts, pass it all through a spam filter and have the Subjects re-written, store it locally in a single file, then have Evolution check the local mail file and use its filters to sort into Evolutions mail folders.

There are of course many configurations you could have using these 3 programs but this will concentrate specifically on accomplishing the task outlined above.

This all assumes you have Fetchmail, Procmail and Spamassassin already installed.


Contents

[edit] Fetchmail

Set up a config file, either $HOME/.fetchmailrc or /etc/fetchmailrc

Here's my config file for fetchmail:

# Set the last resort mail recipient
set postmaster "postmaster"
# Send m