diff --git a/manifests/init.pp b/manifests/init.pp index e7ce692..b7249dc 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -27,6 +27,7 @@ class exim( $queue_run_max = '5', $queue_smtp_domains = undef, $routers = [], + $default_localuser_router = true, $smarthost = false, $sysadmins = [], $transports = [], diff --git a/templates/exim4.conf.erb b/templates/exim4.conf.erb index 6bc42c0..d5f23fa 100644 --- a/templates/exim4.conf.erb +++ b/templates/exim4.conf.erb @@ -652,6 +652,7 @@ system_aliases: # .forward files are not supported --jeblair +<% if @default_localuser_router == true -%> # This router matches local user mailboxes. If the router fails, the error # message is "Unknown user". @@ -667,6 +668,7 @@ localuser: # local_part_suffix_optional transport = local_delivery cannot_route_message = Unknown user +<% end -%> <% if @mailman_domains.length > 0 -%> # Pick up on messages from our local mailman and route them via our