Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 304599 - net-mail/courier-imap-4.5.0 with net-mail/relay-ctrl - imapd: relay-ctrl-allow []: Warning: Could not chdir to FD : Bad file descriptor.
Summary: net-mail/courier-imap-4.5.0 with net-mail/relay-ctrl - imapd: relay-ctrl-allo...
Status: RESOLVED DUPLICATE of bug 291539
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 319751 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-11 17:10 UTC by Giovanni Affuso
Modified: 2016-08-09 08:58 UTC (History)
3 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 Giovanni Affuso 2010-02-11 17:10:47 UTC
After di update of courier-imap to version 4.5 relay-ctrl not work correctly.
In the syslog I have the error:
 
imapd: relay-ctrl-allow []: Warning: Could not chdir to FD : Bad file descriptor.

pop3d: relay-ctrl-allow []: Warning: Could not chdir to FD : Bad file descriptor.
Comment 1 Thomas Sachau gentoo-dev 2010-03-12 13:46:36 UTC
Please attach your emerge --info and emerge -pv courier-imap
Also, what exactly does not work anymore except that you see those warnings in the log?
Comment 2 Giovanni Affuso 2010-03-12 14:10:12 UTC
Portage 2.1.7.17 (default/linux/x86/10.0/server, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-i686-Intel-R-_Xeon-TM-_CPU_3.00GHz-with-gentoo-1.12.13
Timestamp of tree: Wed, 10 Mar 2010 09:00:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.4.4-r9, 2.5.4-r2, 2.6.4-r1
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://de-mirror.org/distro/gentoo ftp://ftp.unina.it/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl apache2 authmysql avgd berkdb bzip2 cairo cli cracklib crypt ctype cups curl cxx dri ezmlm ezmlm-idx ftp gd gdbm gocr gpm iconv imap ldap maildir modules mudflap mysql ncurses nls nptl nptlonly ocrad openmp pam pcre perl php pppd python readline reflection relay-ctrl session snmp spamassassin spl ssl sysfs tcpd tesseract tokenizer truetype unicode userlocales x86 xml xmlrpc xorg zlib zlibi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


emerge -pv courier-imap           

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-mail/courier-imap-4.5.0  USE="berkdb gdbm nls -debug -fam -gnutls -ipv6 (-selinux)" 0 kB

Error in the log:

Mar 12 15:08:28 nerone pop3d: Connection, ip=[89.96.152.130]
Mar 12 15:08:29 nerone pop3d: relay-ctrl-allow[28989]: Warning: Could not chdir to FD : Bad file descriptor



Comment 3 Thomas Sachau gentoo-dev 2010-03-12 16:14:38 UTC
I am still missing the exact features, that fail. So please tell us, what exactly does not work anymore with courier-imap-4.5.0
Comment 4 Giovanni Affuso 2010-03-12 16:47:12 UTC
(In reply to comment #3)
> I am still missing the exact features, that fail. So please tell us, what
> exactly does not work anymore with courier-imap-4.5.0

Relay-Ctrl didn't work with courier-imap-4.5.0 but It work correctly with version 4.0.3.
Regards
Giovanni
Comment 5 Giovanni Affuso 2010-04-01 08:54:51 UTC
Dear everybody,
Have you news about the bug?
Regards


(In reply to comment #4)
> (In reply to comment #3)
> > I am still missing the exact features, that fail. So please tell us, what
> > exactly does not work anymore with courier-imap-4.5.0
> Relay-Ctrl didn't work with courier-imap-4.5.0 but It work correctly with
> version 4.0.3.
> Regards
> Giovanni

Comment 6 Jeff Benjamin 2010-08-20 22:35:10 UTC
Dupe of bug 291539.  This isn't a courier-imap or relay-ctrl problem.  Gentoo's relay-ctrl ebuild does not add relay-ctrl programs into courier-imap configuration files.  It is a matter of manual configuration so there is nothing to fix in any ebuild.

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 7 Jeroen Roovers (RETIRED) gentoo-dev 2013-04-20 15:52:57 UTC
*** Bug 319751 has been marked as a duplicate of this bug. ***
Comment 8 Pacho Ramos gentoo-dev 2016-08-09 08:58:53 UTC

*** This bug has been marked as a duplicate of bug 291539 ***