Email Level SquirrelMail Plugin

Hello,

There are not any simple config options to hide it (at this time), but if you edit:
/var/www/html/squirrelmail/plugins/directadmin/functions.php

and find the function:
function directadmin_menuline_do()

Remove the last 2 lines of the function to hide the link.

And then delete the set_vacation.php file, since the same folder.

John
 
Hello,

Version 0.2 to replace ereg with preg_match, and replace split with explode to support php 5.3+:
Code:
cd /var/www/html/squirrelmail/plugins
wget http://files.directadmin.com/services/all/squirrelmail_plugin/directadmin-0.2.tar.gz
tar xvzf directadmin-0.2.tar.gz
chown -R webapps:webapps directadmin
cd ../config
./conf.pl
Plugins, select "directadmin", save/exit.

John
 
Hello,

Version 0.2 to replace ereg with preg_match, and replace split with explode to support php 5.3+:
Code:
cd /var/www/html/squirrelmail/plugins
wget http://files.directadmin.com/services/all/squirrelmail_plugin/directadmin-0.2.tar.gz
tar xvzf directadmin-0.2.tar.gz
chown -R webapps:webapps directadmin
cd ../config
./conf.pl
Plugins, select "directadmin", save/exit.

John

Hi John,

Your work is awesome. I just would like to check with you how come im getting the error below on my squirrelmail plugins when trying to change the password and set vacation massage?
 
Since the upgrade to DA 1.45.0 the Squirrel Mail plugin no longer works for vacation messages. I get the following in the browser "Unable to set vacation message:" and in the error.log

2014:03:14-20:37:40: httpd header lentgh (4096) is too big

Thanks,

Kevin
 
Since the upgrade to DA 1.45.0 the Squirrel Mail plugin no longer works for vacation messages. I get the following in the browser "Unable to set vacation message:" and in the error.log

2014:03:14-20:37:40: httpd header lentgh (4096) is too big

Thanks,

Kevin



I got version 0.2 working correctly. Wonder if the bug happens only on latest version 0.3
 
I got version 0.2 working correctly. Wonder if the bug happens only on latest version 0.3

I was running 0.2. I tried 0.3 and the same issue. Seeing this on multiple servers.
 
Hello,

After some communication with one affected client, it was deemed a few bugs when the force_hostname directadmin.conf option is used with the APIs.

1) If the force_hostname option is set in the direcatadmin.conf, any non-CMD_API requests will be redirected.
The current workaround is to edit the following file:
Code:
/var/www/html/squirrelmail/plugins/directadmin/include/config.php
and change the localhost to be
Code:
$da_host="[B]your.forcedhostname.com[/B]";
I've not actually tested this workaround, but assuming the httpsocket class sets this Host header, then it should work.


2) As for more permanent fixes, they all require the latest version of each other.. where DA 1.45.1 won't be released for a while, but they binaries are currently available in the pre-release section if you need them now.

  • A 0.4 version of the plugin is available, but it also requires the updated DA binaries.. so if you don't want to update the DA binaries, then use the above workaround would be the solution.
  • Lastly, I've added a 2.7.2 version of the httpsocket class, which has a check for a new DA header (only in 1.45.1+) that will more easily let you know if you need to set $da_ssl=true;. Custom messages can be set in the httpsocket class via a new function, in order to give a customized message to the User for the given script that is using the class.
  • I've added CMD_API versions of the vacation/password/quota commands for 0.4 into DA 1.45.1, so that the force_hostname redirect is not used.. as CMD_API calls are exempt (which is why 1.45.1 is needed with 0.4)

John
 
The option 1 to change da_host doesn't work. I installed the pre-release binaries and the 0.4 plugin and it is working now :)

Thanks for the quick fix.

Kevin
 
Version 0.5 of this plugin has been released.
It's just swap to use httpsocket class 3.0.2 which uses curl.
The reason for the change is that php 5.6+ runs into issues with SSL certificates, similar to the change for SM plug 0.4, but the 3.0.2 class now uses curl which has many useful switches (unlike the built-in php socket functions), which let us shut off those certificate checks, so it just works. As it's a localhost connection, certificate validity is not a major concern.

It's on files1, and will sync to the other mirrors within 24 hours.

John
 
Back
Top