Exim message_size

ju5t

Verified User
Joined
Sep 14, 2005
Messages
409
Location
Amsterdam
We normally expect spam e-mails to be below 500k in size. Large e-mails are being scanned now as well, being an extra hog on system resources.

Now we aren't that good in the configuration of Exim, so I was wondering if anyone knew how to implement this in DirectAdmin.

I know the condition should look like:

Code:
condition = ${if >={$message_size}{500k}{yes}{no}}

But that's about it. Any help would be appreciated. Thanks.
 
Interesting that it's in that knowledgebase article but it's not in any of my archive copies of exim.conf (that I used in my development of SpamBlocker).

Please try adding it as shown in the knowledgebase article and post if it works, and we'll add it to the next versions of SpamBlocker3-beta (due out within 24 hours).

Jeff
 
It seems to be working fine. Tested it with a 1MB attachment from a seperate server and the headers do not show it to be scanned.

spamcheck_director looks as follows now:

Code:
spamcheck_director:
  driver = accept
  condition = "${if and { \
                        {!def:h_X-Spam-Flag:} \
                        {!eq {$received_protocol}{spam-scanned}} \
                        {!eq {$received_protocol}{local}} \
                        {exists{/home/${lookup{$domain}lsearch{/etc/virtual/domainowners}{$value}}/.spamassassin/user_prefs}} \
                        {<{$message_size}{100k}} \
                } {1}{0}}"
  retry_use_local_part
  transport = spamcheck
  no_verify

The 100k can be increased of course. I think that's a good idea in fact with the PDF spam coming up.
 
Hey,

It is in the 2.1.1 version, but apparently not in any of the others...

We have been on 2.1.1 for a while and have not seen any problems.

David
 
Back
Top