max <[EMAIL PROTECTED]> writes on 1 November 2000 at 07:06:44 -0500
> im new to qmail and i have a slight problem with it. I cant stop it
> from relaying. I read something in the documentation, and it
> mentioned some variable named $RELAYCLIENT, but i have no clue
> where that variable is. Is my assumption correct, anyway? Is that
> var the only thing i have to change to stop relaying?
No, that var is what you have to change to *allow* relaying. And you
probably need to allow *some* relaying; people using POP to read their
mail generally need an SMTP server to relay through for outbound as
well.
What you need to do to stop relaying is create the control/rcpthosts
file, and list in it the hosts you want to accept mail for. Normally
what you put in rcpthosts is the host names from locals plus the host
names from virtualdomains. That's it; having defined which host
names are handled by this mail server, everything else is rejected.
Now, as I say, you probably *need* to support some relaying. Hosts on
the lan, and any other hosts that should be allowed to use you as a
"smart host" (which means relay through you) need to be identified.
You do that by having tcpserver recognize their IP addresses set
RELAYCLIENT before invoking qmail-smtpd. Then those specific IP
addresses will be allowed to relay through you, but no other senders
will; this, *selective* relaying.
All this is explained in great and exact detail in Life With Qmail and
also in the FAQ, by the way.
--
David Dyer-Bennet / Welcome to the future! / [EMAIL PROTECTED]
SF: http://www.dd-b.net/dd-b/ Minicon: http://www.mnstf.org/minicon/
Photos: http://dd-b.lighthunters.net/