On Tue, Apr 06, 1999 at 10:25:59AM -0500, Sean Brown wrote:
> I apologize in advance for the newbie question.
> 
> I've got qmail up and running, and all's well so far.  However, I'm a
> bit confused about the rcpthosts file.  From the FAQ:
> 
> <snip>
> How do I allow selected clients to send outgoing messages through my
> SMTP server? qmail-smtpd is giving the error ``sorry, that domain isn't
> in my list of allowed rcpthosts (#5.7.1)'' for messages to any domain
> not
> listed in /var/qmail/control/rcpthosts. 
> 
> Answer: This answer assumes that you are running qmail-smtpd under
> tcpserver. 
> 
> Create /etc/tcp.smtp containing 
> 
>      1.2.3.6:allow,RELAYCLIENT=""
>      127.:allow,RELAYCLIENT=""
> 
> to authorize relaying from clients with IP addresses 1.2.3.6 and 127.*. 
> </snip>
> 
> The question and and error message seem to me to be two different
> problems.  The error message seems to say, "I can't send a message to
> that recipient."  The question seems to be , "How can I limit who uses
> my mailserver?"
> 
> Aren't these two separate issues?  And how do you resolve them?  If I
> want (ONLY) my users to be able to send mail wherever they want, how can
> I do that?  Do I have to list every possible domain suffix in my
> rcpthosts file, then limit which users can use my smtp server using the
> method from the FAQ above? That doesn't make much sense to me.  

I've written a couple of things about relaying with qmail that you may want to
read. They're http://www.palomine.net/qmail/relaying.html, which covers a bunch
of relaying issues, and http://www.palomine.net/qmail/selectiverelay.html,
which covers setting up selective relaying.

Chris

Reply via email to