FS#57733 - [dovecot] segfault when user is overquota (quota_exceeded)

Attached to Project: Community Packages
Opened by Thore Bödecker (foxxx0) - Tuesday, 06 March 2018, 18:09 GMT
Last edited by Thore Bödecker (foxxx0) - Wednesday, 07 March 2018, 08:42 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Johannes Löthberg (demize)
Thore Bödecker (foxxx0)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When using dovecot with quotas there is a nasty bug which results in segfaults if the user is overquota and additionals mails are attempted to be delivered through ltmp.

This bug has been fixed upstream in git master but there is no fixed released yet and for the near future it is not planned (at least not solely because of this segfault issue) (source: freenode/#dovecot).
It is assumed to be fixed in the upstream 2.3.1 release but rumor has it that this at least one month away.

Since this segfault essentially breaks the quota-status service of dovecot for postfix to check overquota, the incoming mails will pile up in the mailq when the recipient is overquota.
The intended behaviour for this is a failure DSN from dovecot to postfix so that postfix immediately returns a bounce message without any delays.

I have taken the liberty to implement the patch into the dovecot PKGBUILD which is linked at the bottom of this bugreport and includes a pkgrel bump.

If there is no objection I'm offering co-maintainership of dovecot since I'm actively using it and wouldn't mind pushing this fix directly into the repository.
I have already successfully built and tried the fixed package on my servers and the bug is fixed indeed.


Additional info:
* affected version: dovecot 2.3.0.1-1
* dmesg output when triggering this issue: https://paste.foxxx0.de/ynxb/


Steps to reproduce:
* configure dovecot with quotas
* fill one users mailbox with messages until he is at his quota limit
* try to send another mail to the user
* dovecot-lmtp will segfault
This task depends upon

Closed by  Thore Bödecker (foxxx0)
Wednesday, 07 March 2018, 08:42 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed as of dovecot-2.3.0.1-2
Comment by loqs (loqs) - Tuesday, 06 March 2018, 18:19 GMT
You filed the bug report in packages:extra instead of packages:community
Comment by Thore Bödecker (foxxx0) - Tuesday, 06 March 2018, 18:27 GMT
Yeah, I noticed that the moment I clicked on submit...

I've notified some folks and Eli was kind enough to move it to the right place already :)

Loading...