Are you interested for monthly server support with Unlimited tickets, 24×7 monitoring, Security Audit and lot more ? please check our Monthly server support plans

Install SSL for webmail on plesk server:

You can install SSl for webmail on your plesk server. For that follow the steps below,

Step 1.

First create a subdomain for accessing webmail. Create it as mail.domain.com

Step 2.

Now copy the contents of the webmail to the new subdomain.

cp -rf  /usr/share/psa-horde/* /var/www/vhosts/domain.com/mail.domain.com/

Now try to load the domain.

Step 3.

You will get error messages like mentioned below,

Tue Dec 31 03:32:01 2013] [warn] [client ] mod_fcgid: stderr: PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/vhosts/domain.com/httpdocs/mail/lib/../config/horde.local.php) is not within the allowed path(s): (/var/www/vhosts/domain.com/:/tmp/) in /var/www/vhosts/domain.com/httpdocs/mail/lib/core.php on line 39
[Tue Dec 31 03:32:01 2013] [warn] [client ] mod_fcgid: stderr: PHP Warning: require_once(Horde/Autoloader/Default.php): failed to open stream: No such file or directory in /var/www/vhosts/domain.com/httpdocs/mail/lib/core.php on line 47
[Tue Dec 31 03:32:01 2013] [warn] [client ] mod_fcgid: stderr: PHP Fatal error: require_once(): Failed opening required ‘Horde/Autoloader/Default.php’ (include_path=’/var/www/vhosts/domain.com/httpdocs/mail/lib:.:’) in /var/www/vhosts/domain.com/httpdocs/mail/lib/core.php on line 47

This is because of the open_basedir settings, For fixing this go to,

Plesk panel > Websites and domains > mail.domain.com > PHP settings >  Common settings > open_basedir 

and select the value as none.

Now again try to load the domain.

Step 4.

If you see the below error after loading the domain,

 Unable to get webmail password

Then you need to set the permissions for apache. For that,

Check that the below file exists and that it has the following permissions,

/etc/psa-webmail/horde/.horde.shadow

~# ls -la /etc/psa-webmail/horde/.horde.shadow -rw-r----- 1 root apache 15 Mar 20 2012 /etc/psa-webmail/horde/.horde.shadow

 

Now try to switch user as apache and access the file below,

su - apache -s /bin/sh -c "cat /etc/psa-webmail/horde/.horde.shadow"

Step 5.

Change the ownership and permissions for the file,

chown root:psacln /etc/psa-webmail/horde/.horde.shadow

Now try to access the mail.domain.com and you will be able to get into it. Also you can now simpily install SSL for the mail domain from the plesk server.

If you need to know about the SSL installation, then refer the link below,
http://iserversupport.com/blog/install-ssl-for-domains-and-plesk-panel-login-page/

Now you will be able to install SSL for your webmail domain.