Eric Fletcher <[EMAIL PROTECTED]> wrote:

>I get the following error message repeated every minute.
>
>I've checked and rechecked my D. Sill bible and all "seems" to be correct.
>
>I can send and receive email fine. Allow relay for remote hosts works
>properly also.
>
>tcpserver: fatal: unable to figure out port number for /var/qmail/bin/qmail-smtp
>
>Ideas ???

Your /var/qmail/supervise/qmail-smtpd/run file should look like:

#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
exec /usr/local/bin/softlimit -m 2000000 \
    /usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb \
        -u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd 2>&1

It sounds like QMAILDUID and/or NOFILESGID aren't getting set. You
don't say what platform you're on, but it's possible that "id" isn't
in the path when the script is run, or doesn't support the -u and -g
options. Try running:

  id -u qmaild

If that fails, do "man id". See if your system has an "id" that will
work. Solaris, for example, has one in /usr/xpg4/bin/id. Change the
run script to specify the location of the correct "id" command, e.g.:

  QMAILDUID=`/usr/xpg4/bin/id -u qmaild`
  NOFILESGID=`/usr/xpg4/bin/id -g qmaild`

Talk about gratutious incompatibility...

-Dave

Reply via email to