On Fri, 2010-03-05 at 06:08 -0500, Charles Marcus wrote:
Not to belabor the point, but the dovecot LDA is already talking to the SMTP server in one direction... this is why I proposed something as simple as possible, a 'LSA proxy'... just enough to make sure the message is accepted for delivery, then save the copy to the Sent folder. I imagine a lot more things could be done to, especially if sieve support was available to it.
That said - could this be done in a plugin? I didn't think so, but maybe I'm wrong?
With v2.0 you can do basically everything as external plugin. Even managesieve no longer requires patching Dovecot.
LDA "talks" to SMTP server by calling sendmail binary. That's kind of ugly. v2.0 actually has SMTP client support, so maybe I should change it to use localhost:25 as default instead of using sendmail binary. Anyway, your LSA proxy would be able to use the SMTP client library. Although it would probably be easiest to start with the current LMTP code, because it already supports proxying and saving to local disk, those could be combined and the server could be added to support incoming SMTP clients..