Qmailadmin Plugin

Qmailadmin plugin for Roundcube adds tabs to the Roundcube settings page, allowing the user to set their vacation message or change their password. Behind the scenes, it logs in to qmailadmin as that user to make the changes. Both vacation and password tabs can be individually disabled.

cd /extra/src
wget http://www.davidc.net/sites/default/files/qmailadmin-1.0.1.zip
unzip qmailadmin-1.0.1
mv qmailadmin /var/websites/mail/htdocs/roundcube/plugins/
chown -R nobody:nobody /var/websites/mail/htdocs/roundcube/plugins/qmailadmin

Add qmailadmin to $rcmail_config['plugins'] in /var/websites/mail/htdocs/roundcube/config/main.inc.php:

$rcmail_config['plugins'] = array('managesieve',"qmailadmin');

Qmailadmin with Lighttpd

Configure Qmailadmin to work with the Lighttpd webserver.

Lighttpd Configuration
With a basic Lighttpd server configured as per this site's instructions and running under daemontools, create a file /service/lighttpd/root/qmailadmin.inc to hold the server options for Qmailadmin:

alias.url = (
"/cgi-bin/qmailadmin" => "/var/websites/mail/cgi-bin/qmailadmin",
"/images/qmailadmin" => "/var/websites/mail/htdocs/images/qmailadmin"

$HTTP["url"] =~ "^/cgi-bin/qmailadmin" {
cgi.assign = ( "/var/websites/mail/cgi-bin/qmailadmin" => "" )


Qmailadmin with Apache

Configuring Qmailadmin to work with the Apache webserver

Apache virtual host configuration
Edit /usr/local/apache2/conf/extra/httpd-vhosts.conf and add a virtualhost directive for Qmailadmin and webmail:

ServerAdmin postmaster@example.com
DocumentRoot /var/websites/mail/htdocs
ServerName mail.example.com

Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all

ScriptAlias /cgi-bin/ "/var/websites/mail/cgi-bin/



Rather than having to remember the long URL, your users can access qmailadmin through SquirrelMail with the qmailadmin_login plugin.

Download the plugin:

cd /var/websites/webmail/squirrelmail/plugins
wget http://www.squirrelmail.org/plugins/qmailadmin_login-1.1-1.4.3.tar.gz
tar zxvf qmailadmin_login-1.1-1.4.3.tar.gz

Enable it in the Squirrelmail config:


The login to qmailadmin can be found in Squirrelmail as Account Administration in the Options menu.


Any time you reconfigure and install vpopmail you will need to rebuild and install QmailAdmin. QmailAdmin statically links libvpopmail, so you need to recompile it whenever libvpopmail changes.

Install Apache
Since it is a web-based program, Qmailadmin requires a web server such as Apache or Lighttd be installed

Autorespond is used by QmailAdmin for "Mail Robots" and vacation messages.

cd /extra/src


Subscribe to RSS - qmailadmin

Recent Updates

  • 2 years 1 month ago
  • 2 years 1 month ago
  • 2 years 1 month ago
    php 8.x
  • 2 years 2 months ago
  • 2 years 2 months ago
    Drop Centos 5/6 stuff