I am trying to set up SmartSieve on a ClearOs 7 (based on CentOs 7) server, but running into all sorts of problems.
I am getting lots of errors in the error_log from PHP, such as:
[Thu Feb 01 15:07:21.605828 2018] [:error] [pid 14428] [client 192.168.1.6:64836] PHP Strict Standards: Non-static method SmartSieve::getConf() should not be called statically, assuming $this from incompatible context in /usr/clearos/framework/htdocs/smartsieve/lib/SmartSieve.lib on line 491, referer: https://router.moorsbroadband.net:81/smartsieve/login.php?SmartSieve=2i26483lntfst46vo2jldtouh4 [Thu Feb 01 15:07:21.605839 2018] [:error] [pid 14428] [client 192.168.1.6:64836] PHP Strict Standards: Non-static method SmartSieve::getConf() should not be called statically, assuming $this from incompatible context in /usr/clearos/framework/htdocs/smartsieve/lib/SmartSieve.lib on line 492, referer: https://router.moorsbroadband.net:81/smartsieve/login.php?SmartSieve=2i26483lntfst46vo2jldtouh4 [Thu Feb 01 15:07:21.605874 2018] [:error] [pid 14428] [client 192.168.1.6:64836] PHP Strict Standards: Only variables should be assigned by reference in /usr/clearos/framework/htdocs/smartsieve/lib/SmartSieve.lib on line 492, referer: https://router.moorsbroadband.net:81/smartsieve/login.php?SmartSieve=2i26483lntfst46vo2jldtouh4 [Thu Feb 01 15:07:21.605979 2018] [:error] [pid 14428] [client 192.168.1.6:64836] PHP Strict Standards: Non-static method SmartSieve::log() should not be called statically, assuming $this from incompatible context in /usr/clearos/framework/htdocs/smartsieve/lib/Managesieve.php on line 302, referer: https://router.moorsbroadband.net:81/smartsieve/login.php?SmartSieve=2i26483lntfst46vo2jldtouh4 [Thu Feb 01 15:07:21.605992 2018] [:error] [pid 14428] [client 192.168.1.6:64836] PHP Strict Standards: Non-static method SmartSieve::getConf() should not be called statically, assuming $this from incompatible context in /usr/clearos/framework/htdocs/smartsieve/lib/SmartSieve.lib on line 483, referer: https://router.moorsbroadband.net:81/smartsieve/login.php?SmartSieve=2i26483lntfst46vo2jldtouh4 [Thu Feb 01 15:07:21.606004 2018] [:error] [pid 14428] [client 192.168.1.6:64836] PHP Strict Standards: Non-static method SmartSieve::getConf() should not be called statically, assuming $this from incompatible context in /usr/clearos/framework/htdocs/smartsieve/lib/SmartSieve.lib on line 485, referer: https://router.moorsbroadband.net:81/smartsieve/login.php?SmartSieve=2i26483lntfst46vo2jldtouh4 [Thu Feb 01 15:07:21.606018 2018] [:error] [pid 14428] [client 192.168.1.6:64836] PHP Strict Standards: Non-static method SmartSieve::getConf() should not be called statically, assuming $this from incompatible context in /usr/clearos/framework/htdocs/smartsieve/lib/SmartSieve.lib on line 489, referer: https://router.moorsbroadband.net:81/smartsieve/login.php?SmartSieve=2i26483lntfst46vo2jldtouh4 [Thu Feb 01 15:07:21.606156 2018] [:error] [pid 14428] [client 192.168.1.6:64836] PHP Strict Standards: Non-static method SmartSieve::getConf() should not be called statically, assuming $this from incompatible context in /usr/clearos/framework/htdocs/smartsieve/lib/SmartSieve.lib on line 490, referer: https://router.moorsbroadband.net:81/smartsieve/login.php?SmartSieve=2i26483lntfst46vo2jldtouh4 [Thu Feb 01 15:07:21.606167 2018] [:error] [pid 14428] [client 192.168.1.6:64836] PHP Strict Standards: Non-static method SmartSieve::getConf() should not be called statically, assuming $this from incompatible context in /usr/clearos/framework/htdocs/smartsieve/lib/SmartSieve.lib on line 491, referer: https://router.moorsbroadband.net:81/smartsieve/login.php?SmartSieve=2i26483lntfst46vo2jldtouh4 [Thu Feb 01 15:07:21.606177 2018] [:error] [pid 14428] [client 192.168.1.6:64836] PHP Strict Standards: Non-static method SmartSieve::getConf() should not be called statically, assuming $this from incompatible context in /usr/clearos/framework/htdocs/smartsieve/lib/SmartSieve.lib on line 492, referer: https://router.moorsbroadband.net:81/smartsieve/login.php?SmartSieve=2i26483lntfst46vo2jldtouh4 [Thu Feb 01 15:07:21.606203 2018] [:error] [pid 14428] [client 192.168.1.6:64836] PHP Strict Standards: Only variables should be assigned by reference in /usr/clearos/framework/htdocs/smartsieve/lib/SmartSieve.lib on line 492, referer: https://router.moorsbroadband.net:81/smartsieve/login.php?SmartSieve=2i26483lntfst46vo2jldtouh4
Note: The line numbers may bot be right, as I have already extensively hacked the scripts to try to debug what is going on.
I started hacking because I am getting strange behaviour during authentication - once starttls has been called, and the capabilities returned (again), the AUTHENTICATE "PLAIN" {32+} followed by the base64 key has been sent, the code is receiving the response to a CAPABILITY request (even though none has been sent). I put a hack in here to use up the response, and now I can get as far as the main.php page, which just returns error 500. But no log messages (aside from the above).
Adding logging reveals it has entered the script, and returned from checkAuthentication(), but got no further.
Is there any hope of getting this working, or is there another, more recent, implementation?
Thanks,
Nikki