13 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] conditionally bouncin...
FromSent OnAttachments
Payal RathodJul 1, 2005 2:12 am 
Tony EarnshawJul 1, 2005 3:58 am 
Payal RathodJul 1, 2005 4:41 am 
Payal RathodJul 1, 2005 5:07 am 
Tony EarnshawJul 1, 2005 5:12 am 
Sam VarshavchikJul 1, 2005 5:53 am 
Payal RathodJul 1, 2005 6:03 am 
Jasper SlitsJul 1, 2005 6:19 am 
Tony EarnshawJul 1, 2005 6:35 am 
Payal RathodJul 1, 2005 9:17 am 
moussJul 1, 2005 5:33 pm 
moussJul 1, 2005 5:33 pm 
moussJul 1, 2005 5:45 pm 
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:Re: [maildropl] conditionally bouncing a mailActions...
From:Tony Earnshaw (ton@billy.demon.nl)
Date:Jul 1, 2005 5:12:13 am
List:net.sourceforge.lists.courier-maildrop

fre, 01.07.2005 kl. 13.40 skrev Payal Rathod:

On Fri, Jul 01, 2005 at 12:55:08PM +0200, Tony Earnshaw wrote:

Yes, maildropfilter.html gives a lookup example under "if" and you may use it almost literally.

You mean this, if ( /^To: *!.*/ && lookup( $MATCH2, "badto.dat" )) { exit }

- Instead of dumping the message this way can I bounce it back to sender?

Yes.

How do I do that?

I already gave an example. TRY IT OUT FOR YOURSELF.

maildroprc:

if ( /^From: *!.*/ && lookup( $MATCH2, "/tmp2/badfrom.dat" ))

[...]

Wasn't this the example you suggested for the first query and the second one (that of bouncing) ?

Read my post again, this time carefully. I adapted the example in maildropfilter.html and tried out what I adapted.

2: You should be doing all of this at the MTA level and not at LDA

LDA ??? Well it is easier at LDA level, because I can put the config into .qmail file and use it for individual user. Checking size and domain for each user at SMTP level is more difficult.

Bouncing is generally a bad idea and can get your mailserver blacklisted by many domains very quickly if carried out to any extent. Google for "backscatter".

--Tonni