Suse Linux Enterprise Server 10 Mail Scanning Gateway Build Guide
Total Page:16
File Type:pdf, Size:1020Kb
SuSE Linux Enterprise Server 10 Mail Scanning Gateway Build Guide Written By: Stephen Carter [email protected] Last Modified 9. May. 2007 Page 1 of 96 Table of Contents Due credit.......................................................................................................................................................4 Overview........................................................................................................................................................5 System Requirements.....................................................................................................................................6 SLES10 DVD............................................................................................................................................6 An existing e-mail server..........................................................................................................................6 A Pentium class PC...................................................................................................................................6 Internet Access..........................................................................................................................................6 Internet Firewall Modifications.................................................................................................................7 Installation Summary.....................................................................................................................................8 How it all works.............................................................................................................................................9 The base SLES10 installation.....................................................................................................................10 Installing additional Software.................................................................................................................19 Perl modules.......................................................................................................................................19 Pear modules.......................................................................................................................................22 Re2c....................................................................................................................................................23 SuSE firewall configuration ........................................................................................................................24 Setting up postfix.........................................................................................................................................26 Setting up ClamAV......................................................................................................................................29 About amavisd-maia....................................................................................................................................31 Setting up MySQL.......................................................................................................................................32 Configure PHP5 / Apache2..........................................................................................................................36 Maia Mailguard installation.........................................................................................................................37 Download Maia Mailguard.....................................................................................................................37 Create the Maia database tables in MySQL............................................................................................37 Install the maintenance scripts and templates.........................................................................................37 Test dependencies for amavisd-maia and SA.........................................................................................40 Install the PHP scripts.............................................................................................................................40 Configure the PHP website.....................................................................................................................40 Test your PHP configuration...................................................................................................................41 Replace amavisd-new with a maia patched version................................................................................42 Generate your encryption key.................................................................................................................44 Load SpamAssassin rules into Maia Mailguard......................................................................................44 First time login........................................................................................................................................46 Internal authentication setup...............................................................................................................46 Super administrator registration.........................................................................................................47 Scheduling the maintenance scripts........................................................................................................53 Configure SpamAssassin and SARE ruleset updates..............................................................................54 Extending SpamAssassin with extra tests and MySQL support..................................................................56 Setting up razor2 agents..........................................................................................................................56 Install and setting up DCC......................................................................................................................59 Additional configuration of SpamAssassin..................................................................................................61 File locations...........................................................................................................................................61 Change settings in the standard local.cf configuration file.....................................................................61 Enabling an extra plugin - Country IP....................................................................................................63 Quick test to see if SA is working...........................................................................................................63 FuzzyOCR image spam plug-in..............................................................................................................64 Giflib-progs........................................................................................................................................64 Gifsicle................................................................................................................................................64 GNU Ocrad.........................................................................................................................................65 GOCR.................................................................................................................................................65 Page 2 of 96 Perl Modules.......................................................................................................................................65 First time Testing.........................................................................................................................................69 Check all processes start correctly..........................................................................................................69 Using the Mozilla Thunderbird e-mail client for testing.........................................................................70 First test e-mail........................................................................................................................................72 Testing virus and spam filtering..............................................................................................................74 Testing attachment filtering....................................................................................................................76 Testing bad header filtering.....................................................................................................................77 Testing oversized e-mails........................................................................................................................77 Testing Whitelists/Blacklists...................................................................................................................81 Testing maintenance scripts....................................................................................................................82 System clean up.......................................................................................................................................83 Backing it up................................................................................................................................................84 Upgrading to a newer version of Maia Mailguard.......................................................................................84