Hi,
I'm desperately trying to get maildrop to bounce an email based on its
size. What I've put in my .mailfilter is the following.
if ( $SIZE > 100000)
{
to "|/var/qmail/bin/bouncesaying 'Message too big'"
}
The detection of the size seems to work correctly but what I find in the
logs is
2005-06-10 14:02:55.259169500 status: local 2/10 remote 0/20
2005-06-10 14:02:55.332340500 delivery 220280: success: did_0+0+1/
2005-06-10 14:02:55.332346500 status: local 1/10 remote 0/20
2005-06-10 14:02:55.823625500 delivery 220281: success: Message_too_big/
maildrop:_error_writing_to_filter./did_0+0+1/
and the message will just be delivered. The strange thing is that the
error code of bouncesaying seems to be the same as the one vdelivermail
will throw if the email has to be bounced by vpopmail (code 100).
Nevertheless vdelivermail bounces work but the bouncesaying ones don't.
What am I doing wrong? How do I get maildrop to recognize this as failed
and hand over the error code 100 to qmail so that qmail bounces the email?
Christian