Installing Maia Mailguard On Debian Lenny (Virtual Users/Domains With Postfix/MySQL)
|
Submitted by falko (Contact Author) (Forums) on Tue, 2010-07-06 16:19. :: Anti-Spam/Virus | Debian | Email | Postfix
Installing Maia Mailguard On Debian Lenny (Virtual Users/Domains With Postfix/MySQL)Version 1.0 This guide explains how to install Maia Mailguard, a spam and virus management system, on a Debian Lenny mailserver. Maia Mailguard is a web-based interface and management system based on the popular amavisd-new email scanner and SpamAssassin. Written in Perl and PHP, Maia Mailguard gives end-users control over how their mail is processed by virus scanners and spam filters, while giving mail administrators the power to configure site-wide defaults and limits. I do not issue any guarantee that this will work for you!
1 Preliminary NoteThis tutorial is based on Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Debian Lenny), so you should have this set up already. If your mail setup is different, this tutorial might not work out for you, or you might have to make some adjustments. My server has the hostname server1.example.com and the IP address 192.168.0.100. I will install Maia's web interface in Debian's default Apache document root, /var/www, and I will use www.example.com to access the web interface. You will have to adjust this if your document root and your domain differ.
2 Downloading Maia MailguardMaia Mailguard can be downloaded from SVN only, so we have to install Subversion first: aptitude install subversion I want to download the sources to /usr/src/maia: mkdir /usr/src/maia Open a browser and go to https://www.maiamailguard.com/svn/branches/1.0 to find out what the latest revision is - in my case it was 1495. Then start the download as follows: svn -r 1495 checkout https://www.maiamailguard.com/svn/branches/1.0 (Make sure you replace 1495 with the latest revision.)
3 Creating A Database For Maia MailguardNext log into MySQL... mysql -u root -p ... and create a database called maia: CREATE DATABASE maia; Leave the MySQL shell afterwards: quit; Import Maia's SQL dump into the empty maia database: cd /usr/src/maia/1.0/ Then log into MySQL again... mysql -u root -p maia ... and create a MySQL user called amavis: GRANT CREATE, DROP, ALTER, SELECT, INSERT, UPDATE, DELETE ON maia.* TO amavis@localhost IDENTIFIED BY 'passwd'; FLUSH PRIVILEGES; quit; (You can replace passwd with a password of your choice, but keep in mind that you have to use that password later on in the Maia configuration!) Next make sure you have a big enough value for max_allowed_packet in your /etc/mysql/my.cnf (in the [mysqld] section). This setting determines the size of the largest mail item you'll be able to process with Maia, so make sure to set this value large enough to accommodate your needs. vi /etc/mysql/my.cnf
Restart MySQL if you have changed the value of max_allowed_packet: /etc/init.d/mysql restart
4 Installing Maia's Scripts And TemplatesThe home directory of the amavis user on Debian Lenny is /var/lib/amavis, and that's where we create a subdirectory called maia. In that subdirectory we will place Maia's scripts and templates: mkdir /var/lib/amavis/maia cp -pfr /usr/src/maia/1.0/scripts/* /var/lib/amavis/maia/scripts chown -R amavis /var/lib/amavis/maia
5 Configuring MaiaNext we rename /usr/src/maia/1.0/maia.conf.dist to /etc/maia.conf: cp /usr/src/maia/1.0/maia.conf.dist /etc/maia.conf Open /etc/maia.conf and adjust the following settings: vi /etc/maia.conf
Make sure you fill in the correct password for the MySQL user amavis in the $password line. Also fill in the correct URL in the $base_url line.
|




Recent comments
20 hours 11 min ago
1 day 1 hour ago
1 day 2 hours ago
1 day 3 hours ago
1 day 5 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 12 hours ago
2 days 1 hour ago
2 days 3 hours ago