I am using Cyrus IMAP, Postfix and procmail as LDA. If a mailbox is overquota
I want to bounce the mail with a descriptive Subject line. This works
but there is always a copy of the email left in the MTA queue although
the procmail recipe has been executed successful.
That are the main lines in my rc file:
##############################################################################
# this recipes delivers the email to the mailbox
:0 w
| $DELIVERMAIL $LOGNAME
# if delivery fails this recipe checks if the error is EX_TEMPFAIL
# which frequently means that the mailbox is overquota
:0 e
{
EXITCODE=$?
REC=`formail -x"To: "`
:0 w
* EXITCODE ?? 75
* ! X-Loop: bounce(_at_)pure(_dot_)ch
| formail -rk -I"Subject: Problem for $REC. Probably Mailbox full." \
-A"Precedence: junk" -A"X-Loop: bounce(_at_)pure(_dot_)ch" | $SENDMAIL
}
EXITCODE=69
HOST
##############################################################################
Any hints?
Werner
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail