1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Domain aliases to have their own unique email

Discussion in 'Plesk 10.x for Linux Suggestions and Feedback' started by iantresman, Mar 11, 2012.

  1. iantresman

    iantresman Basic Pleskian

    17
    35%
    Joined:
    Oct 14, 2011
    Messages:
    82
    Likes Received:
    0
    I need aliased domains to have their own unique email facilities. I have:

    www.customer.com
    www.different.com (aliased to customer.com, but a different customer!)

    Each domain belongs to a different customer, so each must have their own mailbox and forward rules.

    The domains are aliased because they share the same Drupal codebase, and Drupal is smart enough to allow each site to be customized separately.

    This works exactly as expected on my old non-Plesk server.
     
  2. Faris Raouf

    Faris Raouf Silver Pleskian Plesk Guru

    31
    30%
    Joined:
    Mar 15, 2009
    Messages:
    667
    Likes Received:
    17
    This isn't what the Domain Alias feature is designed to do so it isn't possible to do what you want using this particular feature.

    How to get what you want kind of depends on how Drupal is detecting which domain users are visiting.

    For example you could set up a separate subscription for the second domain, and set the hosting for it to non-frame forward to the first domain. If Drupal picks up on the forwarding, all is well and you can do what you want.

    If it doesn't, you could try setting up a separate subscription again for the second domain, but don't set up hosting at all. Then add the necessary apache virtualdomain directives for the second domain via the vhost.conf on the first domain. Not sure if this will work or not, but it might. You will probably have to manually add the necessessary www. dns record in for the second domain though.
     
  3. iantresman

    iantresman Basic Pleskian

    17
    35%
    Joined:
    Oct 14, 2011
    Messages:
    82
    Likes Received:
    0
    I can of see where you're coming from. I only suggested the alias feature having the required features, because that is how my old non-Plesk server worked. The frames solution is a non-starter. I don't think Drupal would work this way, and I think it is a bit of kludge.

    The Apache virtual domain directives sounds like the correct approach, though using vhosts.conf looks a bit scary. It would be very nice if Plesk had this as a forth hosting option (mirror? shadow? virtual alias?), which automatically created the appropriate vhost file that pointed to another existing domain.

    I guess this would work in only the same subscription, though it would be nice if admins and resellers could have it work across subscriptions (I could have a master Drupal installation), and then virtually point other domains in other subscriptions to it!

    But a forth hosting "virtual alias" for customers in the same subscription would be great!
     
  4. iantresman

    iantresman Basic Pleskian

    17
    35%
    Joined:
    Oct 14, 2011
    Messages:
    82
    Likes Received:
    0
    I think I have this solved.

    It seems that when you "Add New Domain", your can set its document root to an existing website. The new domain gets its own email facilities, and it is then aliased to the existing website. Simply!

    I was worried that it might copy the installation files to the directory (it doesn't), or that it might give an error saying that the directory exists, or on deleting the second domain, it might delete the directory which is shared by the first (it didn't).

    I guess it would be useful if there was an option to select an existing directory in order to alias the domain to an existing website.
     
    Last edited: Mar 14, 2012
  5. Faris Raouf

    Faris Raouf Silver Pleskian Plesk Guru

    31
    30%
    Joined:
    Mar 15, 2009
    Messages:
    667
    Likes Received:
    17
    Ooh! Interesting. I didn't know you could do that either. Good find.
     
Loading...