Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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"
then
  save "$home/Maildir/.Mailing Lists.BugTraq/"
  finish
endif

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

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

1 Answer 1

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

 
discard

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.