Discussion:
Unknown users not rejected on Alias Domains (Virtual Domains)
(too old to reply)
Peter Bittner
2014-06-03 21:00:23 UTC
Permalink
Hi,

I'm trying to find out which is the correct way to configure alias domains on postfix.

For example, I have 3 different domains (example.com, example.info, example.net), and when I send an e-mail to a user on any of the three
domains it's always sent to "***@example.com".
In other words, I never need to configure mailboxes or users on any of the other two domains ("alias domains", as I call them). It's sufficient to have the user configured on the main domain.

I've seen the following resources on that topic:
- https://workaround.org/ispmail/wheezy/virtual-domains
- http://www.postfix.org/VIRTUAL_README.html#forwarding

Unfortunately, those resources only describe the following types of forwarding:
- ***@example.info --> ***@somewhere-else
- @example.info --> ***@somewhere-else (catch-all feature)

What I would need is a correctly working solution of:
- @example.info --> @somewhere-else, or
- <any>@example.info --> <any>@somewhere-else

Doing some tests with some test configuration sending/forwarding/retrieving seems to work (e-mails sent to one of the alias domains arrive at the main domain), but if there is a non-existing mailbox on the main domain and the e-mail is sent to the corresponding user at one of the alias domains no e-mail bounces back from the main domain saying that the mail could not be delivered.

How can I make postfix bounce e-mails back when there is no user for it on the main domain? Is there a specific, standard way of doing alias domains on postfix? (It should be some kind of "standard use-case" after all, shouldn't it? Google Mail let you define alias domains on Google Apps, and that simply works.)

Thanks in advance for any hints,
Peter
Peter Bittner
2014-06-03 21:28:04 UTC
Permalink
Sorry for cross-posting. The original post is at http://article.gmane.org/gmane.mail.postfix.user/244107

(It's a bit confusing that there are two different mailing lists, the usual and Google Groups. I thought that my first post was swallowed by a black hole...)
Loading...