Charles Marcus
2006-Nov-03 13:30 UTC
[Dovecot] Server-side mail archiving - possible dovecot lda feature?
Hi Timo, I have a question on the feasibility of adding the capability directly in dovecot LDA (or maybe this wouldn't be the correct place?) to provide a server-side mail archiving feature. What I'd like is a simple way to define a maildir, ie: vmail/archive/$user/Inbox and vmail/archive/$user/Inbox.Sent And then have the dovecot LDA deliver a copy of all mail (incoming and outgoing) to this archive folder. Is the dovecot LDA the best place for this to go? Or would an entirely new plug-in be more appropriate? My boss may be willing to pay to have this capability added. I have investigated other third party solutions, but I would prefer something that is tightly integrated with dovecot. I look forward to your response... -- Best regards, Charles
Johannes Berg
2006-Nov-03 13:44 UTC
[Dovecot] Server-side mail archiving - possible dovecot lda feature?
On Fri, 2006-11-03 at 08:30 -0500, Charles Marcus wrote:> Is the dovecot LDA the best place for this to go? Or would an entirely > new plug-in be more appropriate?Neither? For archive.inbox, simply make your MTA deliver a second copy to there, or configure the dovecot LDA to put a copy into it. That should be trivial. For archive.outbox, you need to make your MTA deliver a copy of the message to the right folder, with exim that's easy with the unseen router option (IIRC, but I do know that the exim FAQ contains an entry answering exactly your question) johannes
Angel Marin
2006-Nov-03 14:01 UTC
[Dovecot] Server-side mail archiving - possible dovecot lda feature?
Charles Marcus escribi?:> And then have the dovecot LDA deliver a copy of all mail (incoming and > outgoing) to this archive folder.dovecot LDA has already -m that allows what you're looking for, just make your MTA do a second delivery adjusting LDA arguments. Regards, -- Angel Marin http://anmar.eu.org/
Michael Surette
2006-Nov-03 15:20 UTC
[Dovecot] Server-side mail archiving - possible dovecot lda feature?
On Friday 03 November 2006 08:30, Charles Marcus wrote:> Hi Timo, > > I have a question on the feasibility of adding the capability directly > in dovecot LDA (or maybe this wouldn't be the correct place?) to provide > a server-side mail archiving feature. > > What I'd like is a simple way to define a maildir, ie: > > vmail/archive/$user/Inbox > and > vmail/archive/$user/Inbox.Sent > > And then have the dovecot LDA deliver a copy of all mail (incoming and > outgoing) to this archive folder. > > Is the dovecot LDA the best place for this to go? Or would an entirely > new plug-in be more appropriate? > > My boss may be willing to pay to have this capability added. I have > investigated other third party solutions, but I would prefer something > that is tightly integrated with dovecot. > > I look forward to your response...As discussed elsewhere in this thread, the LDA is not the appropriate place for this feature, the MTA is. I do something similar already with sendmail using milters. As I understand it, postfix also has milter capability, so a postfix/milter guru is likely what you're looking for. hth Mike