Author |
|
wbenkhoud Groupie
Joined: 16 July 2019 Location: Tunisia
Online Status: Offline Posts: 50
|
Posted: 16 July 2019 at 5:41am | IP Logged
|
|
|
Hello, I am new with Webmail Pro 8; Would you please advise if it possible to activate sieve with external serves?
In fact, with admin interface I don't find how to personnalise configuration even when I change SieveHost in data/settings/modules/Mail.config.json it doesn't work after restart of apache. Any other suggestions? Thank you.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 16 July 2019 at 6:40am | IP Logged
|
|
|
We've just released version 8.3.5 with this behavior corrected. The setting you'll need to adjust is now called OverriddenSieveHost and it's found in data/settings/modules/Mail.config.json configuration file.
We hope this helps.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
wbenkhoud Groupie
Joined: 16 July 2019 Location: Tunisia
Online Status: Offline Posts: 50
|
Posted: 17 July 2019 at 1:01am | IP Logged
|
|
|
Ok Thank you ; so I have to do just an update?
In fact, I heve used the zip package from official website and I don't find the recent version 8.3.5? Any link?
Best regrads.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 17 July 2019 at 1:14am | IP Logged
|
|
|
Yes the package is found at the download page, be sure to follow the upgrading instructions.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
wbenkhoud Groupie
Joined: 16 July 2019 Location: Tunisia
Online Status: Offline Posts: 50
|
Posted: 17 July 2019 at 1:24am | IP Logged
|
|
|
Good, thank you!
Regards
|
Back to Top |
|
|
wbenkhoud Groupie
Joined: 16 July 2019 Location: Tunisia
Online Status: Offline Posts: 50
|
Posted: 17 July 2019 at 2:25am | IP Logged
|
|
|
The update doesn't achive correctly :
php dev/update_dav.php
PHP Warning: require_once(../system/autoload.php): failed to open stream: No such file or directory in /srv/www/webmail8/dev/update_dav.php on line 12
PHP Fatal error: require_once(): Failed opening required '../system/autoload.php' (include_path='.:/usr/share/php7:/usr/share/php7/PEAR') in /srv/www/webmail8/dev/update_dav.php on line 12
When I changed the path '../system/autoload.php' to /srv/www/webmail8/system/autoload.php
I have got this error :
php7 dev/update_dav.php
PHP Fatal error: Uncaught Error: Class 'Aurora\System\Router' not found in /srv/www/webmail8/modules/Core/Module.php:78
Stack trace:
#0 /srv/www/webmail8/system/Module/AbstractModule.php(219): Aurora\Modules\Core\Module->init()
#1 /srv/www/webmail8/system/Module/Manager.php(261): Aurora\System\Module\AbstractModule->initialize()
#2 /srv/www/webmail8/system/Module/Manager.php(511): Aurora\System\Module\Manager->loadModule('Core', '/srv/www/webmai...')
#3 /srv/www/webmail8/system/Module/Manager.php(549): Aurora\System\Module\Manager->GetModulesPaths()
#4 /srv/www/webmail8/system/Module/Manager.php(233): Aurora\System\Module\Manager->GetModulePath('Core')
#5 /srv/www/webmail8/system/Module/Manager.php(625): Aurora\System\Module\Manager->loadModule('Core')
#6 /srv/www/webmail8/system/Module/Manager.php(90): Aurora\System\Module\Manager->GetModule('Core')
#7 /srv/www/webmail8/system/Api.php(200): Aurora\System\Module\Manager->init()
#8 /srv/www/webmail8/dev/update_dav.php(13): Aurora\System\Api::Init(true)
#9 {main}
thrown in /srv/www/webmail8/modules/Core/Module.php on line 78
Verification done :
grep Router /srv/www/webmail8/modules/Core/Module.php
\Aurora\System\Router::getInstance()->registerArray(
$sRawKey = \Aurora\System\Router::getItemByIndex(1, '');
$sAction = \Aurora\System\Router::getItemByIndex(2, '');
When I used the script with password, I have not error on web but I don't have any more access to the webmail index page.
Any suggestions Please?
|
Back to Top |
|
|
wbenkhoud Groupie
Joined: 16 July 2019 Location: Tunisia
Online Status: Offline Posts: 50
|
Posted: 17 July 2019 at 2:32am | IP Logged
|
|
|
I have updated the composer.phar
php7 composer.phar update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 17 July 2019 at 2:46am | IP Logged
|
|
|
Quote:
PHP Fatal error: require_once(): Failed opening required '../system/autoload.php' (include_path='.:/usr/share/php7:/usr/share/php7/PEAR') in /srv/www/webmail8/dev/update_dav.php on line 12 |
|
|
Does it work if you specify full path to dev/update_dav.php file? E.g:
Code:
php /srv/www/webmail8/dev/update_dav.php |
|
|
Also, pointing to it from the current directory with ./dev/update_dav.php may help.
Quote:
I have updated the composer.phar |
|
|
That's a completely different approach, only applicable if you have installed the product via composer initially, rather than from ZIP package.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
wbenkhoud Groupie
Joined: 16 July 2019 Location: Tunisia
Online Status: Offline Posts: 50
|
Posted: 17 July 2019 at 3:07am | IP Logged
|
|
|
the same issue :( I think the problem is with '../system/autoload.php'
I am working to make a new server with the last version!! Other suggestion?
In fact, I used the composer as I needed to add ldap module.
Best regards.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 17 July 2019 at 3:12am | IP Logged
|
|
|
Quote:
I think the problem is with '../system/autoload.php' |
|
|
But is the file itself actually there? It could be that the package was unpacked incompletely.
Quote:
In fact, I used the composer as I needed to add ldap module. |
|
|
But you have installed the initial product from ZIP, and then used the composer, correct?
Also, please try and install the newest package separately (for example, into another directory) and see if it works for you.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
wbenkhoud Groupie
Joined: 16 July 2019 Location: Tunisia
Online Status: Offline Posts: 50
|
Posted: 17 July 2019 at 3:47am | IP Logged
|
|
|
The same package with new directory returns the same error.
I will try to get the package directly to the target server (I used download from browser / transfer with Winscp) as I can't find a direct link to use with wget.
I followed the documentation for adding ldap module; if you have another alternative adding modules, please send me details. N.B : LDAP works!
Regards,
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 17 July 2019 at 4:20am | IP Logged
|
|
|
Quote:
I can't find a direct link to use with wget. |
|
|
It would be the following URL:
https://afterlogic.com/download/webmail-pro-php.zip
Quote:
if you have another alternative adding modules, please send me details |
|
|
Aside from standard approach for adding modules, there's a simpler approach described on both Password change via LDAP and Authentication via LDAP in Active Directory documentation pages.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
wbenkhoud Groupie
Joined: 16 July 2019 Location: Tunisia
Online Status: Offline Posts: 50
|
Posted: 17 July 2019 at 6:00am | IP Logged
|
|
|
Finally, upgrade has succeeded
But, I still have sieve problems :
1/ I use dynamic sieve servers Is it possible to change configuration
2/ even staticly configuring sieve it doesn't work with exception Saving settings has failed. (MailSo-Sieve-Exceptions-NegativeResponseException)
Any help?
Extract of LOG when activating autoresponse
[12:59:00.97][d3718cc6] MANAGE-SIEVE[WARNING]: MailSo\Sieve\Exceptions\NegativeResponseException: MailSo-Sieve-Exceptions-NegativeResponseException in /srv/www/webmail835/vendor/afterlogic/mailso/lib/MailSo/Sieve/ManageSieveClient.php:608
Stack trace:
#0 /srv/www/webmail835/vendor/afterlogic/mailso/lib/MailSo/Sieve/ManageSieveClient.php(530): MailSo\Sieve\ManageSieveClient->validateResponse(Array)
#1 /srv/www/webmail835/vendor/afterlogic/mailso/lib/MailSo/Sieve/ManageSieveClient.php(221): MailSo\Sieve\ManageSieveClient->sendRequestWithCheck('LOGOUT')
#2 /srv/www/webmail835/vendor/afterlogic/mailso/lib/MailSo/Net/NetClient.php(350): MailSo\Sieve\ManageSieveClient->Logout()
#3 /srv/www/webmail835/vendor/afterlogic/mailso/lib/MailSo/Net/NetClient.php(120): MailSo\Net\NetClient->LogoutAndDisconnect()
#4 [internal function]: MailSo\Net\NetClient->__destruct()
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 17 July 2019 at 6:26am | IP Logged
|
|
|
Quote:
1/ I use dynamic sieve servers Is it possible to change configuration |
|
|
Not sure what that means, can you explain please?
Quote:
Extract of LOG when activating autoresponse |
|
|
That one looks incomplete, make sure to set log verbosity level to Debug, so that the logs actually reflect WebMail "talking" to Sieve server, that will allow you to check whether correct host and port are used.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
wbenkhoud Groupie
Joined: 16 July 2019 Location: Tunisia
Online Status: Offline Posts: 50
|
Posted: 18 July 2019 at 2:15am | IP Logged
|
|
|
Hello,
Connexion with sieve server established but there is something wrong. Bellow the LOG debugging :
[09:03:07.25][098fab4c] API: Mail::UpdateForward
[09:03:07.27][098fab4c] MANAGE-SIEVE[NOTE]: Start connection to "tcp://10.10.100.131:2000"
[09:03:07.28][098fab4c] MANAGE-SIEVE[DATA]: < "IMPLEMENTATION" "Cyrus timsieved v2.4.17"\r\n
[09:03:07.28][098fab4c] MANAGE-SIEVE[DATA]: < "SASL" "GSSAPI PLAIN DIGEST-MD5 CRAM-MD5 LOGIN"\r\n
[09:03:07.28][098fab4c] MANAGE-SIEVE[DATA]: < "SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags notify envelope rel
ational regex subaddress copy"\r\n
[09:03:07.28][098fab4c] MANAGE-SIEVE[DATA]: < "UNAUTHENTICATE"\r\n
[09:03:07.28][098fab4c] MANAGE-SIEVE[DATA]: < OK\r\n
[09:03:07.28][098fab4c] MANAGE-SIEVE[DATA]: > AUTHENTICATE "PLAIN" {44+}\r\n
[09:03:07.28][098fab4c] MANAGE-SIEVE[DATA]: > AHdiZW5raG91ZEBnbG9iYWxuZXQudG4AV2FmYTE4Kg==\r\n
[09:03:07.28][098fab4c] MANAGE-SIEVE[DATA]: < OK\r\n
[09:03:07.28][098fab4c] MANAGE-SIEVE[DATA]: > LISTSCRIPTS\r\n
[09:03:07.28][098fab4c] MANAGE-SIEVE[DATA]: < "managesieve" ACTIVE\r\n
[09:03:07.28][098fab4c] MANAGE-SIEVE[DATA]: < OK\r\n
[09:03:07.29][098fab4c] MANAGE-SIEVE[DATA]: > CHECKSCRIPT {166+}\r\n
[09:03:07.29][098fab4c] MANAGE-SIEVE[DATA]: > # Sieve filter\r\nrequire ["fileinto", "copy", "vacation"] ;\r\n\r\n#begin = forward =\r\n#data=1~Z2dnQHZvaWxhLmZy\r\nredirect :copy "ggg@voila.fr";\r\n\r\n#end = forward =\r\nkeep ;\r\n
[09:03:07.29][098fab4c] MANAGE-SIEVE[DATA]: < NO "Expected a command. Got something else."\r\n
[09:03:07.29][098fab4c] MANAGE-SIEVE[WARNING]: MailSo\Sieve\Exceptions\NegativeResponseException: MailSo-Sieve-Exceptions-NegativeResponseException in /srv/www/webmail835/vendor/afterlogic/mailso/lib/MailSo/Sieve/ManageSieveClient.php:608
Stack trace:
#0 /srv/www/webmail835/vendor/afterlogic/mailso/lib/MailSo/Sieve/ManageSieveClient.php(530): MailSo\Sieve\ManageSieveClient->validateResponse(Array)
#1 /srv/www/webmail835/vendor/afterlogic/mailso/lib/MailSo/Sieve/ManageSieveClient.php(352): MailSo\Sieve\ManageSieveClient->sendRequestWithCheck('# Sieve filter\r...')
#2 /srv/www/webmail835/modules/Mail/Managers/Sieve/Manager.php(590): MailSo\Sieve\ManageSieveClient->CheckScript('# Sieve filter\r...')
#3 /srv/www/webmail835/modules/Mail/Managers/Sieve/Manager.php(618): Aurora\Modules\Mail\Managers\Sieve\Manager->_setSieveFile(Object(Aurora\Modules\Mail\Classes\Account), '# Sieve filter\r...')
#4 /srv/www/webmail835/modules/Mail/Managers/Sieve/Manager.php(213): Aurora\Modules\Mail\Managers\Sieve\Manager->_resaveSectionsData(Object(Aurora\Modules\Mail\Classes\Account))
#5 /srv/www/webmail835/modules/Mail/Module.php(5527): Aurora\Modules\Mail\Managers\Sieve\Manager->setForward(Object(Aurora\Modules\Mail\Classes\Account), 'ggg@voila.fr', true)
#6 [internal function]: Aurora\Modules\Mail\Module->UpdateForward(5, true, 'ggg@voila.fr')
#7 /srv/www/webmail835/system/Module/AbstractModule.php(791): call_user_func_array(Array, Array)
#8 /srv/www/webmail835/modules/Core/Module.php(633): Aurora\System\Module\AbstractModule->CallMethod('UpdateForward', Array, true)
#9 [internal function]: Aurora\Modules\Core\Module->EntryApi()
#10 /srv/www/webmail835/system/Router.php(108): call_user_func_array(Array, Array)
#11 /srv/www/webmail835/system/Module/Manager.php(611): Aurora\System\Router->route('api')
#12 /srv/www/webmail835/system/Application.php(119): Aurora\System\Module\Manager->RunEntry('api')
#13 /srv/www/webmail835/system/Application.php(90): Aurora\System\Application->Route('api')
#14 /srv/www/webmail835/index.php(21): Aurora\System\Application::Start()
#15 {main}
[09:03:07.29][098fab4c] MailSo-Sieve-Exceptions-NegativeResponseException
[09:03:07.29][098fab4c] @Time: 0.149
[09:03:07.29][098fab4c] @TimeApiInit: 0.1122
[09:03:07.29][098fab4c] INFO[MEMORY]: Memory peak usage: 2MB
[09:03:07.29][098fab4c] INFO[TIME]: Time delta: 1563440587.2928
[09:03:07.29][098fab4c] MANAGE-SIEVE[DATA]: > LOGOUT\r\n
[09:03:07.29][098fab4c] MANAGE-SIEVE[DATA]: < NO "Expected a command. Got something else."\r\n
I will give subsequently more details about mutiple Sieve servers. Thank you.
Regards,
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 18 July 2019 at 2:30am | IP Logged
|
|
|
It looks like your Sieve server doesn't understand CHECKSCRIPT command. You can try skipping the check by removing or commenting out line ~590 in modules/Mail/Managers/Sieve/Manager.php file:
Code:
$oSieve->CheckScript($sText); |
|
|
Hope this helps.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
wbenkhoud Groupie
Joined: 16 July 2019 Location: Tunisia
Online Status: Offline Posts: 50
|
Posted: 18 July 2019 at 3:10am | IP Logged
|
|
|
It seems OK (no more fail message); but really, no forward has been added in my Sieve server. Where did information about sieve are written?
In fact; when I logged off and log in again to the same account the information about forward (in my case) are still there. From where did it show the details of forward?
[09:35:26.72][6f245971] API: Mail::UpdateForward
[09:35:26.74][6f245971] MANAGE-SIEVE[NOTE]: Start connection to "tcp://10.10.100.131:2000"
[09:35:26.75][6f245971] MANAGE-SIEVE[DATA]: < "IMPLEMENTATION" "Cyrus timsieved v2.4.17"\r\n
[09:35:26.75][6f245971] MANAGE-SIEVE[DATA]: < "SASL" "GSSAPI PLAIN DIGEST-MD5 CRAM-MD5 LOGIN"\r\n
[09:35:26.75][6f245971] MANAGE-SIEVE[DATA]: < "SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags notify envelope rel
ational regex subaddress copy"\r\n
[09:35:26.75][6f245971] MANAGE-SIEVE[DATA]: < "UNAUTHENTICATE"\r\n
[09:35:26.75][6f245971] MANAGE-SIEVE[DATA]: < OK\r\n
[09:35:26.75][6f245971] MANAGE-SIEVE[DATA]: > AUTHENTICATE "PLAIN" {44+}\r\n
[09:35:26.75][6f245971] MANAGE-SIEVE[DATA]: > AHdiZW5raG91ZEBnbG9iYWxuZXQudG4AV2FmYTE4Kg==\r\n
[09:35:26.76][6f245971] MANAGE-SIEVE[DATA]: < OK\r\n
[09:35:26.76][6f245971] MANAGE-SIEVE[DATA]: > LISTSCRIPTS\r\n
[09:35:26.76][6f245971] MANAGE-SIEVE[DATA]: < "managesieve" ACTIVE\r\n
[09:35:26.76][6f245971] MANAGE-SIEVE[DATA]: < OK\r\n
[09:35:26.76][6f245971] MANAGE-SIEVE[DATA]: > PUTSCRIPT "sieve" {166+}\r\n
[09:35:26.76][6f245971] MANAGE-SIEVE[DATA]: > # Sieve filter\r\nrequire ["fileinto", "copy", "vacation"] ;\r\n\r\n#begin = forward =\r\n#data=1~eHh4QGdtYWlsLmZy\r\nredirect :copy "xxx@gmail.fr";\r\n\r\n#end = forward =\r\nkeep ;\r\n
[09:35:27.66][6f245971] MANAGE-SIEVE[DATA]: < OK\r\n
[09:35:27.66][6f245971] MANAGE-SIEVE[DATA]: > SETACTIVE "sieve"\r\n
[09:35:27.66][6f245971] MANAGE-SIEVE[DATA]: < OK\r\n
[09:35:27.66][6f245971] @Time: 1.0521
[09:35:27.66][6f245971] @TimeApiInit: 0.1084
[09:35:27.66][6f245971] INFO[MEMORY]: Memory peak usage: 4MB
[09:35:27.66][6f245971] INFO[TIME]: Time delta: 1563442527.6686
[09:35:27.66][6f245971] MANAGE-SIEVE[DATA]: > LOGOUT\r\n
[09:35:27.66][6f245971] MANAGE-SIEVE[DATA]: < OK "Logout Complete"\r\n
[09:35:27.66][6f245971] MANAGE-SIEVE[NOTE]: Disconnected from "tcp://10.10.100.131:2000" (success)
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 18 July 2019 at 3:14am | IP Logged
|
|
|
It's stored on mail server side, WebMail uses ManageSieve protocol to submit that information over to mail server. Usually, it's stored as a file inside email account directory on mailserver; in case of Dovecot, that's a file called sieve.sieve.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
wbenkhoud Groupie
Joined: 16 July 2019 Location: Tunisia
Online Status: Offline Posts: 50
|
Posted: 18 July 2019 at 4:16am | IP Logged
|
|
|
As I am using LDAP to read/write Forward and Autoresponse options , I think I have to configure it in /modules/Mail/Managers/Sieve/Manager.php
Any other suggestion?
I tested Sieve Filters OK
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 18 July 2019 at 4:18am | IP Logged
|
|
|
In WebMail Pro, all the features listed (Forward, Autoresponse and Filters) work via Sieve. While WebMail Pro supports LDAP, it's only about authentication and address book access.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
wbenkhoud Groupie
Joined: 16 July 2019 Location: Tunisia
Online Status: Offline Posts: 50
|
Posted: 19 July 2019 at 2:41am | IP Logged
|
|
|
I am using LDAP to connect multiple users who are connected to different sieve servers (cyrus)
As I mentionned before, I tested sieve filter staticlly and it's working correctly. Now, I want to propagate the configuration for all users so I need to configure OverriddenSieveHost dynamically (getting information from every user authenticated by LDAP)
Any Help?
Best regards,
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 19 July 2019 at 2:55am | IP Logged
|
|
|
It doesn't work that way, OverriddenSieveHost is a global setting. But you can adjust the code around lines ~516-520 in modules/Mail/Managers/Sieve/Manager.php file:
Code:
$sHost = $oMailModule->getConfig('OverriddenSieveHost', '');
if (empty($sHost))
{
$sHost = $oServer->IncomingServer;
} |
|
|
and supply the code logic you require there.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
wbenkhoud Groupie
Joined: 16 July 2019 Location: Tunisia
Online Status: Offline Posts: 50
|
Posted: 22 July 2019 at 1:34am | IP Logged
|
|
|
Hi,
Any idea about php session class; I want to make changes when user log in
Best regards,
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6103
|
Posted: 22 July 2019 at 1:37am | IP Logged
|
|
|
WebMail Pro doesn't use PHP sessions, just the cookie-based authentication.
If you require assistance with customizing the product code, that can be arranged in terms of Professional Services contract, please contact us via HelpDesk for details.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|