Peter Gradwell writes:
> 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.)
>
> 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 &
No. This does absolutely nothing meaningfull.
Read the manual page for qmail-smtpd, which tells you that qmail-smtpd is
the one that uses the environment variables.
Then program inetd to invoke qmail-smtpd in the fashion outlined in the
manual page.
--
Sam