5 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Changing temporary er...
FromSent OnAttachments
Gordon ThagardApr 17, 2007 7:45 am 
Sam VarshavchikApr 17, 2007 2:41 pm 
Peter MannApr 18, 2007 1:35 am 
Devin RubiaApr 18, 2007 7:26 am 
Peter MannApr 18, 2007 7:42 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:Re: [maildropl] Changing temporary errors to permanent errorsActions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Apr 17, 2007 2:41:38 pm
List:net.sourceforge.lists.courier-maildrop

Gordon Thagard writes:

Hello,

my organization has introduced filesystem quotas that are proving to be somewhat problematic for our students because, when they go over their quota limits, maildrop reports a temporary error and their email will sit on the queue for days before bouncing back to the user. See the error message from mailq:

(temporary failure. Command output: maildrop: error writing to mailbox.)

How can I make maildrop report this as a permanent failure so that Postfix will immediately bounce the message back to the sender? Also, is there a way to give an informational message back to the sender to let them know this user is over their quota?

Thanks to any and all who may be of assistance,

The two ways to do this are:

1) Wrap all the to and cc commands inside an exception {} block, and explicitly set EXITCODE to a permanent error code, or

2) Wrap the invocation of maildrop, rather than setting a plain /usr/bin/maildrop, or whatever, as your mail delivery agent, use something like "/usr/bin/maildrop || exit 77". That'll turn all temporary errors into permanent ones, not just out of quota

As far as a custom message goes, you'll have to use #1, and provide some additional hackery using the echo command.