Here's my run script in supervise:

#!/bin/sh
QMAILDUID=`/usr/xpg4/bin/id -u qmaild`
NOFILESGID=`/usr/xpg4/bin/id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
exec /usr/local/bin/softlimit -m 4000000 \
    /usr/local/bin/tcpserver -v -H -R -l 0 -x /etc/tcp.smtp.cdb -c "$MAXSMTPD"
\
        -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd /bin
/checkpassword /bin/true /bin/cmd5checkpw /bin/true 2>&1 &

exec /usr/local/bin/softlimit -m 4000000 \
    /usr/local/bin/tcpserver -v -H -R -l 0 -x /etc/tcp.smtp.cdb -c "$MAXSMTPD"
\
        -u "$QMAILDUID" -g "$NOFILESGID" 0 ghost-smtp /var/qmail/bin/qmail-smtp
d /bin/checkpassword /bin/true /bin/cmd5checkpw /bin/true 2>&1 &

I guess I'm not understanding the question. Are we missing the realization that
ports and interfaces are different?

So it doesn't matter if it's 0 25, or 0 smtp, or 127.0.0.1 25, or 127.0.0.1 smtp, or
localhost 25, or localhost smtp or whatever, so long as you have an interface, and a
port, right?

Rob

Ricardo Cerqueira wrote:

> That's not the issue. According to the original mail, he wrote "tcpserver
> <options> 25 smtp"
>
> > without to write in command this '0' writting only nummber of port
> > and 'smtp'
>
> That 25 is supposed to be the IP address where tcpserver is supposed to
> bind itself to. I _know_ you can write whatever you want in the port
> option, as long as it matches something in /etc/services, or is an integer.
> But "host" is supposed to be a host, or 0 (for "all interfaces"). 25
> shouldn't work.
>
> RC
>
> On Mon, Nov 20, 2000 at 12:27:21PM -0500, Rob Hines Jr. wrote:
> > Just go into /etc/services and make a name alias if you feel more comfortable
> > with that. tcpserver actually looks up 'smtp' in the services file to find out
> > the port number. right now, I am using smtp-ghost in my second tcpserver init,
> > and I set up smtp-ghost in the services file to look at my alternate port. In
> > any case, tcpserver doesn't care if you put smtp, or 25 in that spot.
> >
> > Works just fine for me.
> >
> > Rob
> >
> > Ricardo Cerqueira wrote:
> >
> > > >
> > > > a propos tcpserver with smtp - on Solaris, where zero '0' before
> > > > smtp word has been written the program not works. So we uses it
> > > > without to write in command this '0' writting only nummber of port
> > > > and 'smtp'
> > > >
> > >
> > > Errr... and it works??? Those args are supposed to be "IP address" and
> > > "port". 0 stands for "all interfaces", and "smtp" stands for 25.
> > > If you're writing "25 smtp"... It's NOT supposed to be bound to any
> > > interface (is there any kind of int in solaris responding as 25?)
> > >
> > > RC
> > >
> > > --
> > > +-------------------
> > > | Ricardo Cerqueira
> > > | PGP Key fingerprint  -  B7 05 13 CE 48 0A BF 1E  87 21 83 DB 28 DE 03 42
> > > | Novis  -  Engenharia ISP / Rede T�cnica
> > > | P�. Duque Saldanha, 1, 7� E / 1050-094 Lisboa / Portugal
> > > | Tel: +351 2 1010 0000 - Fax: +351 2 1010 4459
> > >
> > >   ------------------------------------------------------------------------
> > >    Part 1.2Type: application/pgp-signature
> >
> > --
> > Rob Hines Jr.
> > System Administrator
> >
> > Phone:  (317)469-4535
> > Fax:  (317)469-4508
> > Email: [EMAIL PROTECTED]
> > URL: http://www.joboptions.com
> >
> >
>
> --
> +-------------------
> | Ricardo Cerqueira
> | PGP Key fingerprint  -  B7 05 13 CE 48 0A BF 1E  87 21 83 DB 28 DE 03 42
> | Novis  -  Engenharia ISP / Rede T�cnica
> | P�. Duque Saldanha, 1, 7� E / 1050-094 Lisboa / Portugal
> | Tel: +351 2 1010 0000 - Fax: +351 2 1010 4459
>
>   ------------------------------------------------------------------------
>    Part 1.2Type: application/pgp-signature

--
Rob Hines Jr.
System Administrator

Phone:  (317)469-4535
Fax:  (317)469-4508
Email: [EMAIL PROTECTED]
URL: http://www.joboptions.com


Reply via email to