WebMail Pro documentation

Password change for DirectAdmin

This module allows users to change passwords on their email accounts hosted by DirectAdmin.

Installation

While typically modules are added in a standard fashion, in this case there's a simple approach available.

Configuration

After installing the module, you should find its configuration file at data/settings/modules/MailChangePasswordDirectadminPlugin.config.json:

{
    "Disabled": [
        false,
        "bool",
        null,
        "Setting to true disables the module"
    ],
    "SupportedServers": [
        [
            "*"
        ],
        "array",
        null,
        "If IMAP Server value of the mailserver is in this list, password change is enabled for it. * enables it for all the servers."
    ],
    "DirectAdminURL": [
        "http://localhost:2222",
        "string",
        null,
        "Defines main URL of DirectAdmin installation"
    ]
}

In there, you'll need to specify URL of DirectAdmin installation, typically with port 2222 used. Note that in previous versions of the module, shipped with DirectAdmin installer, the changes are made in the code directly, see this documentation page for more info.

For SupportedServers, you need to supply array of mailserver hostnames or IP addresses the feature is enabled for. If you put "*" item there, it means the feature is enabled for all accounts.

To make sure "Change Password" button is displayed, set "Disabled" to false in data/settings/modules/ChangePasswordWebclient.config.json configuration file.