Roundcube Community Forum

 

hMailServer password change

Started by tarunmathur, February 03, 2020, 09:06:39 AM

Previous topic - Next topic

tarunmathur

Hi,
I am using hMailserver along with roundcube, its working fine but the users are unable to change the password from their login. Is there any way that the users can change the password from their inbox.

Thanks

JohnDoh

Have a look at the password plugin that ships with Roundcube. It has a driver for hMail.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

tarunmathur

Thanks for your reply, eveything is good, the password plugin is enabled and its showing the password change option.

But when finally i give the current password and the new password and as soon as I hit the "SAVE" button, it transfer to blank page. Please tell me what wrong might I have done or what can be the possible way to rectify it.

Thanks

JohnDoh

Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

tarunmathur

Hi here are the logs

[06-Feb-2020 04:06:49 Asia/Kolkata] PHP Fatal error:  Uncaught Error: Class 'COM' not found in C:\Downloads\websites\complete\plugins\password\drivers\hmail.php:36
Stack trace:
#0 C:\Downloads\websites\complete\plugins\password\password.php(387): rcube_hmail_password->save('tarunC234234', 'Tarun@234234', 'tarunmathur@ush...')
#1 C:\Downloads\websites\complete\plugins\password\password.php(183): password->_save('tarunC234234', 'Tarun@234234')
#2 C:\Downloads\websites\complete\program\lib\Roundcube\rcube_plugin_api.php(494): password->password_save()
#3 C:\Downloads\websites\complete\index.php(288): rcube_plugin_api->exec_action('plugin.password...')
#4 {main}
  thrown in C:\Downloads\websites\complete\plugins\password\drivers\hmail.php on line 36
[06-Feb-2020 04:08:37 Asia/Kolkata] PHP Fatal error:  Uncaught Error: Class 'COM' not found in C:\Downloads\websites\complete\plugins\password\drivers\hmail.php:36
Stack trace:
#0 C:\Downloads\websites\complete\plugins\password\password.php(387): rcube_hmail_password->save('tarunC234234', 'Tarun@234234', 'tarunmathur@ush...')
#1 C:\Downloads\websites\complete\plugins\password\password.php(183): password->_save('tarunC234234', 'Tarun@234234')
#2 C:\Downloads\websites\complete\program\lib\Roundcube\rcube_plugin_api.php(494): password->password_save()
#3 C:\Downloads\websites\complete\index.php(288): rcube_plugin_api->exec_action('plugin.password...')
#4 {main}
  thrown in C:\Downloads\websites\complete\plugins\password\drivers\hmail.php on line 36

SKaero


2.1.9. hMailServer (hmail)
--------------------------

Requires PHP COM (Windows only). For access to hMail server on remote host
you'll need to define 'hmailserver_remote_dcom' and 'hmailserver_server'.
See config.inc.php.dist file for more info.

https://www.php.net/manual/en/com.installation.php

tarunmathur

Hi,
PHP Com is already enabled in PHP.INI in windows.

hmailserver_remote_dcom=false

hmailserver_server credentials are the localhost, username and password that are used to connect the hMailServer from the frontend.

Thanks

JohnDoh

QuotePHP Com is already enabled in PHP.INI in windows.
Are you sure? Have you checked the output from phpinfo()?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

tarunmathur

Please find the entries done in my php.ini

[COM]
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
; http://php.net/com.typelib-file
;com.typelib_file =

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

; autoregister constants of a components typlib on com_load()
; http://php.net/com.autoregister-typelib
;com.autoregister_typelib = true

; register constants casesensitive
; http://php.net/com.autoregister-casesensitive
;com.autoregister_casesensitive = false

; show warnings on duplicate constant registrations
; http://php.net/com.autoregister-verbose
;com.autoregister_verbose = true

; The default character set code-page to use when passing strings to and from COM objects.
; Default: system ANSI code page
;com.code_page=

[COM_DOT_NET]
extension=php_com_dotnet.dll


Which entry in phpinfo() is there to check dcom???

JohnDoh

The reason I suggested phpinfo() was because you have said you are stuck, you believe PHP is correctly is configured and yet it is not working. By running phpinfo() from the environment where your scrript you can check that PHP reports the COM extension is enabled as you expect (it has a section for the that extension). Since this is not really a roundcube issue you might get better advice from a windows+php forum.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...