• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Best Way to Separate Mail and Hosting Domain on Same Server

smirking

New Pleskian
I have a situation that might be becoming increasingly common. I have a small SAAS platform where I provide an information repository for a customer that is basically an aliased domain. I'm using a multi-site setup of Drupal to serve multiple sites off of one instance. This works quite well on the Web end of things. All I have to do is add a domain alias and the setup works.

I run into problems because the customers often also need email services and Mailman. I could run a separate server for this, but I'd like to keep things on one server for ease of maintenance reasons.

Ideally, I would setup a domain twice, but Plesk doesn't allow that. If I use a domain as a domain alias, I can't then create separate mail accounts for it as a stand alone hosting domain.

I've found a way that seems to work for me, but I wanted to check with the Plesk guys to see if the way I'm doing it is ok or if there's a better way to do it. I'm overriding the vhost conf settings for the Mail Only domain to assign it to the docroot of the parent site and changing the SuexecUserGroup to that of the parent site's user.

SITE 0 Setup as a Web Hosting Domain (My Main Site)
- PHP 5.6 FastCGI
- Docroot: /var/www/vhosts/site0/httpdocs

SITE 1 Setup as a Web Hosting Domain (Mail Only Domain)
- Customize the Apache nginx settings with the custom directives below.

<VirtualHost 127.0.0.1:80 >
DocumentRoot "/var/www/vhosts/site0/httpdocs"
CustomLog /var/www/vhosts/system/site0/logs/access_ssl_log plesklog
ErrorLog "/var/www/vhosts/system/site0/logs/error_log"

<IfModule mod_suexec.c>
SuexecUserGroup "site0_user" "psacln"
</IfModule>

<IfModule mod_fcgid.c>
FcgidInitialEnv PP_CUSTOM_PHP_INI /var/www/vhosts/system/site0/etc/php.ini
FcgidInitialEnv PP_CUSTOM_PHP_CGI_INDEX plesk-php56-fastcgi
FcgidMaxRequestLen 134217728
FcgidIOTimeout 240
</IfModule>
TimeOut 240
<Directory /var/www/vhosts/site0/httpdocs>
<IfModule mod_fcgid.c>
<Files ~ (\.php$)>
SetHandler fcgid-script
FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .php
Options +ExecCGI
</Files>
</IfModule>
SSLRequireSSL
Options -Includes -ExecCGI
</Directory>
</VirtualHost>
 
Back
Top