. wrote:
put a size limit on the mails to be checked for SPAM (in /etc/exim4/exim4.conf), like 10kb or 100kb:acl_check_data: # Deny if the message contains a virus. Before enabling this check, you # must install a virus scanner and set the av_scanner option above. # discard malware = * demime = *log_message = virus%$tod_log%<$return_path>%<$recipients>%($malware_name)# Add headers to a message if it is judged to be spam. Before enabling this, # you must install SpamAssassin. You may also need to set the spamd_address# option above. # warn condition = ${if < {$message_size}{100k} } spam = spamd message = X-Spam_score: $spam_score\n\ X-Spam_score_int: $spam_score_int\n\ X-Spam_bar: $spam_bar\n\ X-Spam_report: $spam_report # Accept the message. accept
Sorry, this also contains the setup for scanning for viruses! It should look like this:
acl_check_data:
# Add headers to a message if it is judged to be spam. Before enabling this,
# you must install SpamAssassin. You may also need to set the spamd_address
# option above.
#
warn condition = ${if < {$message_size}{100k} }
spam = spamd
message = X-Spam_score: $spam_score\n\
X-Spam_score_int: $spam_score_int\n\
X-Spam_bar: $spam_bar\n\
X-Spam_report: $spam_report
# Accept the message.
accept
GH