Skip to content

Commit

Permalink
dovecot: also generate DANE reocrds for non-encrypted protocols
Browse files Browse the repository at this point in the history
- Generate imap and pop3 DANE records, on ports 143 and 110 resp.

To update your server, run the following playbook:

---
ROLE=dovecot apb -i ../config/hosts.yml -v -t facts,scripts install.yml
---
  • Loading branch information
arodier committed Mar 24, 2024
1 parent d8713bf commit 01c8176
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/dovecot/files/scripts/renew-cert-imap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ if [ $server_until_epoch -lt $file_until_epoch ]; then
echo "Not live"
elif [ "$action" = "activate" ]; then
/usr/local/sbin/dane-set-record imap 993
/usr/local/sbin/dane-set-record imap 143
systemctl restart dovecot
fi
elif [ "$action" = "status" ]; then
Expand Down
1 change: 1 addition & 0 deletions roles/dovecot/files/scripts/renew-cert-pop3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ if [ $server_until_epoch -lt $file_until_epoch ]; then
if [ "$action" = "status" ]; then
echo "Not live"
elif [ "$action" = "activate" ]; then
/usr/local/sbin/dane-set-record pop3 110
/usr/local/sbin/dane-set-record pop3 995
systemctl restart dovecot
fi
Expand Down

0 comments on commit 01c8176

Please sign in to comment.