Chapter 25 . Running a (Web server) Mail Server 681
Chapter 25 . Running a Mail Server 681 You ll be asked a number of questions about how ClamAV should be configured. Here s how to answer them: Virus update method This is the method that freshclam (part of ClamAV) will use to download updated virus databases. The recommended option is to run freshclam as a daemon. Local database mirror site This is the site that freshclam will retrieve the virus information updates from. The second part of the site is the two-letter country code. Select your country code or that of a nearby country if yours isn t available. HTTP proxy information Do not enter anything here unless you are required to use a proxy server to access Web servers. If your connection is suitable for running a mail server, then you probably don t need to use a proxy server. Notify clamd after updates Select yes here. 2. Add the clamav user to the Debian-exim group and restart the ClamAV daemon. This allows the ClamAV daemon access to read the files in Exim s mail queue: # gpasswd -a clamav Debian-exim # invoke-rc.d clamav-daemon restart 3. Replace the report template used by SpamAssassin with one that will fit more easily in a message header. Use a text editor to add these lines to the end of /etc/spamassassin/local.cf: clear_report_template report _YESNO_, score=_SCORE_, required=_REQD_, summary= report _SUMMARY_ 4. Configure the SpamAssassin background daemon to run automatically and to not attempt to create preference files for users. Change the following options in /etc/default/spamassassin: ENABLED=1 OPTIONS= –max-children 5 5. Start the SpamAssassin daemon: # invoke-rc.d spamassassin start 6. Create the entries that will be included in Exim s ACL (Access Control List) for scanning message data. Use a text editor to create a file named /etc/exim4/ acl_check_data_local that contains the following: deny message = $malware_name detected in message demime = * malware = *
We recommend cheap and reliable webhost to host and run your web applications: Coldfusion Web Hosting services.