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/