paulbsd-salt/states/postfix/maps.sls

44 lines
995 B
Plaintext
Raw Normal View History

2020-07-19 14:13:51 +02:00
---
{%- from "postfix/map.jinja" import postfix with context %}
postfix-transport-maps:
file.managed:
- name: {{ postfix.base_dir }}/transport
- source: salt://postfix/templates/transport.j2
- user: root
- group: root
- mode: 644
- template: jinja
- watch_in:
- service: postfix-service
- cmd: postfix-transport
postfix-sender-access-maps:
file.managed:
- name: {{ postfix.base_dir }}/sender_access
- source: salt://postfix/templates/sender_access.j2
- user: root
- group: root
- mode: 644
- template: jinja
- watch_in:
- service: postfix-service
- cmd: postfix-sender-access
postfix-transport:
cmd.run:
2022-06-10 00:39:52 +02:00
- name: postmap transport
2020-07-19 14:13:51 +02:00
- cwd: {{ postfix.base_dir }}
2022-12-03 00:05:37 +01:00
- success_stdout:
- ""
- success_retcodes:
- 0
2020-07-19 14:13:51 +02:00
postfix-sender-access:
cmd.run:
2022-06-10 00:39:52 +02:00
- name: postmap sender_access
2021-08-19 21:15:24 +02:00
- cwd: {{ postfix.base_dir }}
2022-12-03 00:05:37 +01:00
#- success_stdout:
# - ""
- success_retcodes:
- 0