Hi Marty,
Dovecot uses maildir++ mailboxes??. If so you could use my project :
Postfix quota reject. It works rejecting mail for overquota mailboxes
that are maildir++ or cyrus sort of mailbox. I have programmed it
thinking on ISP mail hosting services; allows you the possibility of
rejecting mail from the own mail scanning machines (assuming you have
a group of dedicated mail scanning machines just doing that and later
sending mail filtered to mailbox store machines wich runs any mta or
lmtp and courier, dovecot, cyrus.... for example) before you have
wasted resources filtering mail that has no space available on
recipients mailbox and that is not going to be read because it will be
bounced (or stay clogging you're mail queues in cause you use maildrop
for example wich defaults to temporary failure in this situations);
with this solution you could too avoid message to be transfered later
to mailbox machine via smtp, lmtp or whatever and at the end (so
decrease innecesary traffic)... obtaining better performace in you're
mail hosting service and avoiding backscattering too because you avoid
bouncing back mail too (mail is rejected at smtp dialogue).
Although it's designed for big environments it works just nice in
little environments even just in you're only mail machine.... but
Postfix quota reject it's quite more powerful and it's an scalable
solution. I run it in my own mail machine and you could see links
seeing what other people think about it. For example : http://mundoopensource.blogspot.com/2009/09/utilizando-o-postfix-quota-reject-20.html
.
Download link : http://postfixquotareject.ramattack.net
Hope to be helpful.
Bye!!!
When Dovecot's LDA (deliver) gets handed a message for a mailbox
which
is over quota, it exits with EX_NOPERM. Postfix sees this and
generates
a bounce.
While I realize that this is perfectly acceptable behaviour, I've
been
asked to look into the possibility of having messages rejected inline
during the SMTP session.
Does anyone have any insight on how we could make this happen?
Thanks,
Marty
You would need a postfix policy server that can query dovecot real-
time to see if a user is over quota.
The postfix part of the interface is detailed here:
http://www.postfix.org/SMTPD_POLICY_README.html
For the dovecot part, there would need to be some fairly lightweight
real-time command that could be run to check if a recipient is over
quota.
This would be complicated by mail addressed to an alias (or worse, a
list) that isn't expanded yet.
-- Noel Jones