PDA

View Full Version : Exim message_size


getUP
09-03-2007, 04:52 AM
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:

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

But that's about it. Any help would be appreciated. Thanks.

getUP
09-03-2007, 06:02 AM
It seems that http://www.directadmin.com/help/item.php?id=36 has it.
Why has it been removed later on?

jlasman
09-03-2007, 02:17 PM
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

getUP
09-04-2007, 02:58 PM
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:


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.

skruf
09-04-2007, 03:40 PM
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