[Dovecot] pop-before-smtp in SQL?

Timo Sirainen tss at iki.fi
Fri Aug 19 19:26:46 EEST 2005


On Fri, 2005-08-19 at 16:59 +0200, Lorens wrote:
> Wouldn't it be quite trivial to make dovecot write to an SQL
> table upon sucessful login, instead of all this log file parsing
> by an additional daemon?

If you use sql userdb, you can just add the insert command into the
user_query. Although that doesn't work if Dovecot LDA is used, since it
also calls user_query when delivering mails. I've in TODO that there
should be a separate post_login command.

Another way that already works is to update mail_executable location to
some script which does the SQL insertion and after that executes the
real imap or pop3 binary.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20050819/58c8feb6/attachment.pgp


More information about the dovecot mailing list