hMailServer and Roundcube change password problem

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
gianniskapouekei
Normal user
Normal user
Posts: 66
Joined: 2017-09-29 13:09

hMailServer and Roundcube change password problem

Post by gianniskapouekei » 2017-10-31 20:23

hi. i have install RoundCube Webmail 1.2.6. I install change password plugin and i do all the settings. But when i go to change password a white page appears with HTTP ERROR 500. My setting is:

RoundCube config.inc.php
$config['plugins'] = array(password);


// Password Plugin options
// A driver to use for password change. Default: "sql".
// See README file for list of supported driver names.
$config['password_driver'] = 'hmail';

// Determine whether current password is required to change password.
// Default: false.
$config['password_confirm_current'] = true;

// Require the new password to be a certain length.
// set to blank to allow passwords of any length
$config['password_minimum_length'] = 7;

// Require the new password to contain a letter and punctuation character
// Change to false to remove this check.
$config['password_require_nonalpha'] = false;

// Enables logging of password changes into logs/password
$config['password_log'] = true;

// Comma-separated list of login exceptions for which password change
// will be not available (no Password tab in Settings)
$config['password_login_exceptions'] = null;

// Array of hosts that support password changing. Default is NULL.
// Listed hosts will feature a Password option in Settings; others will not.
$config['password_hosts'] = array('mail.mydomain.com');

// Enables saving the new password even if it matches the old password. Useful
// for upgrading the stored passwords after the encryption scheme has changed.
$config['password_force_save'] = false;

// Enables forcing new users to change their password at their first login.
$config['password_force_new_user'] = false;

// hMail Driver options
// -----------------------
// Remote hMailServer configuration
// true: HMailserver is on a remote box (php.ini: com.allow_dcom = true)
// false: Hmailserver is on same box as PHP
$config['hmailserver_remote_dcom'] = false;
// Windows credentials
$config['hmailserver_server'] = array(
'Server' => 'mail.mydomain.com', // hostname or ip address
'Username' => 'user', // windows username
'Password' => 'password' // windows user password
);


Username and password i used what I connect hMailServer.

thanks :)

User avatar
mattg
Moderator
Moderator
Posts: 22437
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: hMailServer and Roundcube change password problem

Post by mattg » 2017-11-01 03:15

Have you asked roundcube about support for this plugin for their software that they supply?
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

tunis
Senior user
Senior user
Posts: 351
Joined: 2015-01-05 20:22
Location: Sweden

Re: hMailServer and Roundcube change password problem

Post by tunis » 2017-11-01 12:31

Have you this uncommented in your php.ini?

Code: Select all

com.allow_dcom = true
extension=php_com_dotnet.dll
Have you right DCOM permissions?
https://www.hmailserver.com/documentati ... ermissions
HMS 5.6.8 B2534.28 on Windows Server 2019 Core VM.
HMS 5.6.9 B2641.67 on Windows Server 2016 Core VM.

sebotta
New user
New user
Posts: 2
Joined: 2019-05-06 23:17

Re: hMailServer and Roundcube change password problem

Post by sebotta » 2019-05-06 23:27

I have the same problem.
My HMailServer is on other host, so my password plugin config file is:

$config['hmailserver_remote_dcom'] = true;
$config['hmailserver_server'] = array(
'Server' => '10.10.10.100', // hostname or ip address
'Username' => 'user', // windows username
'Password' => 'pass' // windows user password
);

I have allowed this options in php.ini:

; allow Distributed-COM calls
; http://php.net/com.allow-dcom
com.allow_dcom = true

extension=php_com_dotnet.dll

On HMailServer host I configured DCOM permissions as says in " https://www.hmailserver.com/documentati ... ermissions "

I have this error in log file: Plugin password (hmail driver): Failed to create COM object `hMailServer.Application': Sintaxis no válida

User avatar
mattg
Moderator
Moderator
Posts: 22437
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: hMailServer and Roundcube change password problem

Post by mattg » 2019-05-07 02:05

What OS do you run roundcube on?
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

sebotta
New user
New user
Posts: 2
Joined: 2019-05-06 23:17

Re: hMailServer and Roundcube change password problem

Post by sebotta » 2019-05-07 02:20

Both servers are Windows 2012 R2.

User avatar
Dravion
Senior user
Senior user
Posts: 2071
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: hMailServer and Roundcube change password problem

Post by Dravion » 2019-05-07 03:08

Make sure your Remote hMailServer Computer is accessible over the Network by DCOM and Windows Firewall Permissions

*Open a Wiindows Command Prompt as Admin on hMailServer Computer and run

#Both rules are required
netsh advfirewall firewall add rule name="DCOM_IN" dir=in action=allow protocol=TCP localport=135

netsh advfirewall firewall add rule name="DCOM_OUT" dir=out action=allow protocol=TCP localport=135

Check also by hMailAdmin.exe from remote Computer hMailServer can be remote configured. Its this works out ok, it works out ok for php dcom as well.

PS: You can also use the DCOM Remoteenabler Script to set all required settings required for hMailServer
See:
https://www.hmailserver.com/forum/viewt ... 21&t=31511

Post Reply