On Sat, 13 May 2000 [EMAIL PROTECTED] wrote:

> 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.

>From man qmail-smtpd:
CONTROL FILES
[...]
databytes
               Maximum number of bytes allowed in a message, or 0 for
               no limit.  Default: 0.  If a message exceeds this
               limit, qmail-smtpd returns a permanent error code to
               the client; in contrast, if the disk is full or qmail-
               smtpd hits a resource limit, qmail-smtpd returns a
               temporary error code.

               databytes counts bytes as stored on disk, not as
               transmitted through the network.  It does not count the
               qmail-smtpd Received line, the qmail-queue Received
               line, or the envelope.

               If the environment variable DATABYTES is set, it
               overrides databytes.

Notice the last paragraph! this can make it possible to have selective
rules for different IP-ranges.


-- 
Thorkild

Reply via email to