Hi Jon,

On Wed, Feb 02, 2005 at 10:19:00AM -0600, Jon Marler wrote:
> I received the following wishlist bug today, and really like the idea.
> 
> My thoughts are to change the dependancies to allow ipsvd to be used
> in place of ucspi-tcp and ucspi-tcp-src.
> 
> I'll need to do some "magic" to get the init.d file to work properly,
> but I can just make that a build-time debconf option, or add some
> "intelligence" into the build script.  I'll probably want to add a
> build-dependancy on ipsvd or ucspi-tcp as well to ensure that the
> intelligence works properly.
> 
> Can you think of any other things that I may need to consider?

yes, there's a difference in how ipsvd and tcpserver handle tcp rules
(client based instructions), you cannot use tcpserver's tcp.smtp.cdb
with tcpsvd.

ipsvd instead uses an instructions directory (which optionally can be
compiled into a cdb, but doesn't need to, and the format differs from
tcpserver's cdb).  See http://smarden.org/ipsvd/ipsvd-instruct.5.html
for details, and http://smarden.org/ipsvd/examples.html#instruct for
some examples.

For the qmail-smtp service I would suggest an instructions directory
/etc/qmail/smtp/peers or so, and then starting tcpsvd with the -i
option, e.g.:

 tcpsvd -v -l0 -i/etc/qmail/smtp/peers -c"$MAXSMTPD" -uqmaild \
   0 smtp qmail-smtpd

To allow relaying for 127.0.0.1, do
 echo '+RELAYCLIENT=' >/etc/qmail/smtp/peers/127.0.0.1
 chmod 644 /etc/qmail/smtp/peers/127.0.0.1

See http://smarden.org/ipsvd/ipsvd-cdb.8.html if you want to compile
the instructions directory into a cdb (and then use the -x instead of
the -i option), but I don't think this needs to be the default.

> I don't want to do a complete daemontools packaging, just a
> "drop-in-replacement" of ucspi-tcp.

There's also the runit package in Debian ;-), a kind-of daemontools
replacement.

Regards, Gerrit.
-- 
Open projects at http://smarden.org/pape/.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to