master.cf: added dovecot
This commit is contained in:
parent
4c7c2a269d
commit
caee184158
@ -1,6 +1,14 @@
|
|||||||
postfix:
|
postfix:
|
||||||
manage_master_config: True
|
manage_master_config: True
|
||||||
master_config:
|
master_config:
|
||||||
|
enable_dovecot: False
|
||||||
|
# The following are the default values:
|
||||||
|
dovecot:
|
||||||
|
user: vmail
|
||||||
|
group: vmail
|
||||||
|
flags: DRhu
|
||||||
|
argv: "/usr/lib/dovecot/deliver -d ${recipient}"
|
||||||
|
|
||||||
enable_submission: False
|
enable_submission: False
|
||||||
# To replace the defaults use this:
|
# To replace the defaults use this:
|
||||||
submission:
|
submission:
|
||||||
|
@ -10,3 +10,4 @@ postfix:
|
|||||||
root_grp: root
|
root_grp: root
|
||||||
service: postfix
|
service: postfix
|
||||||
xbin_prefix: /usr
|
xbin_prefix: /usr
|
||||||
|
dovecot_deliver: /usr/lib/dovecot/deliver
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
{%- from "postfix/map.jinja" import postfix with context -%}
|
||||||
|
|
||||||
{%- macro set_option(parameter, value) -%}
|
{%- macro set_option(parameter, value) -%}
|
||||||
{%- if value is number or value is string -%}
|
{%- if value is number or value is string -%}
|
||||||
-o {{ parameter }}={{ value }}
|
-o {{ parameter }}={{ value }}
|
||||||
@ -146,7 +148,12 @@ scache unix - - n - 1 scache
|
|||||||
#mailman unix - n n - - pipe
|
#mailman unix - n n - - pipe
|
||||||
# flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
|
# flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
|
||||||
# ${nexthop} ${user}
|
# ${nexthop} ${user}
|
||||||
{% if salt['pillar.get']('postfix:policyd-spf:enabled', False) %}
|
{%- if salt['pillar.get']('postfix:policyd-spf:enabled', False) %}
|
||||||
policy-spf unix - n n - - spawn
|
policy-spf unix - n n - - spawn
|
||||||
user=nobody argv={{ xbin_prefix }}/bin/policyd-spf
|
user=nobody argv={{ xbin_prefix }}/bin/policyd-spf
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
{%- if master_config.get('enable_dovecot', False) -%}
|
||||||
|
{%- set dovecot = master_config.get('dovecot', {} )%}
|
||||||
|
dovecot unix - n n - - pipe
|
||||||
|
flags={{ dovecot.get('flags', 'DRhu') }} user={{ dovecot.get('user', 'vmail') }}:{{ dovecot.get('group', 'vmail') }} argv={{ dovecot.get('argv', postfix.dovecot_deliver) ~ ' -d ${recipient}' }}
|
||||||
|
{% endif -%}
|
||||||
|
@ -12,6 +12,7 @@ FreeBSD:
|
|||||||
xbin_prefix: /usr/local
|
xbin_prefix: /usr/local
|
||||||
config_path: /usr/local/etc/postfix
|
config_path: /usr/local/etc/postfix
|
||||||
root_grp: wheel
|
root_grp: wheel
|
||||||
|
dovecot_deliver: /usr/local/libexec/dovecot/deliver
|
||||||
|
|
||||||
Gentoo:
|
Gentoo:
|
||||||
package: mail-mta/postfix
|
package: mail-mta/postfix
|
||||||
|
Loading…
Reference in New Issue
Block a user