I'm installing qmail on my 2.6.6-r2 U60. ucspi-tcp, daemontools and queuefix are already installed. emerge qmail seems to work correctly (Output appended), as does invoking the ebuild, but I get a series of errors when I start qmail, output from which is also appended below. Running depscan.sh as suggested found no problems and makes no difference. =============last part of emerge output======================= >>> /var/qmail/supervise/qmail-qmqpd/ >>> /var/qmail/supervise/qmail-qmqpd/log/ >>> /var/qmail/supervise/qmail-qmqpd/log/run >>> /var/qmail/supervise/qmail-qmqpd/run >>> /var/qmail/supervise/qmail-qmtpd/ >>> /var/qmail/supervise/qmail-qmtpd/log/ >>> /var/qmail/supervise/qmail-qmtpd/log/run >>> /var/qmail/supervise/qmail-qmtpd/run >>> /var/qmail/supervise/qmail-smtpd/ >>> /var/qmail/supervise/qmail-smtpd/log/ >>> /var/qmail/supervise/qmail-smtpd/log/run >>> /var/qmail/supervise/qmail-smtpd/run >>> /var/qmail/supervise/qmail-send/ >>> /var/qmail/supervise/qmail-send/log/ >>> /var/qmail/supervise/qmail-send/log/run >>> /var/qmail/supervise/qmail-send/run --- /usr/ --- /usr/lib/ >>> /usr/lib/sendmail -> /var/qmail/bin/sendmail --- /usr/sbin/ >>> /usr/sbin/sendmail -> /var/qmail/bin/sendmail --- /usr/share/ --- /usr/share/doc/ --- /usr/share/doc/qmail-1.03-r13/ >>> /usr/share/doc/qmail-1.03-r13/VERSION.gz >>> /usr/share/doc/qmail-1.03-r13/FAQ.gz >>> /usr/share/doc/qmail-1.03-r13/README.starttls.gz >>> /usr/share/doc/qmail-1.03-r13/README.qregex.gz >>> /usr/share/doc/qmail-1.03-r13/qmail-remote-auth-patch-doc.txt.gz >>> /usr/share/doc/qmail-1.03-r13/SYSDEPS.gz >>> /usr/share/doc/qmail-1.03-r13/README.gz >>> /usr/share/doc/qmail-1.03-r13/REMOVE.sendmail.gz >>> /usr/share/doc/qmail-1.03-r13/INSTALL.maildir.gz >>> /usr/share/doc/qmail-1.03-r13/UPGRADE.gz >>> /usr/share/doc/qmail-1.03-r13/THANKS.gz >>> /usr/share/doc/qmail-1.03-r13/INSTALL.ctl.gz >>> /usr/share/doc/qmail-1.03-r13/INSTALL.ids.gz >>> /usr/share/doc/qmail-1.03-r13/README.remote-auth.gz >>> /usr/share/doc/qmail-1.03-r13/PIC.relaygood.gz >>> /usr/share/doc/qmail-1.03-r13/TODO.gz >>> /usr/share/doc/qmail-1.03-r13/THOUGHTS.gz >>> /usr/share/doc/qmail-1.03-r13/INSTALL.gz >>> /usr/share/doc/qmail-1.03-r13/TARGETS.gz >>> /usr/share/doc/qmail-1.03-r13/INSTALL.vsm.gz >>> /usr/share/doc/qmail-1.03-r13/PIC.relaybad.gz >>> /usr/share/doc/qmail-1.03-r13/TEST.deliver.gz >>> /usr/share/doc/qmail-1.03-r13/PIC.nullclient.gz >>> /usr/share/doc/qmail-1.03-r13/PIC.local2ext.gz >>> /usr/share/doc/qmail-1.03-r13/REMOVE.binmail.gz >>> /usr/share/doc/qmail-1.03-r13/PIC.local2local.gz >>> /usr/share/doc/qmail-1.03-r13/SECURITY.gz >>> /usr/share/doc/qmail-1.03-r13/PIC.local2virt.gz >>> /usr/share/doc/qmail-1.03-r13/PIC.rem2local.gz >>> /usr/share/doc/qmail-1.03-r13/PIC.local2alias.gz >>> /usr/share/doc/qmail-1.03-r13/INSTALL.mbox.gz >>> /usr/share/doc/qmail-1.03-r13/PIC.local2rem.gz >>> /usr/share/doc/qmail-1.03-r13/SENDMAIL.gz >>> /usr/share/doc/qmail-1.03-r13/README.auth.gz >>> /usr/share/doc/qmail-1.03-r13/TEST.receive.gz >>> /usr/share/doc/qmail-1.03-r13/INSTALL.alias.gz --- /usr/share/man/ --- /usr/share/man/man1/ >>> /usr/share/man/man1/forward.1.gz >>> /usr/share/man/man1/maildirmake.1.gz >>> /usr/share/man/man1/condredirect.1.gz >>> /usr/share/man/man1/preline.1.gz >>> /usr/share/man/man1/tcp-env.1.gz >>> /usr/share/man/man1/maildir2mbox.1.gz >>> /usr/share/man/man1/bouncesaying.1.gz >>> /usr/share/man/man1/qreceipt.1.gz >>> /usr/share/man/man1/mailsubj.1.gz >>> /usr/share/man/man1/qbiff.1.gz >>> /usr/share/man/man1/except.1.gz >>> /usr/share/man/man1/maildirwatch.1.gz --- /usr/share/man/man3/ >>> /usr/share/man/man3/now.3.gz >>> /usr/share/man/man3/getln2.3.gz >>> /usr/share/man/man3/fd_move.3.gz >>> /usr/share/man/man3/alloc.3.gz >>> /usr/share/man/man3/subgetopt.3.gz >>> /usr/share/man/man3/fifo_make.3.gz >>> /usr/share/man/man3/getln.3.gz >>> /usr/share/man/man3/coe.3.gz >>> /usr/share/man/man3/sgetopt.3.gz >>> /usr/share/man/man3/datetime.3.gz >>> /usr/share/man/man3/stralloc.3.gz >>> /usr/share/man/man3/case.3.gz >>> /usr/share/man/man3/env.3.gz >>> /usr/share/man/man3/error.3.gz >>> /usr/share/man/man3/cdb.3.gz >>> /usr/share/man/man3/error_str.3.gz >>> /usr/share/man/man3/wait.3.gz >>> /usr/share/man/man3/error_temp.3.gz >>> /usr/share/man/man3/direntry.3.gz >>> /usr/share/man/man3/fd_copy.3.gz --- /usr/share/man/man5/ >>> /usr/share/man/man5/tcp-environ.5.gz >>> /usr/share/man/man5/addresses.5.gz >>> /usr/share/man/man5/mbox.5.gz >>> /usr/share/man/man5/maildir.5.gz >>> /usr/share/man/man5/qmail-control.5.gz >>> /usr/share/man/man5/envelopes.5.gz >>> /usr/share/man/man5/dot-qmail.5.gz >>> /usr/share/man/man5/qmail-users.5.gz >>> /usr/share/man/man5/qmail-header.5.gz >>> /usr/share/man/man5/qmail-log.5.gz --- /usr/share/man/man7/ >>> /usr/share/man/man7/forgeries.7.gz >>> /usr/share/man/man7/qmail.7.gz >>> /usr/share/man/man7/qmail-limits.7.gz --- /usr/share/man/man8/ >>> /usr/share/man/man8/qmail-newmrh.8.gz >>> /usr/share/man/man8/qmail-queue.8.gz >>> /usr/share/man/man8/qmail-rspawn.8.gz >>> /usr/share/man/man8/splogger.8.gz >>> /usr/share/man/man8/qmail-popup.8.gz >>> /usr/share/man/man8/qmail-tcpto.8.gz >>> /usr/share/man/man8/qmail-newu.8.gz >>> /usr/share/man/man8/qmail-showctl.8.gz >>> /usr/share/man/man8/qmail-pw2u.8.gz >>> /usr/share/man/man8/qmail-local.8.gz >>> /usr/share/man/man8/qmail-smtpd.8.gz >>> /usr/share/man/man8/qmail-qstat.8.gz >>> /usr/share/man/man8/qmail-inject.8.gz >>> /usr/share/man/man8/qmail-pop3d.8.gz >>> /usr/share/man/man8/qmail-tcpok.8.gz >>> /usr/share/man/man8/qmail-start.8.gz >>> /usr/share/man/man8/qmail-qread.8.gz >>> /usr/share/man/man8/qmail-clean.8.gz >>> /usr/share/man/man8/qmail-remote.8.gz >>> /usr/share/man/man8/qmail-send.8.gz >>> /usr/share/man/man8/qmail-newbrt.8.gz >>> /usr/share/man/man8/qmail-command.8.gz >>> /usr/share/man/man8/qmail-qmtpd.8.gz >>> /usr/share/man/man8/qmail-lspawn.8.gz >>> /usr/share/man/man8/qmail-getpw.8.gz >>> /usr/share/man/man8/qmail-qmqpc.8.gz >>> /usr/share/man/man8/qmail-qmqpd.8.gz * Setting up the message queue hierarchy ... >>> Regenerating /etc/ld.so.cache... * Caching service dependencies... * To setup qmail to run out-of-the-box on your system, run: * ebuild /var/db/pkg/net-mail/qmail-1.03-r13/qmail-1.03-r13.ebuild config * To start qmail at boot you have to add svscan to your startup * and create the following links: * ln -s /var/qmail/supervise/qmail-send /service/qmail-send * ln -s /var/qmail/supervise/qmail-smtpd /service/qmail-smtpd * To start the pop3 server as well, create the following link: * ln -s /var/qmail/supervise/qmail-pop3d /service/qmail-pop3d * Additionally, the QMTP and QMQP protocols are supported, * and can be started as: * ln -s /var/qmail/supervise/qmail-qmtpd /service/qmail-qmtpd * ln -s /var/qmail/supervise/qmail-qmqpd /service/qmail-qmqpd * Additionally, if you wish to run qmail right now, you should * run this before anything else: * source /etc/profile >>> Regenerating /etc/ld.so.cache... * Caching service dependencies... >>> net-mail/qmail-1.03-r13 merged. >>> Recording net-mail/qmail in "world" favorites file... >>> clean: No packages selected for removal. >>> Auto-cleaning packages ... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date ==================End Emerge===================== =========qmail-control start output============== plugh /var/qmail/bin # qmail-control start * Re-caching dependency info (mtimes differ)... * Could not get dependency info for "qmail-control"! * Please run: * # /sbin/depscan.sh * to try and fix this. * Re-caching dependency info (mtimes differ)... * Could not get dependency info for "qmail-control"! * Please run: * # /sbin/depscan.sh * to try and fix this. * Re-caching dependency info (mtimes differ)... * Could not get dependency info for "qmail-control"! * Please run: * # /sbin/depscan.sh * to try and fix this. * Re-caching dependency info (mtimes differ)... * Could not get dependency info for "qmail-control"! * Please run: * # /sbin/depscan.sh * to try and fix this. * Starting qmail mta ...... svc: warning: unable to control /service/qmail-smtpd: file does not exist svc: warning: unable to control /service/qmail-send: file does not exist svc: warning: unable to control /service/qmail-qmqpd: supervise not running svc: warning: unable to control /service/qmail-qmtpd: supervise not running [ ok ] * Starting qmail mta logging ...... svc: warning: unable to control /service/qmail-smtpd/log: file does not exist svc: warning: unable to control /service/qmail-send/log: file does not exist svc: warning: unable to chdir to /service/qmail-qmqpd/log: file does not exist svc: warning: unable to control /service/qmail-qmtpd/log: supervise not running [ ok ] =======================End qmail-control output============================ Reproducible: Always Steps to Reproduce: 1.emerge qmail 2.ebuild /var/db/pkg/net-mail/qmail-1.03-r13/qmail-1.03-r13.ebuild config 3.qmail-control start Actual Results: qmail fails to start Expected Results: started Gentoo Base System version 1.4.9 Portage 2.0.50-r6 (default-sparc64-1.4, gcc-3.3.3, glibc-2.3.2-r9, 2.6.6-rc2) ================================================================= System uname: 2.6.6-rc2 sparc64 sun4u ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="sparc" AUTOCLEAN="yes" CFLAGS="-mcpu=ultrasparc -O3 -pipe" CHOST="sparc-unknown-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=ultrasparc -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache fixpackages sandbox" GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X arts avi berkdb crypt cups encode esd fbcon foomaticdb gdbm gif gnome gtk gtk2 guile imap imlib java jpeg kde libwww mad maildir mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python readline sdl slang sparc spell ssl tcltk tcpd truetype xml2 xmms xv zlib"
the output of the ebuild states what you need to do to start qmail: * To setup qmail to run out-of-the-box on your system, run: * ebuild /var/db/pkg/net-mail/qmail-1.03-r13/qmail-1.03-r13.ebuild config * To start qmail at boot you have to add svscan to your startup * and create the following links: * ln -s /var/qmail/supervise/qmail-send /service/qmail-send * ln -s /var/qmail/supervise/qmail-smtpd /service/qmail-smtpd if you do not want to reboot, just run: /etc/init.d/svscan start after the steps above. the qmail ebuild should be changed so that it says how to manually start svscan and also how to add svscan to run at boot: rc-update add svscan default other than that, there is nothing wrong with the ebuild.
** Thanks for your help Rajif, I'll try to reply step by step ** ========================================================== the output of the ebuild states what you need to do to start qmail: * To setup qmail to run out-of-the-box on your system, run: * ebuild /var/db/pkg/net-mail/qmail-1.03-r13/qmail-1.03-r13.ebuild config ** Done. * To start qmail at boot you have to add svscan to your startup * and create the following links: * ln -s /var/qmail/supervise/qmail-send /service/qmail-send * ln -s /var/qmail/supervise/qmail-smtpd /service/qmail-smtpd ** Done. if you do not want to reboot, just run: /etc/init.d/svscan start after the steps above. the qmail ebuild should be changed so that it says how to manually start svscan and also how to add svscan to run at boot: rc-update add svscan default ** Done other than that, there is nothing wrong with the ebuild. ** Well none of the services stay running for more than 5 seconds or so. Also as documented in this bug report "qmail-control start" barfs with a sequence of errors. I'll attach ls -lsR output for /var/log/qmail, /var/qmail and /sevice as well as a tar of /var/log/qmail and /service afterwards. ** Here's ps -ef output. I don't see any pop3 process running. ** Start ps -ef plugh /service # ps -ef|grep qmail root 5606 5601 0 May02 ? 00:00:00 supervise qmail-pop3d root 5612 5606 0 May02 ? 00:00:00 /usr/bin/tcpserver -p -v -x /etc/tcp.pop3.cdb -c 40 0.0.0.0 pop3 /var/qmail/bin/qmail-popup plugh.no-ip.org /bin/checkpassword /var/qmail/bin/qmail-pop3d .maildir qmaill 5613 5607 0 May02 ? 00:00:00 /usr/bin/multilog t s2500000 /var/log/qmail/qmail-pop3d root 5614 5601 0 May02 ? 00:00:15 supervise qmail-qmqpd root 5619 5601 0 May02 ? 00:00:17 supervise qmail-qmtpd root 5624 5601 0 May02 ? 00:00:00 supervise qmail-smtpd qmaill 5627 5626 0 May02 ? 00:00:00 /usr/bin/multilog t s2500000 /var/log/qmail/qmail-smtpd root 5628 5601 0 May02 ? 00:00:00 supervise qmail-send qmaild 5629 5624 0 May02 ? 00:00:00 /usr/bin/tcpserver -p -v -R -x /etc/tcp.smtp.cdb -c 40 -u 201 -g 200 0.0.0.0 smtp /var/qmail/bin/qmail-smtpd qmaill 5631 5630 0 May02 ? 00:00:00 /usr/bin/multilog t s2500000 /var/log/qmail/qmail-send qmails 5632 5628 0 May02 ? 00:00:00 qmail-send root 5670 5632 0 May02 ? 00:00:00 qmail-lspawn ./.maildir/ qmailr 5672 5632 0 May02 ? 00:00:00 qmail-rspawn qmailq 5673 5632 0 May02 ? 00:00:00 qmail-clean root 23830 22628 0 00:18 pts/6 00:00:00 grep qmail ** End ps -ef plugh /service # la total 4 1 drwxr-xr-x 4 root root 232 Apr 27 18:47 . 1 drwxr-xr-x 20 root root 584 May 3 21:38 .. 0 -rw-r--r-- 1 root root 0 Apr 27 18:47 .keep 1 lrwxrwxrwx 1 root root 32 Apr 24 21:30 qmail-pop3d -> /var/qmail/supervise/qmail-pop3d 1 drwxr-xr-x 4 root root 104 Apr 29 01:48 qmail-qmqpd 1 drwxr-xr-x 4 root root 104 Apr 26 21:55 qmail-qmtpd 1 lrwxrwxrwx 1 root root 31 Apr 24 21:29 qmail-send -> /var/qmail/supervise/qmail-send 1 lrwxrwxrwx 1 root root 32 Apr 24 21:30 qmail-smtpd -> /var/qmail/supervise/qmail-smtpd
Created attachment 30919 [details] Contents of /service
Created attachment 30920 [details] Contents of /var/log/qmail
Created attachment 30921 [details] Contains ls -lsR of /var/log/qmail, /var/qmail & /service Contains 3 files var-log-qmail.ls = ls -lsR /var/log/qmail var-qmail.ls = ls -lsR /var/qmail service.ls = ls -lsR /service
Is this still an issue?
Forgot NEEDINFO
No response in a month.