When emerging qmail, after I start it using /etc/init.d/svscan start. When I attempt to send an email it does not go through, the log complains: ----- @40000000420564330462b41c alert: cannot start: unable to switch to queue directory @4000000042056434076d9a8c alert: cannot start: unable to switch to queue directory ----- There is no /var/qmail/queue directory. This has happened with both -r13 and -r16 Reproducible: Always Steps to Reproduce: 1. 2. 3. emerge info: Portage 2.0.51-r15 (default-linux/x86/2004.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.7 i686) ================================================================= System uname: 2.6.7 i686 Pentium III (Katmai) Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Oct 22 2004, 03:26:50)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.4.19-r1, 2.4.21-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig candy ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 apache apm avi berkdb bitmap-fonts cdr crypt cups doc encode f77 fastcgi flash font-server foomaticdb fortran gd gdbm gif gpm imagemagick imap imlib innodb ipv6 java jpeg junit ldap libg++ libwww maildir mcal memlimit mikmod mod_php motif mpeg mysql ncurses nls pam pdflib perl php png pop3 postgres python quicktime readline ruby sasl sdl slang snmp spamassassin spell sse ssl tcpd tetex tiff truetype truetype-fonts type1-fonts xml2 zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Just got an additional error message from during the build: * Setting up the message queue hierarchy ... /usr/lib/portage/bin/ebuild.sh: line 496: /var/qmail/bin/queue-fix: No such file or directory >>> Regenerating /etc/ld.so.cache...
How did you install qmail? queue-fix is a dependancy for qmail, and should have been installed before qmail, so that it could be used to create the correct queue structures.
I used emerge qmail. I just pulled the queue-fix off my workstation to fix this. Don't understand why the ebuild didn't install it...
could you include the output of 'emerge -ptv queue-fix' and 'emerge -etpv qmail'
redrover var # emerge -ptv queue-fix These are the packages that I would merge, in reverse order: Calculating dependencies ...done! [ebuild R ] net-mail/queue-fix-1.4-r2 21 kB redrover var # emerge -etpv qmail These are the packages that I would merge, in reverse order: Calculating dependencies ...done! [ebuild N ] mail-mta/qmail-1.03-r16 -noauthcram -notlsbeforeauth (-selinux) +ssl 0 kB [ebuild N ] net-mail/checkpassword-0.90-r1 -pic -static 15 kB [ebuild N ] sys-apps/daemontools-0.76-r4 +doc (-selinux) -static 36 kB [ebuild N ] app-doc/daemontools-man-20020131 7 kB [ebuild N ] app-arch/tar-1.14 -build -debug +nls -static 1,052 kB [ebuild N ] app-arch/ncompress-4.2.4-r1 -build 39 kB [ebuild N ] app-arch/gzip-1.3.5-r5 -build -debug +nls -pic -static 332 kB [ebuild N ] net-mail/queue-fix-1.4-r2 21 kB [ebuild N ] net-mail/dot-forward-0.71-r1 25 kB [ebuild N ] net-mail/cmd5checkpw-0.22-r1 23 kB [ebuild N ] sys-apps/ucspi-tcp-0.88-r9 +ipv6 (-selinux) +ssl 81 kB [ebuild N ] sys-libs/glibc-2.3.4.20040808-r1 -build -debug -erandom -hardened (-multilib) +nls -nptl -pic -userlocales 15,372 kB [ebuild N ] sys-apps/baselayout-1.9.4-r6 -bootstrap -build -debug -livecd (-selinux) -static (-uclibc) 197 kB [ebuild N ] sys-apps/util-linux-2.12i-r1 +crypt -debug +nls +pam +perl (-selinux) -static 1,933 kB [ebuild N ] app-crypt/hashalot-0.3 78 kB [ebuild N ] sys-apps/grep-2.5.1-r6 -build -debug +nls -pcre -static (-uclibc) 667 kB [ebuild N ] sys-fs/e2fsprogs-1.35-r1 -debug -diet +nls -static 3,078 kB [ebuild N ] sys-kernel/linux-headers-2.4.21-r1 -build 27,864 kB [ebuild N ] sys-apps/pam-login-3.14 -livecd +nls (-selinux) 137 kB [ebuild N ] sys-apps/gawk-3.1.3-r2 -build +nls (-uclibc) 2,029 kB [ebuild N ] sys-devel/gcc-3.3.5-r1 -bootstrap -boundschecking -build -debug +fortran -gcj -gtk -hardened (-ip28) (-multilib) -multislot (-n32) (-n64) +nls -nocxx -objc -static (-uclibc) 23,578 kB [ebuild N ] sys-devel/binutils-2.15.92.0.2-r1 -bootstrap -build -debug -multitarget +nls (-uclibc) 10,824 kB [ebuild N ] sys-devel/gcc-config-1.3.8-r4 0 kB [ebuild N ] sys-apps/portage-2.0.51-r15 -build -debug (-selinux) 271 kB [ebuild N ] dev-lang/python-2.3.4 -X +berkdb -bootstrap -build -debug +doc +gdbm +ipv6 +ncurses +readline +ssl -tcltk -ucs2 7,020 kB [ebuild N ] dev-python/python-docs-2.3.4 1,220 kB [ebuild N ] dev-libs/openssl-0.9.7d-r2 -debug -emacs (-uclibc) 4,866 kB [ebuild N ] dev-lang/perl-5.8.5-r3 +berkdb -debug +doc +gdbm -ithreads -perlsuid (-uclibc) 11,651 kB [ebuild N ] sys-devel/libperl-5.8.5 +berkdb -debug +gdbm -ithreads (-uclibc) 0 kB [ebuild N ] sys-libs/gdbm-1.8.3-r1 +berkdb -debug 223 kB [ebuild N ] sys-libs/db-1.85-r1 264 kB [ebuild N ] sys-apps/man-1.5p -debug +nls 228 kB [ebuild N ] sys-apps/cronbase-0.3.1 0 kB [ebuild N ] sys-apps/groff-1.19.1-r2 -X -debug 2,567 kB [ebuild N ] sys-libs/db-4.1.25_p1-r4 -bootstrap +doc +java -nocxx -tcltk 3,008 kB [ebuild N F ] dev-java/sun-jdk-1.4.2.07 +doc -gnome -jce -kde -mozilla 35,553 kB [ebuild N F ] dev-java/java-sdk-docs-1.4.2 33,591 kB [ebuild N ] sys-libs/lib-compat-1.4 +sdl 3,090 kB [ebuild N ] media-libs/libsdl-1.2.7-r3 -X -aalib -alsa -arts -dga -directfb -esd -fbcon -ggi -libcaca -nas -noaudio -nojoystick -novideo -opengl -oss -svga -xinerama -xv 2,413 kB [ebuild N ] dev-lang/nasm-0.98.38-r1 -build +doc 535 kB [ebuild N ] app-text/ghostscript-7.07.1-r7 -X -cjk +cups -debug -emacs 5,273 kB [ebuild N ] media-libs/fontconfig-2.2.3 732 kB [ebuild N ] media-libs/freetype-2.1.5-r1 -bindist -cjk -debug +doc +zlib 830 kB [ebuild N ] dev-libs/expat-1.95.8 -test 310 kB [ebuild N ] net-print/cups-1.1.23-r1 -debug +nls +pam -samba -slp +ssl 8,501 kB [ebuild N ] sys-libs/pam-0.77-r6 +berkdb -debug -pwdb (-selinux) 544 kB [ebuild N ] sys-devel/automake-1.9.4 (-uclibc) 734 kB [ebuild N ] sys-devel/automake-wrapper-1 0 kB [ebuild N ] sys-devel/automake-1.4_p6 (-uclibc) 366 kB [ebuild N ] sys-devel/automake-1.7.9-r1 (-uclibc) 564 kB [ebuild N ] sys-devel/automake-1.6.3 (-uclibc) 465 kB [ebuild N ] sys-devel/automake-1.8.5-r3 (-uclibc) 647 kB [ebuild N ] sys-devel/automake-1.5 (-uclibc) 514 kB [ebuild N ] sys-libs/cracklib-2.7-r10 -debug +pam (-uclibc) 20 kB [ebuild N ] sys-apps/miscfiles-1.3-r1 (-uclibc) 2,153 kB [ebuild N ] dev-libs/glib-1.2.10-r5 -debug 411 kB [ebuild N ] media-libs/libpng-1.2.8 -debug 375 kB [ebuild N ] media-libs/tiff-3.7.1-r1 1,224 kB [ebuild N ] media-libs/jpeg-6b-r4 -debug 598 kB [ebuild N ] sys-devel/autoconf-2.59-r6 903 kB [ebuild N ] sys-devel/autoconf-wrapper-2 0 kB [ebuild N ] sys-devel/autoconf-2.13 433 kB [ebuild N ] dev-util/pkgconfig-0.15.0 596 kB [ebuild N ] media-fonts/gnu-gs-fonts-std-8.11 3,664 kB [ebuild N ] sys-apps/texinfo-4.7-r1 -build -debug +nls -static 1,385 kB [ebuild N ] media-libs/audiofile-0.2.6-r1 365 kB [ebuild N ] app-arch/unzip-5.50-r2 1,043 kB [ebuild N ] dev-java/java-config-1.2.11 15 kB [ebuild N ] sys-apps/diffutils-2.8.7 -debug +nls -static 1,033 kB [ebuild N ] sys-devel/bc-1.06-r5 -debug +readline -static 272 kB [ebuild N ] sys-devel/flex-2.5.4a-r5 -build -debug -static 372 kB [ebuild N ] sys-libs/readline-4.3-r5 947 kB [ebuild N ] app-shells/bash-2.05b-r9 -build -debug +nls (-uclibc) 1,923 kB [ebuild N ] sys-apps/debianutils-1.16.7-r4 -build -debug -static 25 kB [ebuild N ] app-arch/bzip2-1.0.2-r4 -build -debug -static 649 kB [ebuild N ] dev-python/python-fchksum-1.7.1 26 kB [ebuild N ] sys-libs/zlib-1.2.2 -build -debug 363 kB [ebuild N ] sys-apps/sed-4.0.9 -bootstrap -build -debug +nls -static 751 kB [ebuild N ] sys-devel/bison-1.875d -debug +nls -static 862 kB [ebuild N ] sys-devel/m4-1.4.1 +nls 335 kB [ebuild N ] sys-devel/gettext-0.12.1-r2 -emacs +nls 5,592 kB [ebuild N ] sys-libs/ncurses-5.4-r5 -bootstrap -build -debug +doc +gpm -nocxx (-uclibc) -unicode 2,103 kB [ebuild N ] sys-devel/gnuconfig-20040214 (-uclibc) 30 kB [ebuild N ] sys-libs/gpm-1.20.1 (-selinux) 558 kB [ebuild N ] sys-devel/patch-2.5.9 -build -debug -static 197 kB Total size of downloads: 242,625 k
that says queue-fix was already installed on your machine. How did you copy it over from your workstation? Did you ever mess around with the content of /var/db/pkg? (this includes copying it over from another machine).
I used scp to get it from my workstation to server. And no, I have never played with anything in /var/db/pkg or copied it from another machine. I just realized, i thought queue-fix came with qmail. And because I wanted to do a fresh qmail and mail system install i did rm -dvfr /var/qmail . I assume this would be why queue-fix wasn't showing up in the /var/qmail/bin dir after i reinstalled qmail?
rm -rf /var/qmail was a very bad move. qmail is not the only thing that installs files in there. run: ( cd /var/db/pkg ; find -name CONTENTS -exec grep /var/qmail \{} -l \; ) to get a list of packages that put files in /var/qmail. I'm marking this as invalid, as you've found out what you did wrong. To clean out qmail in future, emerge unmerge qmail, and then clean out the control dir manually.