On Tue, Mar 23, 1999 at 04:32:57PM +0000, Peter Gradwell wrote:
> Hi,
>
> I want to use INETD and a RELAYCLIENT variable. I have been to the
> archives and done my homework, but I can't find a specific example.
>
> (I currently can't / don/t want to change to using tcpserver, as I'm
> keen to make as few changes to the server as possible.)
You'd be doing yourself a big favor by using tcpserver. It'd take you ten
minutes to set up.
> Could some one please confirm that I could put this in my qmail/rc
> file and have it work nicely. I want to allow relaying from
> 212.228.2.223
>
> --- begins ---
>
> exec env - PATH="/var/qmail/bin:$PATH" \
> exec env - RELAYCLIENT="212.228.2.223" \
> /var/qmail/bin/qmail-start ./Mailbox /usr/local/bin/accustamp \
> | /usr/local/bin/setuser qmaill /usr/local/bin/cyclog -s 5000000 -n
> 30 /var/log/qmail &
It's qmail-smtpd that cares about RELAYCLIENT. Setting it for qmail-start won't
do anything. You need to set it via your inetd/tcpd invocation. (I don't know
how, as I use tcpserver.)
Read http://www.palomine.net/qmail/selectiverelay.html. It'll get you set up
with selective relaying and tcpserver in no time flat. (This is very similar to
Peter Samuel's document on the same subject, but I wrote it to go along with my
"qmail newbie's guide to relaying.")
Chris