How to change webmail type for all domains

Created:

2016-12-18 06:53:26 UTC

Modified:

2017-08-16 17:38:27 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to change webmail type for all domains

Applicable to:

  • Plesk Onyx for Windows
  • Plesk 12.5 for Windows

Question

How to change webmail type for all domains on the server? For example to Horde.

Answer

For Plesk for Windows :

It is possible with command line utilities:

  1. Dump the list of domains:

    "%plesk_dir%"\\MySQL\\bin\\mysql.exe -uadmin -p****** -P8306 psa -Ne"select name from domains" > C:\\domains.txt
  2. Go to CLI directory:

    cd %plesk_cli%
  3. Update all the domain's settings:

    for /f "tokens=*" %d in ('type C:\\domains.txt') do subscription_settings.exe -u %d -webmail horde

For Plesk for Linux you may use the following script:

#!/bin/bash
for d in `plesk db -Ne "select name from domains"`
do
plesk bin subscription_settings -u "$d" -webmail roundcube
done

Additional information

In order to detect a correct value of webmail client for command executing, run the following command:

"%plesk_bin%"\subscription_settings.exe --help | findstr webmail
-webmail <horde|mewebmail|smwebmail|none> Allows the use of webmail.

Note : mewebmail - MailEnable Webmail.

smwebmail - SmarterMail Webmail.

Have more questions? Submit a request
Please sign in to leave a comment.