Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 186628 - net-mail/courier-imap - less courier processes by eliminating useless bashes
Summary: net-mail/courier-imap - less courier processes by eliminating useless bashes
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High trivial
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-25 21:58 UTC by Michael Krelin
Modified: 2016-08-09 08:49 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Krelin 2007-07-25 21:58:59 UTC
*.indirect bash scripts launch courier-{imapd,pop3d} processes by forking from bash. The fix would be a 's/eval/eval exec/' on files/*.indirect

Reproducible: Always
Comment 1 Hans Rakers 2007-10-04 08:59:18 UTC
I had to ditch the whole *.indirect setup (its kinda useless anyway) on a medium-busy mailserver because it was causing to many problems. Imapd processes would stay active indefinitely, with bash processes hanging in wait4 state. This caused the server to run into its MAXDAEMONS setting, blocking out users.

After altering gentoo-imapd-ssl.rc and gentoo-imapd.rc the problems disappeared.

For anyone with similar problems, these were my changes to the .rc files:

24c24
< eval ${PRERUN} ${libexecdir}/couriertcpd \
---
> ${libexecdir}/couriertcpd \
32c32
<       ${libexecdir}/courier-imapd.indirect "${MAILDIR}"
---
>       ${bindir}/courier-imapd "${MAILDIR}"
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-08-13 22:45:28 UTC
chutzpah has taken over courier-imap maint.
Comment 3 Kenneth Kalmer 2009-03-16 09:46:54 UTC
(In reply to comment #1)

I can also confirm this helps boost the performance of both POP3 and IMAP delivery of mail and keeps the process counts down. Changes made to production mail server serving ~20,000 mailboxes at a rate of 36GB per day.
Comment 4 Bernard Cafarelli gentoo-dev 2009-10-06 20:23:43 UTC
See comment 1 in bug #168196 for the .indirect scripts usage

If this is a big performance issue, we could add a USE flag to enable/disable LOGINRUN handling?
Comment 5 David Heidelberg (okias) 2014-04-28 10:26:16 UTC
Is any interest in getting this done these days? If yes, can I see some patch for upstream/Gentoo?

Thank you
Comment 6 Pacho Ramos gentoo-dev 2016-02-08 11:54:47 UTC
Please provide that patch if you still has it

Thanks