[exim] Global config to filter per-user globally?

Top Page
Delete this message
Reply to this message
Author: Troy Engel
Date:  
To: exim users
Subject: [exim] Global config to filter per-user globally?
I think this might be doable, so thought I'd ask the pros here (Hi Tony
;) ) -- I have a request to see if we can use a global filter on mail
for each individual user that's normally run in their forward file.

Our exim runs as mail:mail and runs SpamAssassin in the old fashioned
way, reinjecting the email after a callout (so it runs as mail:mail as
well). It will tag a spam with '[*SPAM*]' subject prepend, ready to be
filtered.

Each user's forward file uses basic filtering to look for that header
and stick it in a 'Junk' subfolder. This requires each user to have a
forward file, even if it's all this does. Sometimes users delete that
file or mess it up, so we'd like to just get rid of it if not needed for
50%+ of the users. (ignore the advanced users use-case, they know how to
use a forward file)

So, is it possible to do the per-user filtering in the main exim.conf
(or somesuch) of the spam-tagged emails directly into their Junk folder,
not requiring a per-user forward file?

My initial guess is some permutation of the 'localuser' router with a
global filter that triggers a custom transport (based on
'local_delivery') that uses ${home}/Maildir/.Junk maybe? Any ideas?

-te

--
Troy Engel | Systems Engineer
Fluid, Inc | http://www.fluid.com