Bug 247561

Summary: mail/dbmail 3.2.4 fails to connect
Product: Ports & Packages Reporter: Alan Hicks <ahicks>
Component: Individual Port(s)Assignee: Muhammad Moinur Rahman <bofh>
Status: Closed FIXED    
Severity: Affects Only Me CC: lukasz, vas
Priority: --- Flags: bugzilla: maintainer-feedback? (bofh)
Version: Latest   
Hardware: Any   
OS: Any   

Description Alan Hicks 2020-06-26 13:03:59 UTC
The upgrade to 3.2.4 removed a fix to allow systems that don't use proc
https://github.com/pjstevns/dbmail/pull/46/files#diff-c6a39d85434c5cd409eac50923f2ac1e

An error is:
Jun 26 11:16:32 verdi.p-o.co.uk dbmail-imapd[11913]: [0x80196dc00] Error:[imap] imap_handle_connection(+632): [0x802135340] failed to retrieve fd limits, dropping client connection

There is also an optimisations that barfed PostgreSQL with MySQL only function group_concat

As it doesn't appear to be a quick fix (tm) I've successfully downgraded to r530319
portdowngrade mail/dbmail 530319
Comment 1 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2020-07-22 05:18:59 UTC
*** Bug 248119 has been marked as a duplicate of this bug. ***
Comment 2 Victor Sudakov 2020-07-22 05:25:37 UTC
Please note that I tried to mount procfs but it did not resolve the "failed to retrieve fd limits" problem.
Comment 3 Alan Hicks 2020-07-22 09:55:23 UTC
The recent merge ed15601 appears to fix both issues, but after successfully connecting and logging in, the imap daemon stops running.
Comment 4 commit-hook freebsd_committer freebsd_triage 2020-07-23 06:44:00 UTC
A commit references this bug:

Author: bofh
Date: Thu Jul 23 06:43:42 UTC 2020
New revision: 542917
URL: https://svnweb.freebsd.org/changeset/ports/542917

Log:
  mail/dbmail: Fix imap connection failure

  - Fix failed to retrieve fd limits

  PR:		247561
  Submitted by:	ahicks@p-o.co.uk

Changes:
  head/mail/dbmail/Makefile
  head/mail/dbmail/files/patch-acinclude.m4
  head/mail/dbmail/files/patch-src_dm__imapsession.c
  head/mail/dbmail/files/patch-src_dm__misc.c