Eric Walters <[EMAIL PROTECTED]> wrote:
> 
> I have an qmail server setup and running,  but am having difficulty getting
> it to selectively relay.
> 
> I have a server setup so that it is using virtualdomains.  The users of the
> mail system connect to it from the Internet to send and receive email.
> Therefore I need it to allow people to send messages from a local user to a
> remote user.  It seems to be allowing all email to pass through.

You've probably got no /var/qmail/control/rcpthosts file, and are therefore
an open relay.  This is Very Bad (tm).

The file should contain lines for each domain you are willing to accept email
for -- this should be 'localhost', any proper names for the box and its local
domains (contents of /var/qmail/control/locals) and the domains in
virtualdomains.

Then, to allow your virtualdomain users on the net at large to send mail 
through you, install a POP-before-SMTP solution which allows people to relay
from any IP address _if_ they successfully check their mail with POP3
first.  The best POP-before-SMTP package (IMO) is Bruce Guenter's
excellent relay-ctrl.

See http://em.ca/~bruceg/relay-ctrl/ for more info.

As an alternative, your virtualdomain users really should be relaying their
mail through the SMTP server of their ISP -- this is what the ISP's SMTP
servers are for.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                            <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------

Reply via email to