Hello List,
I got a strange problem, which I am unsure where it comes from.
acl_check_content is set up to not pass messages from intranet
hosts and those bigger then 500k to SpamAssassin. The intranet
part is working smooth, but it seems exim is ignoring the
message_size condition. When I send testmails of 2Mb from
outside, exim still passes them to SA and I have no clue why.
I wonder if I misunderstood anything or is there any problem
in my configuration?
Thanks in advance.
Sascha
Here's the acl listing:
acl_check_content:
warn message = X-Spam-Score: $spam_score ($spam_bar)
hosts = !+relay_from_hosts
condition = ${if <{$message_size}{500k}{1}{0}}
spam = nobody
warn message = X-Spam-Report: $spam_report
hosts = !+relay_from_hosts
spam = nobody
condition = ${if <{$message_size}{500k}{1}{0}}
condition = ${if >{$spam_score_int}{30}{1}{0}}
warn message = X-Spam-Flag: YES
hosts = !+relay_from_hosts
spam = nobody
condition = ${if <{$message_size}{500k}{1}{0}}
warn message = X-Spam-Category: DELETE
hosts = !+relay_from_hosts
spam = nobody
condition = ${if <{$message_size}{500k}{1}{0}}
condition = ${if >{$spam_score_int}{80}{1}{0}}
warn message = X-Spam-Category: REDIRECT
hosts = !+relay_from_hosts
spam = nobody
condition = ${if <{$message_size}{500k}{1}{0}}
condition = ${if >{$spam_score_int}{50}{1}{0}}
condition = ${if <{$spam_score_int}{80}{1}{0}}
warn message = X-Spam-Category: REPORT
hosts = !+relay_from_hosts
spam = nobody
condition = ${if <{$message_size}{500k}{1}{0}}
condition = ${if >{$spam_score_int}{40}{1}{0}}
condition = ${if <{$spam_score_int}{50}{1}{0}}
warn message = X-Spam-Category: INSPECT
hosts = !+relay_from_hosts
spam = nobody
condition = ${if <{$message_size}{500k}{1}{0}}
condition = ${if >{$spam_score_int}{30}{1}{0}}
condition = ${if <{$spam_score_int}{40}{1}{0}}
warn message = X-New-Subject: XX_SPAM_DELETE_XX (score $spam_score)
$h_Subject:
hosts = !+relay_from_hosts
spam = nobody
condition = ${if <{$message_size}{500k}{1}{0}}
condition = ${if >{$spam_score_int}{80}{1}{0}}
warn message = X-New-Subject: XX_SPAM_REDIRECT_XX (score $spam_score)
$h_Subject:
hosts = !+relay_from_hosts
spam = nobody
condition = ${if <{$message_size}{500k}{1}{0}}
condition = ${if >{$spam_score_int}{50}{1}{0}}
condition = ${if <{$spam_score_int}{80}{1}{0}}
warn message = X-New-Subject: XX_SPAM_REPORT_XX (score $spam_score)
$h_Subject:
hosts = !+relay_from_hosts
spam = nobody
condition = ${if <{$message_size}{500k}{1}{0}}
condition = ${if >{$spam_score_int}{40}{1}{0}}
condition = ${if <{$spam_score_int}{50}{1}{0}}
warn message = X-New-Subject: XX_SPAM_INSPECT_XX (score $spam_score)
$h_Subject:
hosts = !+relay_from_hosts
spam = nobody
condition = ${if <{$message_size}{500k}{1}{0}}
condition = ${if >{$spam_score_int}{30}{1}{0}}
condition = ${if <{$spam_score_int}{40}{1}{0}}
# finally accept all the rest
accept
--------------------------------------------------
Sascha Runschke
Netzwerk Administration
IT-Services
ABIT AG
Robert-Bosch-Str. 1
40668 Meerbusch
Tel.:+49 (0) 2150.9153.226
Mobil:+49 (0) 173.5419665
mailto:SRunschke@abit.de
http://www.abit.net
http://www.abit-epos.net
---------------------------------
Sicherheitshinweis zur E-Mail Kommunikation /
Security note regarding email communication:
http://www.abit.net/sicherheitshinweis.html