[Dovecot] dsync help?

Torbjorn Astlind torbjorn at dbb.su.se
Mon Dec 10 17:33:08 EET 2012


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





More information about the dovecot mailing list