• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Setting Up Separate Mail Accounts for a Domain Alias?

smirking

New Pleskian
I've got a situation in which I need to have a set of mail accounts that share a domain name with a domain that's already in use as a domain alias and because the domain is already in use, I'm unable to create a new account using that domain. I tried explicitly adding "www" to the domain alias so I could keep the www.domain.com address as an alias and reserve the "domain.com" name for use as a separate account, but Plesk won't allow for that.

Has anyone encountered this situation before? Anyone have any ideas how to address this? The idea I'm currently considering is to delete the domain alias and then create the new account and manually set the DOCUMENT ROOT of the new account to refer to the other domain's document root. I'm sure this could create some headaches in Plesk so I'm looking for input before trying it. I'm actually not even sure exactly where I would be able to redefine the document root with Plesk allowing the change and not overwriting it later.

If all else fails, I can setup a new account on a different and unrelated Plesk server, but I'd prefer not to do that.
 
Hi smirking,

thanks for your request. You can add the domain alias as a seperate domain so you can use all mail services at it as well.
 
Hi smirking,

thanks for your request. You can add the domain alias as a seperate domain so you can use all mail services at it as well.

Yes I know that, but if I add it as a separate domain I have to first delete my alias, which I don't want to do because I want the Web part aliased to a parent domain and the mail part handled by its own domain. I was able to address this by overriding the webroot in the "Webserver Settings" for the mail domain.

Those of you who want to do the same, this will work:

Code:
DocumentRoot /var/www/vhosts/parent-domain.com/httpdocs
ServerName alias-domain.com
ServerAlias www.alias-domain.com
<Directory "/var/www/vhosts/parent-domain.com/httpdocs">
<IfModule sapi_apache2.c>
    php_admin_flag engine on
</IfModule>
<IfModule mod_php5.c>
    php_admin_flag engine on
</IfModule>
</Directory>
 
Back
Top