On Wed, 31 Mar 1999, Kai MacTane wrote:
> Text written by Brent Clements at 12:34 AM 3/31/99 -0600:
> >
> >[root@manageserv /etc]# telnet 0 25
> >Trying 0.0.0.0...
> >Connected to 0.
> >Escape character is '^]'.
>
> You should definitely be doing "telnet 127.0.0.1 25" or "telnet localhost
> 25" instead, but even that may not work...
>
> >I checked and rechecked my inetd.conf and the line that I am using is
> >
> >smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env
> >/var/qmail/bin/qmail-smtpd
> >
> >with everything on one line..
>
> I can't believe no one else has pointed this out yet, but I'm almost
> positive there should be an extra "tcp-env" in there. The line should be:
>
> smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env tcp-env \
> /var/qmail/bin/qmail-smtpd
>
> Please, someone, let me know if I'm wrong on that one.
As far as I know, tcp-env gets the name of the program to run
from argv[0] (like tcpd does), so the way he had it was correct.
-Dustin