Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 291539

Summary: courier-imap-4.5.0 broke relay-ctrl : imapd: relay-ctrl-allow []: Warning: Could not chdir to FD : Bad file descriptor.
Product: Gentoo Linux Reporter: Régis Couperie <regis>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED INVALID    
Severity: major CC: giovanni.affuso
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Régis Couperie 2009-11-02 09:45:11 UTC
Hello,
After an update to courier-imap-4.5.0 the relay-ctrl function broke:

imapd: relay-ctrl-allow[4945]: Warning: Could not chdir to FD : Bad file descriptor.

>net-mail/relay-ctrl-3.1.1-r2
>net-mail/courier-imap-4.5.0  USE="berkdb fam gdbm nls -debug -gnutls -ipv6 (-selinux)"

Please ask me more info you need, as it's my first contribution to bugs.gentoo.org

Reproducible: Always
Comment 1 Vern Smith 2009-12-23 01:17:33 UTC
I have the same problem and I do not see any explanation as to why this bug is invalid. 
Comment 2 Jeff Benjamin 2010-08-20 22:31:03 UTC
Check that you still have this line:
        /usr/bin/relay-ctrl-chdir \

Just before the auth program in your /usr/lib/courier-imap/gentoo-*.rc files.

This error will occur if that line has been included too early, such as if it is on the PRERUN line in /etc/courier-imap/{imapd,pop3d}.  It must come AFTER couriertcpd is executed.
Comment 3 Pacho Ramos gentoo-dev 2016-08-09 08:58:53 UTC
*** Bug 304599 has been marked as a duplicate of this bug. ***