]> gitweb.fluxo.info Git - puppet-postfix.git/commitdiff
Feat: adds dovecot_extension param
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 2 Oct 2020 16:54:29 +0000 (13:54 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 2 Oct 2020 16:54:29 +0000 (13:54 -0300)
manifests/init.pp
templates/master.cf.debian-10.erb

index 8ee2346190be9d9dcb0f0ad22d044fb920cbe456..eb8847893d7fd9a48f012bed04392138f890185d 100644 (file)
@@ -53,7 +53,8 @@ class postfix(
   $mastercf_tail           = '',
   $inet_interfaces         = 'all',
   $myorigin                = $::fqdn,
-  $default_alias_maps      = true
+  $default_alias_maps      = true,
+  $dovecot_extension       = '-m ${extension}',
 ) {
 
   case $::operatingsystem {
index e96f65786f2d57cd6bbae155b116c84cdd8515a0..a6e819a1b420dac09eccdfbd19373a028fa1c522 100644 (file)
@@ -148,7 +148,7 @@ amavis unix - - - - 2 smtp
 <% end %>
 <% if @use_dovecot_lda == 'yes' %>
 dovecot   unix  -       n       n       -       -       pipe
-  flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop} -m ${extension} -a "${recipient}"
+  flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop} <%= @dovecot_extension %> -a "${recipient}"
 <% end %>
 <% if @use_schleuder == 'yes' %>
 schleuder  unix  -       n       n       -       -       pipe