On 10/29/2009 3:49 PM, Marty Anstey wrote:
Hi all,
I have a quick question which relates to how Postfix interacts with LDAs
(in particular, Dovecot).

I've asked this question over on the Dovecot list, but it sounds like
the issue is with how Postfix handles the response from Dovecot's LDA.

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

Reply via email to