I have setup postfix and everything works. But I would like one thing. I have a service ticket system, that should accept ALL e-mail coming in on [email protected] and then I have just normal e-mail addresses like [email protected]
All is good so far, except if I want two alias which have the same user parts but diffent domain, like [email protected] and [email protected] I want these two to go to 2 different persons. How do I do that ? And as a bonus question, how do I make sure that all addresses that come in to *@support.example.com end up in the same user?
I might add more domains to the server, so at least the first question is a must.
Use the virtual alias table, which is probably /etc/postfix/virtual
Once you've modified this file, don't forget to run postmap /etc/postfix/virtual.
Edit :$config_directory/virtual:
YMMV.
Your problem should be easy to solve if you go through Postfix documentation about address rewriting and pick parts which are applicable to your problem.
Exact configuration will depend on other options in your postfix configuration, so I really cannot be more explicit.
You might want to have a look at Virtualmin (www.virtualmin.org).
It's a module for webmin that makes hosting multiple email domains dead-easy (however, it may take some time to configure how you like it). Once in place it is very intuitive, and helps when you have to do something unusual, like send an address to multiple recipients, or set up an autoresponder.
We use it to host some 200 email domains - mostly for adding and removing aliases - but there is also a handy usermin module that adds some user-level features like autoresponders and a simple webmail client to pop3 mailboxes.