1 2 Previous Next 15 Replies Latest reply: Apr 12, 2013 2:54 PM by scottl31
scottl31 Level 1 Level 1 (5 points)

Hi,

 

On Snow Leopard Server, I am hosting multiple domains.

 

My problem is that if I send an email to scott@domain1.com, the same email goes to the same user on other domains like at scott@domain2.com and scott@domain3.com.

 

Anybody have any idea what I have done wrong?

 

Thanks,

Scott


Mac mini, Mac OS X (10.6.8)
  • 1. Re: Mail goes to same user on all domains?
    Camelot Level 8 Level 8 (45,790 points)

    Likely nothing - that's the default option in mail where all domains are mapped to the same user records (e.g. postfix is configured to accept mail for domain1.com, domain2.com and domain3.com - once the domain is parsed they all map to the same user record - namely 'scott').

     

    The solution is to implement the other type of virtual domain hosting at the postfix level. There's extensive online documentation about postfix and virtual hosting. Just be aware that it's almost entirely command-line driven since the Server Admin GUI doesn't delve deeply enough into Postfix's configuration files to handle this.

  • 2. Re: Mail goes to same user on all domains?
    scottl31 Level 1 Level 1 (5 points)

    Hmm.. yet another crazy thing that apple did.

     

    Well, I bought a Mac in the first place to avoid command lines, but I can usually mange if I can see exactly what to enter.

     

    I'm not even sure of the search I'd use to find the answer. If you have any clues, or if you know of a  set of commands that work, I'd appreciate it.

     

    I guess my problem with your answer is that I'm not sure what "the other type of virtual domain hosting at the postfix level" is.

     

    Thanks,

    Scott

  • 3. Re: Mail goes to same user on all domains?
    Camelot Level 8 Level 8 (45,790 points)

    The 'other type' is standard Postfix Virtual Domains although you might find some of the other online guides easier to read (postfix's documentation leaves a lot to be desired)

  • 4. Re: Mail goes to same user on all domains?
    scottl31 Level 1 Level 1 (5 points)

    I'll see if I can figure it out from that. Thanks!

  • 5. Re: Mail goes to same user on all domains?
    capaho Level 4 Level 4 (3,650 points)

    You need to create a unique user name for each domain in Workgroup Manager, then add the specific email names in the Short Names list.  For example, you would create the user domain1-user, then add scott@domain1.com in the Short Names list, and so on for each domain.  The user can then check email by logging in either as domain1-user or scott@domain1.com.

  • 6. Re: Mail goes to same user on all domains?
    scottl31 Level 1 Level 1 (5 points)

    Well, I knew a unique user name for each domain would work. But I just want to have one account in WGM, and not have the mail going to me at one domain also go to me at another domain.

  • 7. Re: Mail goes to same user on all domains?
    capaho Level 4 Level 4 (3,650 points)

    Unfortunately, the solution for the problem you described is as I explained in my previous reply.  You need a unique user account in WGM for each domain that will have the same user name for e-mail that needs to go to different domains, with the full e-mail address listed as a short name for the WGM domain account.  That's the only way that scenario will work in SL Server.

  • 8. Re: Mail goes to same user on all domains?
    Camelot Level 8 Level 8 (45,790 points)

    That's the only way that scenario will work in SL Server.

    Not quite true. That's how it works if you use the GUI admin tools. You can still peek under the hood and configure Postfix directly, based on the links I posted above.

    Depending on your level of expertise and time that might not be preferable, but it doea mean that Workgroup Manager model is not the only way.

  • 9. Re: Mail goes to same user on all domains?
    scottl31 Level 1 Level 1 (5 points)

    Camelot, that's what I thought.

     

    it seems crazy that I have to make a separate user account for every domain.

  • 10. Re: Mail goes to same user on all domains?
    capaho Level 4 Level 4 (3,650 points)

    Of course, you can edit the appropriate configuration files directly from the command line but It's been my experience with SL Server that you can break things unexpectedly if you try to manage user accounts outside of Workgroup Manager.

  • 11. Re: Mail goes to same user on all domains?
    capaho Level 4 Level 4 (3,650 points)

    I'm not that fond of Workgroup Manager, either, but SL Server is designed to use it for creating and managing network user accounts.  Creating a unique user account with an associated mail domain and Short Names for email aliases is the fastest and easiest way to accomplish what you want.

     

    Of course, it's your server, so you can peck through the configuration files if you are that averse to using Workgroup Manager.  Post the results once you get it done as it will make a good reference for others who want to use the same approach.

  • 12. Re: Mail goes to same user on all domains?
    scottl31 Level 1 Level 1 (5 points)

    I'm not averse to using Workgroup Manager. It just won't let me configure users the way I want and which makes sense.

  • 13. Re: Mail goes to same user on all domains?
    capaho Level 4 Level 4 (3,650 points)

    Were you able to get it done by editing the configuration files directly?

  • 14. Re: Mail goes to same user on all domains?
    scottl31 Level 1 Level 1 (5 points)

    I haven't had a chance to get into it yet, since I'm doing a bunch of getting the kids back to school stuff at the moment. Thanks for asking, and I'll report back when I do something, even if it's wrong.

1 2 Previous Next