Deploy sender_access file
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
parent
7a5346019b
commit
cfab031a8a
1 changed files with 17 additions and 0 deletions
|
@ -30,6 +30,23 @@
|
||||||
- config
|
- config
|
||||||
- base
|
- base
|
||||||
|
|
||||||
|
- name: Deploy sender_access file
|
||||||
|
copy: src="{{private}}/files/smtpd/sender_access" dest="/etc/postfix/sender_access
|
||||||
|
when: "{{postfix_group}} == 'smtp-mm'"
|
||||||
|
tags:
|
||||||
|
- postfix
|
||||||
|
- config
|
||||||
|
- base
|
||||||
|
|
||||||
|
- name: Create sender_access hash
|
||||||
|
command: postmap hash:/etc/postfix/sender_access
|
||||||
|
changed_when: false
|
||||||
|
when: "{{postfix_group}} == 'smtp-mm'"
|
||||||
|
tags:
|
||||||
|
- postfix
|
||||||
|
- config
|
||||||
|
- base
|
||||||
|
|
||||||
- name: enable postfix to start
|
- name: enable postfix to start
|
||||||
service: name=postfix state=started enabled=true
|
service: name=postfix state=started enabled=true
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue