On Thu, 19 Sep 2002, Niklas Alberth wrote:
Hello
[...]
I need to limit the size of emails for one account. If the mail is
larger than 12kB I want it to be redirected.
My mailserver runs qmail + vpopmail
I got this procmailrc
-----
MAILDIR=/home/vpopmail/domains/example.com/russell/Maildir/
DEFAULT=$MAILDIR
LOGFILE=$MAILDIR/procmail.log
LOCKFILE=$MAILDIR/.lockmail
:0
* > 12000
! postmaster(_at_)example(_dot_)com
:0:
${DEFAULT}
-----
and I run procmail from a .qmail file with
-----
| preline procmail -t ./russell/procmailrc
-----
The logfile seems to indicate the filter works, but the user reports
there are larger mails in his inbox.
The logfile does not show you how procmail interpreted the
condition. Open the verbose mode to see more:
VERBOSE=yes
-----
From xxxx(_at_)wanadoo(_dot_)fr Thu Sep 12 20:14:08 2002
Subject: Returned mail--"language"
Folder: /usr/sbin/sendmail -oi postmaster(_at_)example(_dot_)com
131815
From xxxx(_at_)mail(_dot_)com Sat Sep 14 01:43:23 2002
Subject: Att, ASSITANCE.
Folder: /home/vpopmail/domains/example.com/russell/Maildir/ne 2462
-----
So my question is why does those large mail still end up in the inbox?
and what do I need to do the stop that behavior?
--niklas
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
--
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail