Skip to content
Browse files

postfix - allow us to set mail user for services

  • Loading branch information...
1 parent a20d988 commit 1b4bd5d3a4435751008730b0528469621364bd4d @cjeanneret cjeanneret committed with illambias
Showing with 5 additions and 2 deletions.
  1. +3 −0 manifests/classes/postfix.pp
  2. +1 −1 templates/master.cf.common.erb
  3. +1 −1 templates/master.cf.debian.erb
View
3 manifests/classes/postfix.pp
@@ -52,6 +52,9 @@
case $postfix_use_sympa {
"": { $postfix_use_sympa = "no" }
}
+ case $postfix_mail_user {
+ "": { $postfix_mail_user = "vmail" }
+ }
package { "postfix":
View
2 templates/master.cf.common.erb
@@ -19,7 +19,7 @@ amavis unix - - - - 2 smtp
<% end -%>
<% if has_variable?("postfix_use_dovecot_lda") and postfix_use_dovecot_lda == 'yes' %>
dovecot unix - n n - - pipe
- flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}
+ flags=DRhu user=<%= postfix_mail_user %>:<%= postfix_mail_user %> argv=/usr/lib/dovecot/deliver -d ${recipient}
<% end -%>
<% if has_variable?("postfix_use_schleuder") and postfix_use_schleuder == 'yes' %>
schleuder unix - n n - - pipe
View
2 templates/master.cf.debian.erb
@@ -68,7 +68,7 @@ scache unix - - - - 1 scache
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
- flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
+ flags=DRhu user=<%= postfix_mail_user %> argv=/usr/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#

0 comments on commit 1b4bd5d

Please sign in to comment.
Something went wrong with that request. Please try again.