[Dovecot] mbox to maildir conversion does not work
Scott Bruce
sbruce at doe.carleton.ca
Thu Feb 28 20:02:12 EET 2008
Hello,
I have got it working using
convert_mail = mbox:~/mail:INBOX=/var/mail/%u
and it converts fine to maildir.
The one problem that I am having now is that client downloads some of
the emails again, after conversion.
Let me described the situation,
I'm trying to migrate from qpopper pop3 to dovecot pop3, which works
with no problems, using the 'pop3_reuse_xuidl = yes' setting. And
'mail_location = mbox:~/mail:INBOX=/var/mail/%u'. At this point no email
is downloaded twice.
But when I go to convert the /var/mail/%u to /var/imap/%u/.imap/, using
the convert mail plugin, only the mail the has been delivered once
before using the dovecot pop3 deamon is been sent again, not the email
that was set using the qpopper deamon. All of the mail is being converted.
Do you know why this would be?
What it looks like I will be doing is going strait from qpopper to
dovecot converting to maildir, but I was hoping to use dovecot with the
mboxs as an intermittent stage.
Thank you again for your time,
Scott
Timo Sirainen wrote:
> On Feb 22, 2008, at 10:10 PM, Scott Bruce wrote:
>
>> convert_mail: mbox:INBOX=/var/mail/%u
>
> This is invalid. You must have a root mail directory specified. If you
> only have INBOX files, it still must point to some location. For example
> create an empty /tmp/empty directory and use:
>
> mbox:/tmp/empty:INBOX=/var/mail/%u
>
>> Hello,
>>I'm try to use the convert plugin, but I cannot seem to get it
working >>properly. Is there any setting that I'm missing.
>>--------
>>dovecot -n
>># 1.0.10: dovecot.conf
>>log_path: /var/log/dovecot
>>protocols: imap imaps pop3 pop3s
>>listen(default): 127.0.0.1:143
>>listen(imap): 127.0.0.1:143
>>listen(pop3): *:110
>>ssl_listen(default): *:993
>>ssl_listen(imap): *:993
>>ssl_listen(pop3): *:995
>>login_dir: /opt/csw/var/run/dovecot/login
>>login_executable(default): /opt/csw/libexec/dovecot/imap-login
>>login_executable(imap): /opt/csw/libexec/dovecot/imap-login
>>login_executable(pop3): /opt/csw/libexec/dovecot/pop3-login
>>mail_location: maildir:/var/imap/%u/.imap
>>mail_debug: yes
>>maildir_copy_with_hardlinks: yes
>>mail_executable(default): /opt/csw/libexec/dovecot/imap
>>mail_executable(imap): /opt/csw/libexec/dovecot/imap
>>mail_executable(pop3): /opt/csw/libexec/dovecot/pop3
>>mail_plugins(default):
>>mail_plugins(imap):
>>mail_plugins(pop3): convert
>>mail_plugin_dir(default): /opt/csw/lib/dovecot/imap
>>mail_plugin_dir(imap): /opt/csw/lib/dovecot/imap
>>mail_plugin_dir(pop3): /opt/csw/lib/dovecot/pop3
>>pop3_reuse_xuidl(default): no
>>pop3_reuse_xuidl(imap): no
>>pop3_reuse_xuidl(pop3): yes
>>pop3_uidl_format(default):
>>pop3_uidl_format(imap):
>>pop3_uidl_format(pop3): %08Xu%08Xv
>>auth default:
>> passdb:
>> driver: pam
>> userdb:
>> driver: passwd
>>plugin:
>> convert_skip_broken_mailboxes: no
>> convert_mail: mbox:INBOX=/var/mail/%u
>>
>>Dovecot log
>>----------------
>>dovecot: Feb 22 14:13:28 Info: pop3-login: Login: user=<scott>,
>>method=PLAIN, rip=134.117.43.54, lip=134.117.9.47, TLS
>>dovecot: Feb 22 14:13:28 Info: POP3(scott): Loading modules from
>>directory: /opt/csw/lib/dovecot/pop3
>>dovecot: Feb 22 14:13:28 Info: POP3(scott): Module loaded:
>>/opt/csw/lib/dovecot/pop3/lib20_convert_plugin.so
>>dovecot: Feb 22 14:13:28 Info: POP3(scott): Effective uid=xxx, gid=xx
>>dovecot: Feb 22 14:13:28 Info: POP3(scott): mbox:
>>data=INBOX=/var/mail/scott
>>dovecot: Feb 22 14:13:28 Info: POP3(scott): maildir:
>>data=/var/imap/scott/.imap
>>dovecot: Feb 22 14:13:28 Info: POP3(scott): maildir:
>>root=/var/imap/scott/.imap, index=/var/imap/scott/.imap, control=,
>>inbox=
>>dovecot: Feb 22 14:13:28 Info: POP3(scott): Disconnected: Logged out
>>top=0/0, retr=0/0, del=0/0, size=0
>>bash-3.00# du -sh /var/imap/sbruce/.imap/
>>
>>And I can use mb2md to do the conversion, but I was hoping to do it
on >>the fly.
>>
>>Thank You for your time,
>>Scott
>>
>>
>>------------------
>>dovecot --version
>>1.0.10
More information about the dovecot
mailing list