From 2c5c5f1951dd6c895ceb0008cccc2409f6648a4f Mon Sep 17 00:00:00 2001 From: Tobias Herre Date: Mon, 23 Oct 2023 11:08:05 +0200 Subject: [PATCH] change sql_dir into maps_dir --- postfix.cf | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/postfix.cf b/postfix.cf index 4db77a2..99a7686 100644 --- a/postfix.cf +++ b/postfix.cf @@ -47,6 +47,8 @@ vars: "postmap_cmd" string => "/usr/sbin/postmap"; any:: "data_dir" string => "$(db_dir)/postfix"; + "maps_dir" string => "$(cfg_dir)/maps"; + users: debian:: @@ -69,6 +71,12 @@ files: create => "true", perms => m(755); + "$(maps_dir)/." + create => "true", + perms => m("755"); + + + "$(postfix.db_dir)/." create => "true", perms => mog("755","root","root"), @@ -172,15 +180,15 @@ vars: "idx" slist => getindices("file"); - "sql_dir" string => "$(postfix.cfg_dir)/sql"; + "maps_dir" string => "$(postfix.cfg_dir)/maps"; - "$(idx)" string => "$(sql_dir)/$(idx).sql"; + "$(idx)" string => "$(maps_dir)/$(idx).sql"; files: - "$(sql_dir)/." + "$(maps_dir)/." create => "true", perms => m("755"); - "$(sql_dir)/$(idx).sql" + "$(maps_dir)/$(idx).sql" create=>"true", perms=>m("644"), content=>"