How to set up server side message filters on sendmail/Imap server

filteringimapsendmail

I currently have message filters set up in Thunderbird to put incoming email messages from various sources in appropriate server side folders. Since I envision starting to use a smartphone (Android) based IMAP client which doesn't support folders or message filters I'd like to move these filters server side and take them off the clients.

The Linux server email system is sendmail and UW IMAP. Can someone steer me in the direction of setting up such filters on the server side?

Best Answer

In the mail delivery agent section of sendmail, add a line for procmail or maildrop. Then create a recipe for procmail or setup maildrop to filter the email as it is delivered.

See the documentation for procmail or maildrop for more details.

Related Topic