aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-07-29 21:13:50 +0100
committerGravatar Joe Banks <[email protected]>2024-07-31 13:25:54 +0100
commita9d0e8c00d0147fdceba8c1afc2c2ad12aeafb39 (patch)
tree4f00cb9f526217352a57c4ae5f54bcdf0d35a4c5
parentspf: add policyd-spf to validate SPF of inbound mail (diff)
postfix: add handler to restart postfix
-rw-r--r--ansible/roles/postfix/handlers/main.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/ansible/roles/postfix/handlers/main.yml b/ansible/roles/postfix/handlers/main.yml
index 0011c1a..991ab9b 100644
--- a/ansible/roles/postfix/handlers/main.yml
+++ b/ansible/roles/postfix/handlers/main.yml
@@ -4,6 +4,11 @@
name: postfix
state: reloaded
+- name: Restart postfix
+ service:
+ name: postfix
+ state: restarted
+
- name: Regenerate virtual table
command: postmap /etc/postfix/virtual
changed_when: true