Joseph Tam
2013-Apr-23 02:56 UTC
[Dovecot] Using dsync to export mail to remote IMAP account
I've read the web/man pages on dsync, but it's not clear to me whether dsync can be used to export (rather than import) a user's mailbox to a remote non-dovecot IMAP account. (The intention is to use it whenever a user leaves and wants to copy their local mail to Google or whatever. I currently use uw-imapd's mailutil -- it works, but it's dreadfully slow.) As a first crack at it, I tried (on the dovecot server) dsync -o imapc_user=remoteuser -o imapc_password=remotepassword -o imapc_host=remote-imap-server -o imapc_port=993 -o imapc_ssl=imaps -o imapc_features=rfc822.size -o imapc_list_prefix=remoteprefix -o mailbox_list_index=no backup -f -u localuser imapc: I got this error: dsync(localuser): Error: user localuser: Initialization failed: Namespace '': Unknown mail storage driver imapc dsync(localuser): Fatal: User init failed Is exporting mail to a remote (non-dovecot) IMAP account even doable with dsync, or am I completely off-track? Joseph Tam <jtam.home at gmail.com>
On 23/04/2013 12:56 PM, Joseph Tam wrote:> > > I've read the web/man pages on dsync, but it's not clear to me whether > dsync can be used to export (rather than import) a user's mailbox to a > remote non-dovecot IMAP account. > > (The intention is to use it whenever a user leaves and wants to copy > their > local mail to Google or whatever. I currently use uw-imapd's mailutil -- > it works, but it's dreadfully slow.) > > As a first crack at it, I tried (on the dovecot server) > > dsync -o imapc_user=remoteuser > -o imapc_password=remotepassword > -o imapc_host=remote-imap-server > -o imapc_port=993 > -o imapc_ssl=imaps > -o imapc_features=rfc822.size > -o imapc_list_prefix=remoteprefix > -o mailbox_list_index=no > backup -f -u localuser imapc: > > I got this error: > > dsync(localuser): Error: user localuser: Initialization failed: > Namespace '': Unknown mail storage driver imapc > dsync(localuser): Fatal: User init failed > > Is exporting mail to a remote (non-dovecot) IMAP account even doable > with dsync, or > am I completely off-track? > > Joseph Tam <jtam.home at gmail.com> > > --No I think dsync only works with dovecot servers. I find LARCH works best for what you are trying to do: https://github.com/rgrove/larch
Timo Sirainen
2013-Apr-23 10:43 UTC
[Dovecot] Using dsync to export mail to remote IMAP account
On Mon, 2013-04-22 at 19:56 -0700, Joseph Tam wrote:> > I've read the web/man pages on dsync, but it's not clear to me whether > dsync can be used to export (rather than import) a user's mailbox to a > remote non-dovecot IMAP account.It should be possible at some point, but currently probably won't work very well.> I got this error: > > dsync(localuser): Error: user localuser: Initialization failed: > Namespace '': Unknown mail storage driver imapc > dsync(localuser): Fatal: User init failedBut this looks like you simply haven't compiled Dovecot with imapc support. See if dovecot --build-options|grep storage returns imapc.
Joseph Tam
2013-Apr-23 22:06 UTC
[Dovecot] Using dsync to export mail to remote IMAP account
Timo Sirainen writes:>> I've read the web/man pages on dsync, but it's not clear to me whether >> dsync can be used to export (rather than import) a user's mailbox to a >> remote non-dovecot IMAP account. > > It should be possible at some point, but currently probably won't work > very well.Ah, thanks for the clarification.>> dsync(localuser): Error: user localuser: Initialization failed: >> Namespace '': Unknown mail storage driver imapc >> dsync(localuser): Fatal: User init failed > > But this looks like you simply haven't compiled Dovecot with imapc > support. See if > > dovecot --build-options|grep storage > > returns imapc.Right you are. Joseph Tam <jtam.home at gmail.com>