VMware Images:
|
Virtual Users And Domains With Postfix, MailScanner, Mailwatch & MySQL On CentOS 5.1 - Page 2
7 Mailwatch7.1 Needed Packageyum -y install php-gd
7.2 Get MailwatchPlease have a look at http://mailwatch.sourceforge.net to find out which is the latest version. When I was writing this howto, it was version 1.04. cd /tmp/
7.3 Mailwatch DatabaseFirst we create and populate the mailwatch database. mysql -p < /tmp/mailwatch-1.0.4/create.sql Next open a MySQL shell. mysql -u root -p Create the MySQL user for the database. GRANT ALL ON mailscanner.* TO mailwatch@localhost IDENTIFIED BY '%sql_user_password%'; After that we have to insert the account data from above into some files. vi /tmp/mailwatch-1.0.4/MailWatch.pm my($db_user) = 'mailwatch'; mv /tmp/mailwatch-1.0.4/MailWatch.pm /usr/lib/MailScanner/MailScanner/CustomFunctions/ vi /var/www/html/mailscanner/conf.php.example define(DB_USER, 'mailwatch'); mv /var/www/html/mailscanner/conf.php.example /var/www/html/mailscanner/conf.php vi /tmp/mailwatch-1.0.4/SQLBlackWhiteList.pm my($db_user) = 'mailwatch'; mv /tmp/mailwatch-1.0.4/SQLBlackWhiteList.pm /usr/lib/MailScanner/MailScanner/CustomFunctions/
7.4 Mailwatch Web AdministratorNow open a MySQL shell with the mailwatch MySQL user. mysql mailscanner -u mailwatch -p Create the web admin account. INSERT INTO users VALUES ('%web_user_username%',md5('%web_user_password%'),'%web_user_name%','A','0','0','0','0','0');
7.5 Mailwatch VHostCreate a vhost like this: <VirtualHost 192.168.0.110:80> Afterwards move the needed files for the webinterface to the right place ... mv mailwatch-1.0.4/mailscanner/ /var/www/html/ ... and change the ownership. chown -R apache:apache /var/www/html/mailscanner/
7.6 Spamassassin Configurationvi /etc/MailScanner/spam.assassin.prefs.conf Change: #bayes_path /etc/MailScanner/bayes/bayes To: bayes_path /var/spool/MailScanner/spamassassin/bayes And modify the directory permissions: chown postfix:apache /var/spool/MailScanner/spamassassin/ /var/spool/MailScanner/spamassassin/bayes_* Test the spamassassin configuration. spamassassin -D -p /etc/MailScanner/spam.assassin.prefs.conf --lint You should see lines like the following in the output: dbg: config: using "/etc/MailScanner/spam.assassin.prefs.conf" for user prefs file
7.7 GeoIP BugfixIn order that the geoip database update in the Mailwatch webinterface will work we have to fix a little bug. vi /var/www/html/mailscanner/geoip_update.php Change: dbquery("LOAD DATA INFILE '".$base.'/'.$file2."' INTO TABLE geoip_country FIELDS TERMINATED BY ',' ENCLOSED BY '\"'"); To: dbquery("LOAD DATA LOCAL INFILE '".$base.'/'.$file2."' INTO TABLE geoip_country FIELDS TERMINATED BY ',' ENCLOSED BY '\"'");
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning
Learn benefits of Simpana software.
View the Gartner Video




print: 

Recent comments
16 hours 55 min ago
17 hours 50 min ago
21 hours 12 min ago
1 day 2 hours ago
1 day 2 hours ago
1 day 10 hours ago
1 day 10 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 15 hours ago