QMAILQUEUE and qmail-qfilter should do the trick. They're both listed 
on the qmail.org web page.

jon

At 2:08 AM +0300 5/13/00, [EMAIL PROTECTED] wrote:
>thank you for this one. However, my problem is not only the size of
>the message but as well as its contents. I want to deny also any
>messages that contain .EXE files to avoid virus spread. So actually I
>have to filter the message in two ways - the size and its content.
>
>>>
>>>  Hello !
>>>  I'm rather a beginner not only with QMAIL but with unix as a whole. I
>>>  just wanted to ask if anyone can help - something I didn't find
>>>  anywhere.
>>>  I want to filter some incoming messages - both local and remote.
>>>  However, I want to filter them as they are coming, not when they have
>>>  come and have been placed in the queue. The whole idea is to prohibit
>>>  big attachments and to deny any mail with huge attachments before it
>>>  has arrived - for the sake of saving bandwidth, so I want to reject as
>>>  it comes before its being delivered already. I hope this makes sense.
>>>
>>>  Thank you very much,
>>>  Peter
>>
>>put your size limit in /var/qmail/control/databytes, like this:
>>
>>su
>>echo 32700 > /var/qmail/control/databytes
>>
>>This will cause excessive messages to get bounced.
>>
>>I don't know if qmail-smtpd looks at that file or not, if not you
>>could patch it to look at that file, or patch it to abruptly drop
>>the connection once it has received that much data.  Abruptly dropping
>>connections would cause retries and so forth, though, while bounce messages
>>will retrain the people sending the attachments to do something else so
>>their messages can get through.
>>
>>
>>
>>--
>>                           David Nicol 816.235.1187 [EMAIL PROTECTED]
>>                             You discover uranium! collect $240,000
>>

Reply via email to