9 messages in net.sourceforge.lists.courier-maildrop[maildropl] Bounce email in .mailfilter
FromSent OnAttachments
Christian LerrahnJun 13, 2005 7:48 am 
Sam VarshavchikJun 13, 2005 8:13 am 
Casey Allen ShobeJun 16, 2005 3:39 pm 
Sam VarshavchikJun 16, 2005 4:23 pm 
moussJun 16, 2005 4:50 pm 
Casey Allen ShobeJun 17, 2005 1:14 am 
Jure KorenJun 17, 2005 1:28 am 
Tony EarnshawJun 17, 2005 2:41 am 
Sam VarshavchikJun 17, 2005 6:56 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] Bounce email in .mailfilterActions...
From:Christian Lerrahn (mail@penpal4u.net)
Date:Jun 13, 2005 7:48:32 am
List:net.sourceforge.lists.courier-maildrop

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