Download the rpm from topdog-software.com,
Now proceed and install the rpm:
# yum --nogpgcheck localinstall baruwa-<version>.noarch.rpm
Update the database:
# mysql -p <mailwatch_database> < /usr/share/doc/baruwa-$(rpm --qf %{VERSION} -q baruwa)/baruwa-update.sql
Set the privileges for the new tables:
mysql> GRANT ALL ON <mailwatch_database>.* TO
mysql> <mailwatch_user>@localhost IDENTIFIED BY '<mailwatch_password>';
mysql> flush privileges;
Edit /usr/lib/python2.6/site-packages/baruwa/settings.py and set the mysql database details:
DATABASE_ENGINE = 'mysql'
DATABASE_NAME = '<mailwatch_database>'
DATABASE_USER = '<mailwatch_user>'
DATABASE_PASSWORD = '<mailwatch_password>'
DATABASE_HOST = 'localhost'
If your MailScanner config file is not located in the standard location (/etc/MailScanner/MailScanner.conf) then edit the baruwa_settings.py file which is in the same directory as the settings.py file and set:
MS_CONFIG = '/etc/MailScanner/MailScanner.conf'
Setup Web server
Edit your apache configurations to enable virtual hosting if not enabled already. Then set the correct hostname in /etc/httpd/conf.d/baruwa.conf:
# change to your hostname
ServerName baruwa-alpha.local
Make sure mod_wsgi is enabled, uncomment the following line in /etc/httpd/conf.d/wsgi.conf:
LoadModule wsgi_module modules/mod_wsgi.so
Restart apache and point your browser to the hostname url.