From 0425a071bf6c08b013b9dcd92f03fe0c2e5067ad Mon Sep 17 00:00:00 2001 From: Zeljko Boros Date: Fri, 14 May 2021 16:32:18 +0200 Subject: [PATCH] postinst mail_privileged_grup = mail check and sed --- debian/postinst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/postinst b/debian/postinst index 95c1ccb..e02759c 100755 --- a/debian/postinst +++ b/debian/postinst @@ -16,6 +16,12 @@ cp_check_and_sed 'disable_plaintext_auth.*yes' \ 's/disable_plaintext_auth.*$/disable_plaintext_auth = no/g' \ /etc/dovecot/conf.d/10-auth.conf || true +if ! grep -q "mail_privileged_group.*mail$" /etc/dovecot/conf.d/10-mail.conf \ + cp_check_and_sed 'mail_privileged_group' \ + 's/mail_privileged_group.*$/mail_privileged_group = mail/g' \ + /etc/dovecot/conf.d/10-mail.conf || true +fi + cp_check_and_sed '#imap_client_workarounds' \ 's/#imap_client_workarounds/imap_client_workarounds/g' \ /etc/dovecot/conf.d/20-imap.conf || true -- 1.7.10.4