So I have a dedicated server on which I host a few websites for some customers. Now I'm very new to mail and previously all I've provided was web hosting, but now I've gotten requests for "mail hosting" as well. So what I've done is I've setup postfix and everything is working great. I've set it up to work with multiple domains and I've setup a nice webmail client. The only thing I cannot wrap my head around is as follows:
When someone sends a mail to
user@domain1.com it will go to the mailbox belonging to user. But if someone sends a mail to
user@domain2.com it will go to the same place! How can I solve this? Allowing every domains to use any username without collisions?
All suggestions and inputs are very welcome.