I just upgraded my roundcube to 0.3 to find out it has some nice plugins. So I coded a virtualmin driver for their password plugin, so users can change passwords from within roundcube via the Virtualmin remote API.
Now, I would love to offer mail filtering management from roundcube, as usermin is (let's face it) pretty awful and no-one uses it. Roundcube offers a sieve plugin, which is fine, but Virtualmin makes use of Procmail. One of the big advantages of sieve is that it is tightly integrated in dovecot and with managesieve you have a service that allows roundcube in this case to manage filters without needing ftp access or other strange hacks.
So I digged a bit, and found out that basically dovecot (at least on debian lenny) already comes with LDA and Managesieve support, so it would be no problem to implement in the postfix config file (mailbox_command), but then I would loose antivirus/antispam checking, and possibly some other stuff, which Virtualmin implements via procmail.
So my question here: is it possible, maybe by changing something to the Virtualmin procmail template (if there is any) to pass the mail to the dovecot deliver service, isntead of delivering directly to inbox? So basically procmail would do its stuff, then pass the thing on to dovecot, and dovecot will do its filter stuff and deliver it to the mailbox. That would be a nice workaround I could definetly live with...
Please let me know ;)