Prev | Current Page 1240 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"

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
NOTE
678
Running Servers Part V
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 = *
warn message = X-Spam-Score: $spam_score ($spam_bar)
condition = ${if <{$message_size}{80k}{1}{0}}
spam = nobody:true/defer_ok
warn message = X-Spam-Status: $spam_report
condition = ${if <{$message_size}{80k}{1}{0}}
spam = nobody:true/defer_ok
deny message = Spam score too high ($spam_score)
condition = ${if <{$message_size}{80k}{1}{0}}
spam = nobody:true/defer_ok
condition = ${if >{$spam_score_int}{120}{1}{0}}
The first block rejects messages that contain viruses or other malware, and the second
and third add headers to messages indicating whether or not SpamAssassin considers
them spam.


Pages:
1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252