aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-10-02 13:54:29 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-10-02 13:54:29 -0300
commit8aa0a704f76c2e4e2bb022896166e07d2b06535e (patch)
treefc2b1cca0450c586c5bd7f47f919dd685058c6c4
parent687abafa95a20accad4c966a8fcf033c2b4bc567 (diff)
downloadpuppet-postfix-8aa0a704f76c2e4e2bb022896166e07d2b06535e.tar.gz
puppet-postfix-8aa0a704f76c2e4e2bb022896166e07d2b06535e.tar.bz2
Feat: adds dovecot_extension param
-rw-r--r--manifests/init.pp3
-rw-r--r--templates/master.cf.debian-10.erb2
2 files changed, 3 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 8ee2346..eb88478 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -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 {
diff --git a/templates/master.cf.debian-10.erb b/templates/master.cf.debian-10.erb
index e96f657..a6e819a 100644
--- a/templates/master.cf.debian-10.erb
+++ b/templates/master.cf.debian-10.erb
@@ -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