Enabling roundcube plugins on i-mscp

The list of available plugins is at:

l /var/www/imscp/gui/public/tools/webmail/plugins/ | awk '{print $9;}'

acl
additional_message_headers
archive
autologon
database_attachments
debug_logger
emoticons
enigma
example_addressbook
filesystem_attachments
help
hide_blockquote
http_authentication
imscp_pw_changer
jqueryui
managesieve
markasjunk
new_user_dialog
new_user_identity
newmail_notifier
password
redundant_attachments
serverinfo
show_additional_headers
squirrelmail_usercopy
subscriptions_option
userinfo
vcard_attachments
virtuser_file
virtuser_query

Plugins are activated if the name of their directory is added to an array in the roundcube configuration file located at /var/www/imscp/gui/public/tools/webmail/config/main.inc.php

By default, i-mscp activates only one of those plugins: imscp_pw_changer

To activate the plugins additional_message_headers and archive, I would change the line:

$rcmail_config[‘plugins’] = array(‘imscp_pw_changer’);

To:

$rcmail_config[‘plugins’] = array(‘imscp_pw_changer’,’additional_message_headers’,’archive’);

To get the linenumber of this line, just type:

grep -in 'plugins' /var/www/imscp/gui/public/tools/webmail/config/main.inc.php

Just restart apache2 and refresh your browser and you will see that the plugin has been activated. The complete list of plugins can be found at http://trac.roundcube.net/wiki/Plugin_Repository

To add a new plugin, extract the downloaded archive to its own directory at /var/www/imscp/gui/public/tools/webmail/plugins and add its name to the array list in /var/www/imscp/gui/public/tools/webmail/config/main.inc.php

 


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.

Completely remove sendmail

At times it was noted that sendmail on my Debian system was not getting completely removed.

Thing tried:

apt-get remove sendmail*

It worked at times, and didnt at others.

But I were to try:

netstat -tulpn | grep :25
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      27878/sendmail: MTA

I’d find it again.

To find where it came from, I did:

 ls -l /proc/27878/
total 0
-r-------- 1 root root 0 Mar  5 12:47 auxv
-r--r--r-- 1 root root 0 Mar  5 11:58 cmdline
-rw-r--r-- 1 root root 0 Mar  5 12:47 coredump_filter
-r--r--r-- 1 root root 0 Mar  5 12:47 cpusete
lrwxrwxrwx 1 root root 0 Mar  5 12:47 cwd -> (deleted) /var/spool/mqueue
-r-------- 1 root root 0 Mar  5 12:47 environ
lrwxrwxrwx 1 root root 0 Mar  5 11:58 exe -> (deleted) /usr/lib/sm.bin/sendmail

Note that it shows /usr/lib/sm.bin/sendmail

However there is no /usr/lib/sm.bin, but there sure is a /usr/lib/sendmail

So I deleted them, and restarted the apache2 server.

 service apache2 restart
[ ok ] Restarting web server: apache2 ... waiting .
[email protected]:~/imscp# netstat -tulpn | grep :25
[email protected]:~/imscp# netstat -tulpn | grep 'sendmail'

Another thing that worked once was doing this:

chmod ugo=rw /etc/init.d/sendmail

In other words, I prevented it from running. But in the earlier instance there was no entry for sendmail under init.d

 


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.