Bug 2258027

Summary: exim 4.97.1 update broke munin plugin exim_mailqueue
Product: [Fedora] Fedora Reporter: customercare
Component: eximAssignee: David Woodhouse <dwmw2>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: bennie.joubert, dwmw2, jskarvad, martin.fraenzl
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: exim-4.97.1-2.fc40 exim-4.97.1-5.fc38 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-01-16 17:09:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description customercare 2024-01-12 08:18:20 UTC
exim 4.97.1. broke munin's exim_mailqueue plugin.

root cause :

a bug in "exiqgrep"'s REGEXP to handle "exim -bup" output.

# exim -bpu
 9h  2.2K 1rO3sE-005JbF-1D-H <> *** frozen ***
          xxxx

# exiqgrep -cz
Line mismatch:  9h  2.2K 1rO3sE-005JbF-1D-H <> *** frozen ***



Reproducible: Always




Bugreport on Exim Mailinglist is out, in a few hours we will have an answere.

Comment 1 customercare 2024-01-12 08:50:33 UTC
Workaround:

Change Line 216 in /usr/sbin/exiqgrep from:

-		if ($line =~ /^\s*(?<age>\w+)\s+(?<size>(?:\d+(?:\.\d+)?[A-Z]?)?)\s*(?<msgid>(?:\w{6}-\w{6}-\w{2}|\w{6}-\w{11}-\w{4}))\s+(?<from><.*?>)/x) {

to:

+		if ($line =~ /^\s*(?<age>\w+)\s+(?<size>(?:\d+(?:\.\d+)?[A-Z]?)?)\s*(?<msgid>(?:\w{6}-\w{6}-\w{2}|\w{6}-\w{11}-\w{4}))/x) {

and it's working.

Comment 2 customercare 2024-01-12 14:33:21 UTC
Looks like exim in Fedora is behind some patchlevels.

Jemery Harris Core Dev of Exim:

On 1/12/24 08:14, Cyborg via Exim-users wrote:
> [~]# mailq
>   9h  2.2K 1rO3sE-005JbF-1D-H <> *** frozen ***
> xxxxxx

They need to pick up commit 1d19531abc45 at the very least:

Date:   Sun Nov 19 11:31:45 2023 +0000
    Support old-format message_id spoolfiles for mailq / -bp.  Bug 3050
    Broken-by: 46a36afae41f

Workaround:

change exiqgrep line 216++

\s*(?<msgid>(?:\w{6}-\w{6}-\w{2}|\w{6}-\w{11}-\w{4}))     # old, 2023 msgid formats

to:

\s*(?<msgid>(?:\w{6}-\w{6}-\w{2}|\w{6}-\w{11}-\w{4}))(?:-H)?     # old, 2023 msgid formats

(I've not tested this)
------------------------------

I have, works.

Comment 3 Fedora Update System 2024-01-16 17:07:32 UTC
FEDORA-2024-a11a7617e6 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-a11a7617e6

Comment 4 Fedora Update System 2024-01-16 17:09:28 UTC
FEDORA-2024-a11a7617e6 has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Fedora Update System 2024-03-05 12:55:52 UTC
FEDORA-2024-f3fb15da40 (exim-4.97.1-5.fc38) has been submitted as an update to Fedora 38.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-f3fb15da40

Comment 6 Fedora Update System 2024-03-06 02:34:53 UTC
FEDORA-2024-f3fb15da40 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-f3fb15da40`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-f3fb15da40

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2024-03-14 01:39:11 UTC
FEDORA-2024-f3fb15da40 (exim-4.97.1-5.fc38) has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.