Adding multiple users and domains for mail on Lion Server.
First we are going to start with a very important info:
1. When you INITIALLY ADD USERS so that they can log in to the server to check mail you MUST do it through SYSTEM PREFERENCES. There appears to be a bug in Workgroup Manager, when users are added using that, I was not able to get them to log in via an email client.
2. You need to download Server Admin Tools. Server Admin and Workgroup Manager are key to getting things going.
3. There are a few different ways to accomplish the tasks that I outline below. I HIGHLY recommend at least for this .0 release that you do it the way I did. I ran into a few bugs trying things different ways. Below is what I got to work. You will save yourself hours of frustration wondering why something that should work just is not working correctly.
Setting up Mail Server to accept mail for multiple domains:
1. Do your basic mail setup in Server. Use your default domain when you set that up. Turn it on.
2. Open Server Admin. Select your server -> Mail -> Advanced -> Hosting -> Virtual Hosting. Add your additional domains and enable that.
Ex: Add domains on the following format "moo.com" and "cow.com" would be what you want to add.
Adding Users login to your mail server:
1. Open system preferences -> Users and Groups. Add a user like you normally would.
I created users specifically for the purpose of having them use mail. You can do it differently if you would like. I created users like "mail_ted" "mail_john". These are simply users to log into the server to retrieve mail, they will not be the email addresses.
Time to configure the email addresses you would like to assign to "mail_ted" and "mail_john".
1. Open Workgroup Manager and select accounts. You will now see "mail_ted", "mail_john" and any other accounts you have. You are going to add a full email address under the short name of the account you want that email sent to.
Ex: "mail_ted" has the short names of "foo@moo.com" and "bar@cow.com" added, he will now receive email from both those addresses when he logs into his mail account using "mail_ted".
Hopefully that helps people out a little bit, any more questions please let me know. I don't claim to be some Lion Server genius, I just struggled through the for hours last night trying different things and doing a lot of goggleing.