From 47ffa7d1734b0249608e405372b5f3182775d979 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20B=C3=A9rtoli?= Date: Sun, 18 Mar 2018 14:08:45 -0300 Subject: [PATCH] Fix xbin_prefix parameter, add managed by Salt headers --- postfix/files/main.cf | 5 ++++- postfix/files/master.cf | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/postfix/files/main.cf b/postfix/files/main.cf index a3c0105..fa03b67 100644 --- a/postfix/files/main.cf +++ b/postfix/files/main.cf @@ -25,7 +25,10 @@ {%- endif %} {%- endmacro -%} -# Managed by config management +# +# This file is managed by salt. +# Modify the salt pillar in the postfix formula that generates this file instead. +# # See /usr/share/postfix/main.cf.dist for a commented, more complete version diff --git a/postfix/files/master.cf b/postfix/files/master.cf index 0520ed1..d3d1ebe 100644 --- a/postfix/files/master.cf +++ b/postfix/files/master.cf @@ -61,6 +61,9 @@ y {%- endif -%} {%- endmacro -%} +# +# This file is managed by salt. +# Modify the salt pillar in the postfix formula that generates this file instead. # # Postfix master process configuration file. For details on the format # of the file, see the master(5) manual page (command: "man 5 master" or @@ -174,7 +177,7 @@ y # ${nexthop} ${user} {%- if salt['pillar.get']('postfix:policyd-spf:enabled', False) %} policy-spf unix - n n - - spawn - user=nobody argv={{ xbin_prefix }}/bin/policyd-spf + user=nobody argv={{ postfix.xbin_prefix }}/bin/policyd-spf {%- endif %} {%- if master_config.get('enable_dovecot', False) -%} {%- set dovecot = master_config.get('dovecot', {} )%}