exim: use a different local part suffix for tracker virtual users
authorAdam D. Barratt <adam@adam-barratt.org.uk>
Fri, 18 Oct 2019 20:58:03 +0000 (21:58 +0100)
committerAdam D. Barratt <adam@adam-barratt.org.uk>
Fri, 18 Oct 2019 20:58:03 +0000 (21:58 +0100)
Part of RT#7283

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
modules/exim/templates/eximconf.erb

index 16516ac..be53a54 100644 (file)
@@ -1484,7 +1484,11 @@ virt_direct_verify:
   modemask = 002
   directory_transport = address_directory
   domains = +virtual_domains
+<%- if @is_trackermaster -%>
+  local_part_suffix = +*
+<%- else -%>
   local_part_suffix = -*
+<%- end -%>
   local_part_suffix_optional
   file = $home/.forward-\
               ${if exists {${home}/.forward-${local_part}}{${local_part}}\
@@ -1514,7 +1518,11 @@ virt_direct:
   group = ${extract{group}{VDOMAINDATA}}
   headers_add = "Delivered-To: ${local_part}${local_part_suffix}@${domain}"
   modemask = 002
+<%- if @is_trackermaster -%>
+  local_part_suffix = +*
+<%- else -%>
   local_part_suffix = -*
+<%- end -%>
   local_part_suffix_optional
   pipe_transport = address_pipe
   reply_transport = address_reply