[Dovecot] problem migrating from maildir to dbox

Ramón Frontera ramon.frontera at uib.es
Mon Sep 12 14:52:01 EEST 2011


hello,
thanks in advance!
Regards,

$ dovecot -n
# 2.0.13: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-131.6.1.el6.x86_64 x86_64 Red Hat Enterprise Linux Server release 6.1 (Santiago) nfs
base_dir = /var/run/dovecot/
first_valid_uid = 96
listen = 10.80.82.21
log_path = /var/log/dovecot.log
mail_gid = 97
mail_location = sdbox:/vmail/0/%u/dbox
mail_plugins = acl quota mail_log notify
mail_uid = 97
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date
mbox_write_locks = fcntl
mmap_disable = yes
namespace {
  hidden = no
  inbox = yes
  list = yes
  location = 
  prefix = 
  separator = /
  subscriptions = yes
  type = private
}
namespace {
  hidden = no
  inbox = no
  list = children
  location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%n
  prefix = shared/%%n/
  separator = /
  subscriptions = no
  type = shared
}
passdb {
  driver = pam
}
passdb {
  args = /etc/dovecot/dovecot-ldap-pass.conf.ext.local
  driver = ldap
}
passdb {
  args = scheme=plain username_format=%u /etc/dovecot/imap.passwd
  driver = passwd-file
}
plugin {
  acl = vfile
  acl_shared_dict = file:/vmail/1/dovecot/shared-mailboxes
  quota = maildir:User quota
  quota_rule = *:storage=2500M
  quota_rule2 = Trash:storage=+500M
  quota_warning = storage=95%% quota-warning 95 %u
  quota_warning2 = storage=80%% quota-warning 80 %u
}
postmaster_address = xavier.pons at uib.es
protocols = imap pop3 lmtp sieve
service auth {
  unix_listener auth-userdb {
    group = vmail
    mode = 0660
  }
}
service imap-login {
  inet_listener imap {
    port = 143
  }
  inet_listener imaps {
    port = 993
    ssl = yes
  }
}
service lmtp {
  inet_listener lmtp {
    port = 30025
  }
}
service pop3-login {
  inet_listener pop3 {
    port = 110
  }
  inet_listener pop3s {
    port = 995
    ssl = yes
  }
}
service quota-warning {
  executable = script /usr/local/bin/quota-warning.sh
  unix_listener quota-warning {
    user = vmail
  }
  user = dovecot
}
ssl = required
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
syslog_facility = local1
userdb {
  driver = passwd
}
userdb {
  driver = prefetch
}
userdb {
  args = /etc/dovecot/dovecot-ldap-users.conf.ext
  driver = ldap
}
userdb {
  args = username_format=%u /etc/dovecot/imap.passwd
  driver = passwd-file
}
protocol imap {
  mail_max_userip_connections = 10
  mail_plugins = acl quota mail_log notify imap_acl imap_quota
}
protocol pop3 {
  mail_max_userip_connections = 3
}

--
------------------------------------------
  Ramon Frontera Gallardo
  Centre de Tecnologies de la Informació  
  Universitat de les Illes Balears        
  Ctra. Valldemossa km 7,5
  07122 Palma de Mallorca




El 12/09/2011, a las 12:44, Timo Sirainen escribió:

> On Fri, 2011-09-09 at 14:19 +0200, Ramón Frontera wrote:
>> Hello,
>> we want to migrate Mail folders from Maildir to dbox without downtime.
>> We change the mail_location to dbox in 10-mail.conf and restart dovecot.
>> After that we use dsync -u user mirror maildir:~/Maildir.
>> The problem is that if INBOX exists the dsync create a new folder with name like b5893c0a93ff694e551200002dfa3112
>> Can I migrate to the existing INBOX? or How can I merge the 2 INBOX folders?
> 
> dovecot -n output?
> 
> 




More information about the dovecot mailing list