Guide updated on 29th of February 2016

Enabling web tools

In the two previous section, we 've installed 2 useful web tools (vqadmin and qmailadmin). We'll now enabling it ...

You first need to create appropriate name record in your DNS system (CNAME or A record). I advice you to create the alias mailadmin.yourdomain.tld pointing to your server IP. Whatever is your choice, this name should NOT BE THE SAME as your server hostname.

Then, create a virtual host corresponding to this new name record. Create the file /etc/apache2/sites-available/mailadmin.yourdomain.tld as following :

<VirtualHost *:80>
        ServerAdmin your email adress
        DocumentRoot /var/www/mail
        ServerName mailadmin.yourdomain.tld
        Options -Indexes
        ErrorLog /var/log/apache2/mailadmin.yourdomain.tld-error.log
        CustomLog /var/log/apache2/mailadmin.yourdomain.tld-access.log common

        <Directory /var/www/mail/cgi-bin/>
                Options ExecCGI FollowSymLinks -Indexes
                ForceType cgi-script
                AllowOverride All
                Order allow,deny
                Allow from all
        </Directory>

        <Directory /var/www/mail/cgi-bin/vqadmin/>
                deny from all
                Options ExecCGI -Indexes
                AllowOverride All
                Order deny,allow
        </Directory>

        <Directory /var/www/mail/qmailadmin/>
                Options -Indexes
                Order allow,deny
                Allow from all
        </Directory>

        <Directory /var/www/mail/cgi-bin/images/>
                ForceType Off
                Options -Indexes
                Order allow,deny
                Allow from all
        </Directory>

        <Directory /var/www/mail/images/qmailadmin/>
                ForceType Off
                Options -Indexes
                Order allow,deny
                Allow from all
        </Directory>

        <Directory /var/www/mail/images/vqadmin/>
                ForceType Off
                Options -Indexes
                Order allow,deny
                Allow from all
        </Directory>
</VirtualHost>


a2ensite mailadmin.yourdomain.tld
service apache2 reload

We finally can test our web interfaces ...

Point your browser on http://mailadmin.yourdomain.tld/cgi-bin/vqadmin/vqadmin.cgi to test vqadmin (login: admin and the password you had chosen in step 7)

Point your browser on http://mailadmin.yourdomain.tld/cgi-bin/qmailadmin to test qmailadmin

Remove installed MTA


Users comments
Color Coded Qmail Installation Key
  Regular Black Text     Qmail installation notes and summaries by the author.
  Bold Black Text     Commands to be run by you, the installer.
  Bold/Regular Red Text    Vital and/or critical information.
  Regular Blue text     Denotes helpful tips and hints or hyperlinks.
  Regular Orange Text     Command line output.
  Bold/Regular green text     Denotes the contents of a file or script.