Tuesday 2nd May 2006

Local Packages

Fedora Extras

Mail Server

Started doing server-side mail filtering using procmail in conjunction with the dovecot IMAP server.

In my main .procmailrc, I have a line near the top:

# Try out server-side filtering for mailing lists
INCLUDERC=filter-mailing-lists

And the filter-mailing-list file contains a bunch of recipes like this:

# Server-side filter for Paul's mailing lists

# Save MAILDIR
OLDMAILDIR=$MAILDIR

# Folders are relative to here
MAILDIR=$HOME/mail/inbox

# fedora-list
:0
* ^List-Id:.*fedora-list\.redhat\.com
.Linux.fedora-list/

# fedora-devel-list
:0
* ^List-Id:.*fedora-devel-list\.redhat\.com
.Linux.fedora-devel-list/

# ... more of the same ...

# Restore MAILDIR
MAILDIR=$OLDMAILDIR

Works very nicely, and means that I can turn off all client-side filtering so that:

  1. I get to read my mail sooner, and
  2. I don't need to set up a bunch of new filters every time I try a new mail client (e.g. when visiting my brother-in-law last month and using his computer).


last edited 2008-01-31 12:31:42 by localhost