4 messages in net.sourceforge.lists.courier-usersRE: [courier-users] mail queue manage...
FromSent OnAttachments
Bowie BaileyDec 29, 2004 10:58 am 
Sam VarshavchikDec 29, 2004 3:24 pm 
Bowie BaileyDec 30, 2004 7:08 am 
Sam VarshavchikDec 30, 2004 3:56 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: [courier-users] mail queue managementActions...
From:Bowie Bailey (Bowi@BUC.com)
Date:Dec 30, 2004 7:08:43 am
List:net.sourceforge.lists.courier-users

From: Sam Varshavchik [mailto:mrs@courier-mta.com]

Bowie Bailey writes:

From: Sam Varshavchik [mailto:mrs@courier-mta.com]

Bowie Bailey writes:

On a related topic, is there any way to prevent a DSN from being sent for a message that is marked as spam? Is there something I can put in my maildroprc to prevent a DSN from being sent?

Terminate filtering with an explicit exit statement.

The filter is already terminated with a delivery instruction. All the filter knows is that the mail is delivered to a mailbox. How do I prevent the DSN if the mailbox is full?

Use the exception statement, coupled with some additional logic.

Ah...I see.

I assume it would look something like this?

If ( /^X-Spam-Flag: YES/ ) { # Attempt delivery exception { to "./Maildir/" } # Exit with no DSN if delivery fails exit } else { # Normal delivery with DSN to "./Maildir/" }

Also, since the delivery instructions are not the same for all my accounts, I would have to add this logic to the .mailfilter for each account. Is there an easier way? Can I make this script act as the default delivery instruction (i.e. used for any account that doesn't have an explicit TO or EXIT command in it's .mailfilter)?

Bowie