exim4: Use dovecot for delivery only.
[matthijs/servers/drsnuggles.git] / etc / exim4 / conf.d / router / 40_local_delivery
1 #################################
2 # The routers that handle the actual local delivery of mail. These routers all
3 # work just on the localhost "domain", so any previous routers that want to
4 # have mail delivered locally should redirect to username@localhost and set
5 # redirect_router to "local_delivery". These routers are not used directly on
6 # incoming messages, the first router guarantees this.
7
8 # Currently, there is only a single router that uses dovecot's deliver program
9 # to deliver the mail, but others could be (re)added when required.
10 #################################
11
12
13 # Dummy noop router, that ensures that these routers are never called directly
14 # on an incoming message and enforces that they only be called when a previous
15 # router explicitely sets redirect_router to local_delivery.
16 always_fail:
17   debug_print = "R: local_delivery for $local_part@$domain"
18   driver = redirect
19   data =
20   more = false
21   cannot_route_message = "Internal error"
22
23 # Dummy noop router, that can be used by other routers for the value of
24 # redirect_router or pass_router, without being dependent on the (order of)
25 # actual delivery routers below.
26 local_delivery:
27   debug_print = "R: local_delivery for $local_part@$domain"
28   driver = redirect
29   data =
30
31 # This router uses dovecot_deliver for delivery
32 dovecot_deliver:
33   debug_print = "R: dovecot_deliver for $local_part@$domain"
34   driver = accept
35   domains = localhost
36   check_local_user
37   local_parts = ! root
38   transport = dovecot_deliver
39   # If we get here, some previous router redirected to a non-existing user.
40   # That should not happen!
41   cannot_route_message = Unknown user: This should not happen
42
43 # vim: set sts=2 expandtab sw=2 ai: