Bug 55908 - UCRV for mail dovecot quota being reset when univention-mail-dovecot.postinst is executed
UCRV for mail dovecot quota being reset when univention-mail-dovecot.postinst...
Status: NEW
Product: UCS
Classification: Unclassified
Component: Mail - Dovecot
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: Mail maintainers
Mail maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-03-24 03:08 CET by Mirac Erdemiroglu
Modified: 2023-04-04 08:32 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.103
Enterprise Customer affected?: Yes
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2023032221000451
Bug group (optional): bitesize, Usability
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mirac Erdemiroglu univentionstaff 2023-03-24 03:08:22 CET
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."
Comment 1 Mirac Erdemiroglu univentionstaff 2023-03-24 03:24:34 CET
Maybe it could be better to make the setting for the percents more flexible, so the customers could choose when they get the warnings.
Comment 2 Florian Best univentionstaff 2023-03-24 13:41:29 CET
does `ucr unset --force` help against the postinst overwrite?
Comment 3 Florian Best univentionstaff 2023-03-24 13:41:50 CET
what happens when setting the values to empty strings?
Comment 4 Mirac Erdemiroglu univentionstaff 2023-04-04 08:32:08 CEST
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.