I'm just experimenting with using qmail to accept delivery of email
for multiple domains on the same machine.  I think I've got everything
configured nicely, but...

Consider...

mail.foo.com is the MX for both foo.com and bar.com

I'd like {postmaster,webmaster}@{foo,bar}.com to be delivered to me.

I'd like any email to a user account that exists on the machine to be
delivered to that user, regardless of which host it came in for.

I'd like any email to bar.com that doesn't resolve to a known user to
be delivered to a specific user.

Currently, I've got "bar.com:alias-bar" in control/virtualdomains,
which delivers the email via ~alias/.qmail-bar-whatever.  So, I've got
.qmail-bar-postmaster and .qmail-bar-webmaster pointing at
[EMAIL PROTECTED], which works.

I can't see how to solve the other two problems.  I know that I can
set up ~alias/.qmail-bar-default to solve the third, but I'd like to
solve the second problem as well.

This seems a little lopsided - I've special-cased the bar.com email,
but the foo.com stuff works "out of the box".  Am I doing it right?

Also, I was wondering if anyone had any tips/caveats for the unsuspecting
qmail beginner that I should be aware of?


Reply via email to