Make localuser router optional

Under some circumstances it can be useful to not include the default
"localuser" Exim router. Make it optional via a
default_localuser_router class parameter which defaults to true,
preserving backward compatibility.

Change-Id: Iae38041c95bc0bbcd1dfd3d0c5c626b63acd7922
This commit is contained in:
Jeremy Stanley 2018-06-25 18:12:21 +00:00
parent 139fddd195
commit 58310c46cd
2 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,7 @@ class exim(
$queue_run_max = '5',
$queue_smtp_domains = undef,
$routers = [],
$default_localuser_router = true,
$smarthost = false,
$sysadmins = [],
$transports = [],

View File

@ -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