Commit 1b4bd5d3 authored by Cédric Jeanneret's avatar Cédric Jeanneret Committed by Issey Llambias
Browse files

postfix - allow us to set mail user for services

parent a20d988c
......@@ -52,6 +52,9 @@ class postfix {
case $postfix_use_sympa {
"": { $postfix_use_sympa = "no" }
}
case $postfix_mail_user {
"": { $postfix_mail_user = "vmail" }
}
package { "postfix":
......
......@@ -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
......
......@@ -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.
#
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment