migration from 2.0.16

Barbara M. barbara at rfx.it
Thu Dec 17 15:38:33 EET 2020


On Thu, 17 Dec 2020, Aki Tuomi wrote:

> I would recommend using dsync migration to get rid of mbox format. We no longer develop that format, and bugs are limited to reading mbox format.

Ok, but I assume that dovecot 2.3.x still support mbox?  (just in case the 
mbox --> MailDir migration give more problems than expected expecially 
with POP3 UIDL)

> I would also recommend using master password / master user login with doveadm sync, and do the synchronization over imapc: to get the data safely migrated to your new system.
>
> You should use
>
> doveadm sync -u user backup -R imapc:
>
> on the new server to pull the data from old server. See https://wiki.dovecot.org/Migration/Dsync for more details.

Ok, but My old server is 2.0.16.
The suggested URL say:  "You need Dovecot v2.1.4+ for this."
I can't understand if it refers to source or destination server

I tried to activate master password / master user, but I get:

# telnet 0 143
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE 
STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
a login USER*MASTER MASTERPWD
a NO [AUTHENTICATIONFAILED] Authentication failed.

Nothing in dovecot.[log|info.log]

(real user/pwd replaced)
/etc/dovecot/passwd.masterusers created using htpasswd  ... 
tried with standard pwd created by htpasswd or replacing the encrypted 
pwd with a know passwd form /etc/shadow.

My current dovecot -n :

# 2.0.16: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-48-pve x86_64 CentOS release 6.10 (Final)
auth_mechanisms = plain login
default_client_limit = 3000
default_process_limit = 500
disable_plaintext_auth = no
info_log_path = /var/log/mail/dovecot.info.log
log_path = /var/log/mail/dovecot.log
mail_full_filesystem_access = yes
mail_location = mbox:~/:INBOX=/var/mail/%u
mbox_read_locks = dotlock fcntl
passdb {
   driver = pam
}
passdb {
   args = /etc/dovecot/passwd.masterusers
   driver = passwd-file
   master = yes
   pass = yes
}
protocols = imap pop3
service imap {
   process_limit = 512
}
service pop3 {
   process_limit = 1024
}
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_cipher_list = 
ECDHE-RSA-AES256-SHA384:AES256-SHA256:AES256-SHA256:RC4:HIGH:MEDIUM:+TLSv1:+TLSv1.1:+TLSv1.2:!MD5:!ADH:!aNULL:!eNULL:!NULL:!DH:!ADH:!EDH:!AESGCM
ssl_key = </etc/pki/dovecot/private/dovecot.pem
userdb {
   driver = passwd
}
protocol imap {
   imap_id_log = *
}
protocol pop3 {
   pop3_uidl_format = %08Xu%08Xv
}



Thanks, B.




More information about the dovecot mailing list