The configuration file "/usr/lib/courier-imap/gentoo-imapd.rc" should either start with "#! /bin/bash" or be switched to Bourne shell syntax.
could you please point out which bashism we've used?
At least one Bashism is the "source" keyword, which is equivalent of the Bourne shell "." (dot). This is what I get if I try to start courier-imapd and /bin/sh is a link to /bin/ash: -------------------------------------------------------------------------- * Starting courier-imapd... /usr/lib/courier-imap/gentoo-imapd.rc: 12: source: not found /usr/lib/courier-imap/gentoo-imapd.rc: 13: source: not found unlimited Invalid port: /usr/sbin/imaplogin ll_daemon_start: Resource temporarily unavailable [ !! ]
Now that I look closer, I see that every file in /usr/lib/courier-imap is executed by /bin/sh and contains the "source" keyword.
fixed in cvs for 3.0.5