More Newbie Help

Matthias Andree matthias.andree at gmx.de
Fri Jul 11 02:21:16 CEST 2003


adi <adi at acme.com> writes:

> On Thu, Jul 10, 2003 at 01:43:30PM +0200, Matthias Andree wrote:
>> 1. "exec <msg.$$"   opens the file for reading, assigns file descriptor #0.
>> 
>> 2. "rm -f msg.$$"   removes the file name, but the contents remain
>>                     available because the file is still open.
>
> on a rather OOT matter, is it a good idea to check the
> size of the message before give it to bogofilter
> (i.e skip calling bogofilter if the message size greater
> than x KB).  one could easily get the size of the message
> using $size macro of pipe daemon.

You can do that, but usually, big messages contain attachments, and
bogofilter doesn't look at attachments, so it's not as bad as you may
think.

Postfix also has a $message_size_limit variable (set it in main.cf),
default 10,000 kByte. If the message is bigger than that, Postfix
rejects it.

> does bogofilter would gracefully handle this issue internally?

If you check the size in your script, bogofilter isn't even involved, so
it has no means to express his objections :-)

-- 
Matthias Andree




More information about the Bogofilter mailing list