On Thu, Feb 18, 1999 at 10:19:05AM -0800, Colin Coller wrote:
> I'm providing mail hosting for several domains (mydomain.com, foodomain.com,
> and bardomain.com) with the following configuration:
>
> locals:
> mail.mydomain.com
> mydomain.com
>
> me:
> mail.mydomain.com
>
> rcpthosts:
> mail.mydomain.com
> mydomain.com
> foodomain.com
> bardomain.com
>
> virtualdomains:
> foodomain.com:foouser
> bardomain.com:baruser
>
> This is great for incoming mail. When foouser or baruser try to send mail
> from foodomain.com or bardomain.com, however, qmail refuses to relay it. Is
> there a simple way to make qmail relay mail from domains in virtualdomains?
That depends on what you mean by "mail from domains in virtualdomains." If you
mean that you want selected hosts to be able to relay (which is really how
things ought to be set up) then see
ftp://koobera.math.uic.edu/www/qmail/faq/servers.html#authorized-relay.
I suspect that that's not what you mean, and that you'd like people to be able
to relay based on a message's envelope sender domain being in virtualdomains.
There's no built-in way for qmail to do this, and most people would tell you
that it's not a good idea--since anyone can inject mail via SMTP with any
envelope sender he wants, anyone could use your host as a relay.
You may find patches at http://www.qmail.org to allow relaying based on
envelope sender. A better idea might be to implement SMTP-after-POP, where a
host would be able to relay for a short period after authenticating by POP. The
best idea is for people to use the SMTP servers provided by their ISPs to relay
their mail. (Some ISPs are getting stupid these days, though, and requiring for
relaying that the domain of the envelope sender to be one of their domains.
This is causing me headaches with some of my users, who have various ISPs but
who want to use the addresses we provide.)
Chris