I posed a question here in the past week or so about how to use xinetd to
enable relaying using xinetd as apposed to the preferred method of using
ucspi-tcp.

I'm hoping that someone will post this to the QMail website in order to save
others the long and laborious search I had to go through in order to make
this work properly.  A gentleman by the name of Dustin Marquess
<[EMAIL PROTECTED]> came up with this hack and so all credit must go
to him.

First, obviously, you need to install xinetd.  I would suggest visiting
http://www.xinetd.org and downloading the most current tar file.  Once
you've downloaded the file you need to compile it.  Run the following
commands

./configure --with-libwrap
make
make check

Make sure the new xinetd file was created, or moved, to /usr/sbin/ on a
Linux system.  Then, you need to make sure you update your hosts.allow file
to include the ips for which you want to relay.

Then you need to change the smtp service entry to the following:

service smtp
{
        flags                   = REUSE NAMEINARGS
        socket_type     = stream
        protocol        = tcp
        instances       = 200
        wait            = no
        user            = qmaild
        server          = /usr/sbin/tcpd
        server_args             = /var/qmail/bin/tcp-env -R /var/qmail/bin/qmail-smtpd
}

The simply perform kill -USR2 pid, and you should be relaying for ips you
wish to relay for, while not relaying for anyone else.

Hope this helps anyone else out there looking to use xinetd vice ucspi-tcp.

Thanks
Anthony

Reply via email to