Bug 56586 - Add "attribute" filter to fetchmail listener
Add "attribute" filter to fetchmail listener
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Mail
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0-5-errata
Assigned To: Juan Carlos
Christian Castens
https://git.knut.univention.de/univen...
:
Depends on:
Blocks: 56585
  Show dependency treegraph
 
Reported: 2023-09-14 09:26 CEST by Daniel Tröder
Modified: 2023-11-29 14:56 CET (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 4: A User would return the product
User Pain: 0.229
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Tröder univentionstaff 2023-09-14 09:26:41 CEST
+++ This bug was initially created as a clone of Bug #56585 +++

Add »attribute=[...]« to the listener, so it is only triggered, when a relevant LDAP attribute changes.

The fetchmail configuration is rewritten after _any_ change to a user with UDM fetchmail data.

That is not only inefficient but also potentially problematic.

That means, that in a time of change with high frequency (e.g. school import, school year change etc.), the fetchmailrc will be overwritten again and again.
Currently the writes are not atomic (create temp. file and do a mv), but the fetchmailrc is written to directly.
So it is possible, that during a restart of the daemon the file is in an inconsistent state.
Comment 1 Juan Carlos univentionstaff 2023-11-10 13:04:12 CET
Changes:

- Narrowed down the conditions under which the listener module gets called.

Commits:

univention-fetchmail.yaml
c45a0bd79d31 | Bug #56482 Check that user has mailPrimaryAddress in Fetchmail listener

univention-fetchmail (13.0.7-3)
c45a0bd79d31 | Bug #56482 Check that user has mailPrimaryAddress in Fetchmail listener

New version:

Package: univention-fetchmail
Version: 13.0.7-3
Branch: ucs_5.0-0
Scope: ucs5.0-5
Comment 2 Christian Castens univentionstaff 2023-11-28 10:34:37 CET
QA:
  - Narrowed down conditions under which the listener module gets called: OK
  - Advisories: OK