[Exim] per-user filtering

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: tsh
Dátum:  
Címzett: exim-users
Tárgy: [Exim] per-user filtering
Newbie running exim 4.10
------------------------

I'm tring to implement a per-user filter which doesnt
use .forward files. In sction 39.8, the exim ref
show some code similar to:

central_filter:
driver = redirect
domains = +local_domains
file = /central/filters/$local_part
no_verify
allow_filter
allow_freeze

I havent yet grasped the division of labour within exim.
Is this code meant to be a router definition?
If not, where should it go? If I run a test msg through
exim (with exim -bh) using this code in the router section
of my config file, the output doesnt show any reference to it.

This section is placed just ahead of my system_aliases router thus:


central_filter:
  driver = redirect
###########  domains = +local_domains                ##if things get this far, the msg must be for a local domain
  file = /usr/exim/userfilters/$local_part
  user=exim                            ##if I dont provide a user, exim moans about 'allow_filter'
  no_verify
  allow_filter
#  allow_freeze



system_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/etc/aliases}}
user = exim
file_transport = address_file
pipe_transport = address_pipe
### no_more


lmb_router:
driver = dnslookup
domains = ! @
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more

Am I off my trolley here?

TIA,
Terry



Terry Horsnell (tsh@???)
I.T. Manager
Medical Research Council
Lab of Molecular Biology
Hills Road
CAMBRIDGE CB2 2QH
U.K.
Phone:    +44 (0)1223 248011
Fax:    +44 (0)1223 213556