[Dovecot] migrate courier to dovecot script - questions about directory structure

Ross lists at rosslisa.net
Fri Oct 16 06:09:32 EEST 2009


Hi all,

Im in the process of moving about 7000 users across from courier to dovecot.
Both Maildir setups.

The migration script works a treat, but I need a slight change to it.

Couriers directory structure looks ike this:
/home/vmail/<domain.com.au>/<username>/cur/
/home/vmail/<domain.com.au>/<username>/new/
/home/vmail/<domain.com.au>/<username>/tmp/
/home/vmail/<domain.com.au>/<username>/maildirsize
/home/vmail/<domain.com.au>/<username>/courier*
etc..

Dovecot looks like this:
/home/vmail/<domain.com.au>/<username>/Maildir/cur/
/home/vmail/<domain.com.au>/<username>/Maildir/new/
/home/vmail/<domain.com.au>/<username>/Maildir/tmp/

So the issue is, there is an additional Maildir directory in the structure.

Now the migration script works fine, however when the migration is
completed, I have to manually add the Maildir directory into the structure,
which is going to take a little too long :)
Is there something in the script that can add this ?
Is there a way to perhaps use the script to add the Maildir part ?

My initial plan was to copy the entire /home/vmail/<domain.com.au>/* across
to the dovecot server and run the migration script.
However, without the Maildir directory in the structure it won't work.

Has anyone run into this issue ?
How did you solve it  ?

--

Regards
Ross



fatboy:/tmp# dovecot --version
1.0.15

fatboy:/tmp# dovecot -n
# 1.0.15: /etc/dovecot/dovecot.conf
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap imaps pop3 pop3s
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
mail_privileged_group: mail
mail_location: maildir:/var/vmail/%Ld/%Ln/Maildir
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %08Xu%08Xv
namespace:
  type: private
  separator: .
  prefix: INBOX.
  inbox: yes
auth default:
  mechanisms: plain login
  passdb:
    driver: sql
    args: /etc/dovecot/dovecot-sql.conf
  userdb:
    driver: passwd
  userdb:
    driver: static
    args: uid=5000 gid=5000 home=/var/vmail/%d/%n allow_all_users=yes
  socket:
    type: listen
    client:
      path: /var/spool/postfix/private/auth
      mode: 432
      user: postfix
      group: postfix
    master:
      path: /var/run/dovecot/auth-master
      mode: 384
      user: vmail
plugin:
  quota: maildir:storage=51200


More information about the dovecot mailing list