Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I run a mail server using Dovecot and Exim. Currently mail filtering is done on a per user basis using a .forward file in ~/ containing entires along the lines of:

if $h_to: CONTAINS "bugtraq"
  save "$home/Maildir/.Mailing Lists.BugTraq/"

if $h_Subject: CONTAINS "Sfic"
  save "$home/Maildir/.Mailing Lists/"

And so on. This is quite tedious as it requires users to ssh in and manually write their own .forwars files. I am wondering if there are any easier or more elegant solutions to server side filtering. Are there any standards for mail clients to tell the server how to classify mail server-side?

share|improve this question
up vote 0 down vote accepted

Well, I can't think of anything on the server side, but if manual setup of .forward is the problem, you can set up a default .forward file in /etc/skel/ and that'd be copied into all new users' home directories. As a one time maintenance you'll have to append your default .forward rules into all current user's .forward.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.