The final block checks $spam_score_int (the spam score multiplied by
10) and rejects the message if it is greater than 120.
The /defer_ok in the last three blocks tells Exim that it is okay to continue processing
in the event that the SpamAssassin daemon could not be contacted. You can remove it if
you would prefer to have the server return a temporary failure code in such cases. You
can also add /defer_ok to the end of the malware = * line if you want processing to
continue in the event that a message cannot be scanned by ClamAV.
679
Running a Mail Server 25
7. Tell Exim which virus scanner to use and how to connect to SpamAssassin. Use a text
editor to create a file named /etc/exim4/conf.d/main/10_exim4-
exiscan_acl_options that contains the following:
av_scanner = clamd:/var/run/clamav/clamd.ctl
spamd_address = 127.0.0.1 783
CHECK_DATA_LOCAL_ACL_FILE = CONFDIR/acl_check_data_local
8. Tell Exim to load the new configuration:
# invoke-rc.d exim4 reload
All messages transmitted through your server should now be checked for viruses using ClamAV.
Additionally, messages less than 80 kilobytes will also be checked using SpamAssassin. This is a
good time to test the configuration again. Fixes for the problems that you are most likely to
encounter can be found in the next section.
Pages:
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253