'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