:: What is DBMA
DBMail is an open source, Unix IMAP/POP3 mail storage and retrieval system which together with an MTA (Mail Transfer Agent) like Postfix enables vastly scalable mail systems with SQL database (RDBMS) storage (i.e.: MySQL, PostgreSQL) and retrieval of all e-mail and user data. – dbma
:: How to install DBMail Administrator
+ Download and extract
|
1 2 |
wget http://dbma.ca/DBMA_SQL_V2.tar.gz
tar -xzf DBMA_SQL_V2.tar.gz -C /var/www |
+ change permission
|
1 2 |
chmod 777 /var/www/dbmailadministrator
chmod 755 /var/www/dbmailadministrator/*.cgi |
+ installing Perl Modules
|
1 2 3 4 5 6 |
perl -MCPAN -e shell
CPAN> install Digest::MD5
CPAN> install Bundle::libnet
CPAN> install DBI
CPAN> install DBD::mysql
CPAN> install CGI |
+ setup vhost / httpd.conf
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# enable perl script on httpd
AddHandler cgi-script .cgi .pl
# change / setup on your vhost
<VirtualHost *:80>
DocumentRoot /var/www/dbmailadministrator
ServerName sub.domainname.com
<Directory "/var/www/dbmailadministrator/">
AllowOverride None
Options ExecCGI MultiViews
Order allow,deny
Allow from all
AuthUserFile /var/www/dbmailadministrator/.htpasswd
AuthGroupFile "apache"
AuthType Basic
AuthName "Enter username and password."
require valid-user
order allow,deny
</Directory>
</VirtualHost> |
+ create .htpasswd
|
1 |
htpasswd -c /var/www/dbmailadministrator/.htpasswd useradmin |
+ restarting httpd
|
1 |
/etc/init.d/httpd restart |
+ testing
open your DBMail Administrator using your browser on
|
1 |
http://sub.domainname.com |
and setup your DBMail Administrator info.