I observe that dsync fills Maildir correctly incl. cur, if I delete Maildir just before dsync runs. Can the failed mbox to Maildir conversion be caused by dovecot creating Maildir automatically if a client connects to dovecot?
Should dovecot be shutdown when running dsync?
All the best,
Torbjörn



   9. dsync help? (Torbjorn Astlind)




------------------------------

Message: 9
Date: Mon, 10 Dec 2012 16:33:08 +0100
From: Torbjorn Astlind <[email protected]>
To: [email protected]
Subject: [Dovecot] dsync help?
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi all,
I have dovecot serving aprox 200 users through mbox, but the time has come to migrate to a new server, and to use Maildir. Using rsync from the old server I get all user data, i.e /home/*, and inboxes i.e /var/mail/* to a new server. This has worked well for some time as backup. The dsync should convert everything to Maildir, and it does... to an extent. (linebrakes for easy viewing) What I see, is that often, the /home/mail/xxx is NOT resulting in /home/xxx/Maildir/cur All mailboxes from /home/xxx, are properly converted to /home/xxx/Maildir/.name_of_ box
Am I misunderstanding something?
I get it to work sometimes if I delete the ~/Maildir completely before doing the dsync.
All, and any help most welcome,
Torbj?rn





for i in `cat /home2/torbjorn/SCRIPTS/userlist.txt`;
do dsync -D -v -f -u $i -c /etc/dovecot/alt_config/10-mail.MBOX.conf backup maildir:~/Maildir;
done > /home2/torbjorn/SCRIPTS/mb2mdRES.txt 2>&1

the -c 10.mail.MBOX.conf contains, the parts I think are relevant for the dsync operation:
mail_location = mbox:~/home:INBOX=/home/mail/%u
namespace {
        type = private
       separator = '/'
      inbox = yes
}
dsync(root): Debug: Effective uid=501, gid=501, home=/home/torbjorn
dsync(root): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=mbox:~/home:INBOX=/home/mail/torbjorn dsync(root): Debug: fs: root=/home/torbjorn/home, index=, control=, inbox=/home/mail/torbjorn, alt=
dsync(root): Debug: Effective uid=501, gid=501, home=/home/torbjorn
dsync(root): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/Maildir dsync(root): Debug: maildir++: root=/home/torbjorn/Maildir, index=, control=, inbox=/home/torbjorn/Maildir, alt= dsync(root): Debug: Namespace : /home/torbjorn/Maildir doesn't exist yet, using default permissions dsync(root): Debug: Namespace : Using permissions from /home/torbjorn/Maildir: mode=0700 gid=-1 dsync(torbjorn): Debug: Namespace : Using permissions from /home/torbjorn/home: mode=0700 gid=-1




------------------------------

_______________________________________________
dovecot mailing list
[email protected]
http://dovecot.org/cgi-bin/mailman/listinfo/dovecot

End of dovecot Digest, Vol 116, Issue 16
****************************************

Reply via email to