Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93803 - Qmail's qmqpd does not start after default install
Summary: Qmail's qmqpd does not start after default install
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Qmail Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-24 06:38 UTC by Brian Downey
Modified: 2005-05-29 14:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Tiny /etc/services patch (services.patch,446 bytes, patch)
2005-05-24 07:34 UTC, Brian Downey
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Downey 2005-05-24 06:38:19 UTC
In the default Qmail ebuild install (1.03-r13), qmail-qmqpd's supervise "run"
script is set up to use the "qmqp" service symbolic name to determine the port
number to bind to (through inclusion of /var/qmail/control/conf-common), but
/etc/services does not contain the entry and therefore qmail-qmqpd fails to start.

The fix is simple, just add:

qmqp            628/tcp                         # Qmail QMQP

to /etc/services.

Reproducible: Always
Steps to Reproduce:
1. emerge qmail
2. cd /service; ln -s /var/qmail/supervise/qmail-qmqpd
3. tail -f /var/log/qmail/qmail-qmqpd
4. ps -ef | grep qmail, supervise shows a zombie process (tcpserver has died
because of the missing service name)
Actual Results:  
tail -f /var/log/qmail/qmail-qmqpd/current:

@4000000042932a9f21308f24 Some error detected, sleeping for 30 seconds for safety
@4000000042932abd221f4c54 Some error detected, sleeping for 30 seconds for safety
@4000000042932adb23155c84 Some error detected, sleeping for 30 seconds for safety


Expected Results:  
ps -ef | grep qmail-qmqpd should show:

root      5484  5466  0 May18 ?        00:00:02 supervise qmail-qmqpd
qmaill    5488  5485  0 May18 ?        00:00:00 /usr/bin/multilog t s2500000
/var/log/qmail/qmail-qmqpd
qmaild   16691  5484  0 09:23 ?        00:00:00 /usr/bin/tcpserver -v -R -x
/etc/tcp.qmqp.cdb -c 40 -u 201 -g 200 0.0.0.0 628 /var/qmail/bin/qmail-qmqpd


as well as this line in /var/qmail/qmail-qmqpd/current
@4000000042932af9241309ec tcpserver: status: 0/40


Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11.7 i686)
=================================================================
System uname: 2.6.11.7 i686 Intel(R) Xeon(TM) CPU 3.00GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May  9 2005, 11:00:40)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r3, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/alias /var/qmail/control /var/vpopmail/domains
/var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://tlfdns2/gentoo-portage"
USE="x86 apm arts avi berkdb bitmap-fonts crypt curl emboss encode foomaticdb
fortran gd gdbm gif gpm gtk2 imap imlib ipv6 jpeg libg++ libwww mad maildir
mikmod motif mp3 mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png
python qmail quicktime readline spell ssl svga tcpd tiff truetype truetype-fonts
type1-fonts xml xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Brian Downey 2005-05-24 07:34:04 UTC
Created attachment 59709 [details, diff]
Tiny /etc/services patch
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-05-29 14:24:35 UTC
go and use a newer qmail release ebuild.