On Mon, 2009-12-14 at 23:54 +0300, Dmitri V. Ivanov wrote:
why not do it on MTA level? those already have the hooks for it normally. no need to reinvent the wheel imho.
Sometimes it's virtual users using dovecot userdb or something like. MTA isn't aware of it (all it uses for virtual user is mailbox presence). But each virtual user have own wordlist for bogofilter. deliver would set some environment variables like $HOME to desirable values for such virtual user and then we have good place to call filter pointing it to virtual user home directory.
Having deliver fork new processes is kind of annoying. Wonder if all of this could be done some other way with v2.0. Maybe something similar to how post-login scripting is done..: http://dovecot.org/list/dovecot/2009-December/045139.html