Hi, i've wrote the following recipe in order to
prevent delivery of mails when they exceed MAXSIZE,
but formail is not returning a failure delivery
message for the sender.
Here's the recipe (written for testing purposes):
MAXSIZE=10000
BOXSIZE=9999
:0
* $ $MAXSIZE^0
* $ -$BOXSIZE^0
{
:0
* > $=
{
:0 h
* ! ^Subject.*mail delivery failure
| (formail -r -I "From: manager(_at_)elbarid(_dot_)net" \
-I "Subject: mail delivery
failure"; \
echo "Mailbox full") |
$SENDMAIL -t
:0 E
/dev/null
}
}
:0 Eh
* ! ^Subject.*mail delivery failure
| (formail -r -I "From: manager(_at_)elbarid(_dot_)net" \
-I "Subject: mail delivery
failure"; \
echo "Mailbox full") |
$SENDMAIL -t
:0 E
/dev/null
/****************************************************/
/****************************************************/
Here's my procmailrc:
SHELL=/bin/sh
SENDMAIL=/usr/lib/sendmail
PMDIR=/etc/Procmail
LOGFILE=$PMDIR/log
verbose=yes
MAILDIR=$HOME
INCLUDERC=$PMDIR/rc.mail_limitation
/**********************************************/
/**********************************************/
and here's the log of a test message:
From momo(_at_)elbarid(_dot_)net Thu Dec 26 20:06:29 2002
Subject: hello
Folder: (formail -r -I "From: manager(_at_)elbarid(_dot_)net"
\ 775
From root Thu Dec 26 20:06:29 2002
Subject: mail delivery failure
Folder: /dev/null
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail