[EMAIL PROTECTED] wrote:
>
><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. 
>
>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 message actually means "I can't receive messages for that host
(from you)". In other words, that recipient host isn't local, and
qmail isn't configured to allow the client to relay messages to it.

There are three hosts involved here: the client (sender) host, your
qmail server (relay), and the receiving (recipient) host. Back in the
good ol' days, before rampant spam, open relays were common. They'd
accept anything submitted via SMTP and either deliver it locally or
forward it on to the recipient host. By default, qmail's SMTP daemon
only accepts messages it can deliver locally or to certain
preconfigured domains. The list of hosts it'll accept mail for is
"rcpthosts".

You want to allow a small set of local hosts to use your server as a
relay for arbitrary recipient hosts. This is accomplished by following 
the example in the FAQ.

>The question seems to be , "How can I limit who uses
>my mailserver?"

The question is "How can I limit who uses my mailserver to relay to
non-local domains?" The answer in the FAQ describes how to specify
which systems can connect to your server and use it to relay to
non-rcpthosts domains.

-Dave

Reply via email to