Univention Bugzilla – Bug 55908
UCRV for mail dovecot quota being reset when univention-mail-dovecot.postinst is executed
Last modified: 2023-04-04 08:32:08 CEST
UCS 5.0-3 mail/dovecot/quota/warning/text If the UCRV are being unset because the customer don´t want to get the warning at 80%, the /var/lib/dpkg/info/univention-mail-dovecot.postinst is reset the UCRV to the default entry. mail/dovecot/quota/warning/text/80 mail/dovecot/quota/warning/text/95 /var/lib/dpkg/info/univention-mail-dovecot.postinst univention-config-registry set \ mail/dovecot/quota/warning/text/80?'Your mailbox is filled to over $PERCENT%.' \ mail/dovecot/quota/warning/text/95?'Attention: Your mailbox is already filled to over $PERCENT%. Please delete some messages or contact your administrator.' \ Variables in the format mail/dovecot/quota/warning/text/PERCENT=TEXT can be used to configure the texts of warning emails sent to users, when their mailboxes grow over quota. If no UCR variable is set, no warning will be sent. If TEXT contains the string "$PERCENT", it will be replaced in the email with the value of the limit that has been exceeded. Defaults are two entries: "80=Your mailbox has filled up to over $PERCENT%." and "95=Attention: Your mailbox has already filled up to over $PERCENT%. Please delete some messages or contact the administrator."
Maybe it could be better to make the setting for the percents more flexible, so the customers could choose when they get the warnings.
does `ucr unset --force` help against the postinst overwrite?
what happens when setting the values to empty strings?
ucr unset dont help,because the postinst-script recreate the ucrv. My solution was to ucr set mail/dovecot/quota/warning/text/80="" so the ucrv dont have an empty value and the postinst-script dont touch the ucrv.