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 :
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>
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
Users comments
