Verified Commit 678f997b authored by Florian Pritz's avatar Florian Pritz
Browse files

dovecot/postfix: Add letsencrypt hook


Signed-off-by: Florian Pritz's avatarFlorian Pritz <bluewind@xinu.at>
parent 6e8fd892
......@@ -8,6 +8,9 @@
notify:
- reload dovecot
- name: install dovecot cert renewal hook
template: src=letsencrypt.hook.d.j2 dest=/etc/letsencrypt/hook.d/dovecot owner=root group=root mode=0755
- name: start and enable dovecot
service: name=dovecot enabled=yes state=started
#!/bin/sh
test "$1" = renew || exit 0
check_domain="{{ mail_domain }}"
for domain in $RENEWED_DOMAINS; do
case "$domain" in
$check_domain)
systemctl reload dovecot
;;
esac
done
......@@ -55,6 +55,10 @@
notify:
- reload postfix
- name: install postfix cert renewal hook
template: src=letsencrypt.hook.d.j2 dest=/etc/letsencrypt/hook.d/postfix owner=root group=root mode=0755
when: postfix_smtpd_public
- name: start and enable postfix
service: name=postfix enabled=yes state=started
......
#!/bin/sh
test "$1" = renew || exit 0
check_domain="{{ mail_domain }}"
for domain in $RENEWED_DOMAINS; do
case "$domain" in
$check_domain)
systemctl reload postfix
;;
esac
done
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment