[Dovecot] Dovecot as a (quota) policy server for Postfix
Patrick Ben Koetter
p at state-of-mind.de
Fri Jun 12 19:28:13 EEST 2009
* Timo Sirainen <dovecot at dovecot.org>:
> On Fri, 2009-06-12 at 17:54 +0200, Wolfram Schlich wrote:
> > Timo (and all others), what do you think about such a Postfix
> > policy server implemented as a part of Dovecot?
> Dovecot v2.0 makes this much easier, since it can be extended with any
> kind of external services without recompiling anything. Also v2.0 tries
> to be somewhat compatible with Postfix master. I've had in mind that
> perhaps Dovecot services could run also under Postfix master. So a quota
> service that could run either under Dovecot or Postfix could be useful.
> I don't really have time to implement it though. You could take a look
> at how LMTP server is implemented and just copy&paste its important
> parts and make it report quota instead of doing the LMTP stuff.
> What does Postfix's policy protocol look like anyway?
Quote from <http://www.postfix.org/SMTPD_POLICY_README.html>:
The Postfix policy delegation protocol is really simple. The client request is
a sequence of name=value attributes separated by newline, and is terminated by
an empty line. The server reply is one name=value attribute and it, too, is
terminated by an empty line.
Here is an example of all the attributes that the Postfix SMTP server sends in
a delegated SMTPD access policy request:
Postfix version 2.1 and later:
sender=foo at bar.tld
recipient=bar at foo.tld
Postfix version 2.2 and later:
Postfix version 2.3 and later:
Postfix version 2.5 and later:
p at rick
state of mind
Franziskanerstraße 15 Telefon +49 89 3090 4664
81669 München Telefax +49 89 3090 4666
Amtsgericht München Partnerschaftsregister PR 563
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 315 bytes
Desc: Digital signature
Url : http://dovecot.org/pipermail/dovecot/attachments/20090612/1239d251/attachment.bin
More information about the dovecot