################################# # The routers that handle the actual local delivery of mail. These routers all # work just on the localhost "domain", so any previous routers that want to # have mail delivered locally should redirect to username@localhost and set # redirect_router to "local_delivery". These routers are not used directly on # incoming messages, the first router guarantees this. # # Currently, there is only a single router that uses dovecot's deliver program # to deliver the mail, but others could be (re)added when required. ################################# # Dummy noop router, that ensures that these routers are never called directly # on an incoming message and enforces that they only be called when a previous # router explicitely sets redirect_router to local_delivery. always_fail: debug_print = "R: local_delivery for $local_part@$domain" driver = redirect data = more = false cannot_route_message = "Internal error" # Dummy noop router, that can be used by other routers for the value of # redirect_router or pass_router, without being dependent on the (order of) # actual delivery routers below. local_delivery: debug_print = "R: local_delivery for $local_part@$domain" driver = redirect data = # This router uses dovecot_deliver for delivery dovecot_deliver: debug_print = "R: dovecot_deliver for $local_part@$domain" driver = accept domains = localhost check_local_user local_parts = ! root transport = dovecot_deliver # If we get here, some previous router redirected to a non-existing user. # That should not happen! cannot_route_message = Unknown user: This should not happen # vim: set sts=2 expandtab sw=2 ai: