Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: hmail-change-password plugin Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
RockNLol
Newbie
Newbie


Joined: 16 October 2017
Online Status: Offline
Posts: 3
Posted: 16 October 2017 at 5:36am | IP Logged Quote RockNLol

hi,
I am trying to setup the hmail-change-password plugin on my Windows Server 2012R2-machine. It runs the latest versions of AfterLogic Webmail Lite. I use IIS 8, hMailServer 5.6.5-B2367 and PHP 7.0.9.
I followed the instructions over at https://afterlogic.com/docs/plugins-repository/password-change-for-hmailserver, so I did create the directory in the plugins-folder with the index.php of the plugin inside, as well as altering the config.php in the settings-folder.
When I login to the webmail now, everything works as intended, only that there is no option anywhere to change the password. The last line of the short tutorial says "For this to work, make sure your PHP setup has COM support enabled.", so I tried activating the "php_com_dotnet.dll" in the PHP-Manager of IIS, with the result of the webmail only showing a blank white page after login.
What did I do wrong? Did I forget something? Are there any logs to check?

best regards and thanks in advance,
RockNLol
Back to Top View RockNLol's Profile Search for other posts by RockNLol
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 16 October 2017 at 7:32am | IP Logged Quote Igor

Looks like some kind of error occured on webserver and prevented from executing WebMail code, so the logs of WebMail will probably be of no use here, you'll need to check error logs of PHP or IIS to find out what's going on. If we have the log entries related to the issue, we may be able to assist you further.

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
RockNLol
Newbie
Newbie


Joined: 16 October 2017
Online Status: Offline
Posts: 3
Posted: 16 October 2017 at 7:46am | IP Logged Quote RockNLol

Ok, I checked the PHP log, there is only one Error over and over again:
[16-Oct-2017 10:51:22 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files\PHP\v7.0\ext\php_mysql.dll' - Das angegebene Modul wurde nicht gefunden.
in Unknown on line 0 (german, ~module not found)
of course it's not found because php_mysql is deprecated afaik since PHP v5.something
should I install an older PHP Version which still uses php_mysql.dll?
I can't find any errors in the IIS-logs.
Back to Top View RockNLol's Profile Search for other posts by RockNLol
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 16 October 2017 at 7:54am | IP Logged Quote Igor

I don't think that is related to this specific issue - as you stated, everything was working just fine before you attempted to enable COM extension.

My suggestion is to try and check whether PHPWebAdmin, web-based admin interface of hMailServer is working. It's shipped as a part of hMailServer, you would need to copy it into web directory of IIS. I understand it uses PHP COM as well so it would be a decent way of confirming whether the problem is with the web environment or with our product.

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
RockNLol
Newbie
Newbie


Joined: 16 October 2017
Online Status: Offline
Posts: 3
Posted: 16 October 2017 at 8:27am | IP Logged Quote RockNLol

Thanks for the idea! I got PHPWebAdmin to run, after changing the DCOM-Permissions in Windows. To do that I had do run dcomcnfg.exe and look for hMailServer in the DCOM-Configuration in the local Computer tab there, and change its permissions.
Unfortunately I can't find the equivalent of the Webmail there. Do you have any idea how it could be called? There are hundreds of objects there...

*edit: I just found out, that changing the DCOM-permission of hMailServer solved the whitescreen after login with php_com_dotnet.dll activated. Unfortunately I can't find the option to change my password. Where should it be, given that i set up everything correctly?
Back to Top View RockNLol's Profile Search for other posts by RockNLol
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 17 October 2017 at 2:20am | IP Logged Quote Igor

There should be "Change Password" button in account properties.

Note that, by default, password change option is only available if account's IMAP hostname is a local one - localhost, 127.0.0.1, etc. You can adjust that in isLocalAccount function of the plugin; for example, if you change the function code to "return true;" - password change option will become available for all accounts, regardless of the hostname.

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
lucas
Newbie
Newbie


Joined: 01 November 2017
Online Status: Offline
Posts: 1
Posted: 01 November 2017 at 9:55am | IP Logged Quote lucas

Hello, I also have the same problem, I ask you a courtesy, please post the contents of the config.php file to insert the user password change plugins, with hmailserver and webmail lite php, so check if i have inserted everything right. Sorry my english.
Back to Top View lucas's Profile Search for other posts by lucas
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 02 November 2017 at 1:21am | IP Logged Quote Igor

By default, config.php file looks like this:

Code:
<?php

$aSieveDomains = array('127.0.0.1', 'localhost');

return array(
     
     'sieve' => false,
     'sieve.autoresponder' => true,
     'sieve.forward' => true,
     ...


What you need to do is add the settings related to this plugin into the array defined there. It's perfectly safe to add those to the end of the array, or to the beginning - just make sure all the items are separated with commas, for example:

Code:
<?php

$aSieveDomains = array('127.0.0.1', 'localhost');

return array(
     'plugins.hmailserver-change-password' => true,
     'plugins.hmailserver-change-password.config.login' => 'AdminUser',
     'plugins.hmailserver-change-password.config.password' => 'AdminPass',
     'sieve' => false,
     'sieve.autoresponder' => true,
     'sieve.forward' => true,
     ...


I've uploaded a sample config.php file, you'll need to specify the actual hMailServer admin account credentials there of course.

Hope this helps.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide