On 9.1.2012, at 17.32, Noel wrote:
On 1/9/2012 8:43 AM, Timo Sirainen wrote:
http://hg.dovecot.org/dovecot-2.1/rev/f562bcaca215 implements "postmap" type sockets, which follow Postfix's tcp_table(5) protocol. So you can ask:
get user@domain
and Dovecot answers one of:
- 200 1
- 500 User not found
- 400 Internal failure
Anyone have ideas if this could be improved, or used for some other purposes?
Cool. Does this just check for valid user existence, or can it also check for over-quota (and respond 500 overquota I suppose)?
Hmm. That looked potentially useful, but Postfix doesn't seem to support it at least that way, since the message to SMTP client is the same regardless of what I add after 500 reply. Also that would have required me to move the code somewhere else from auth process, since auth doesn't know the quota usage. And internally Dovecot would still have had to do auth lookup separately, so there's really no benefit in doing this vs. having Postfix do two lookups.