Help backup mails from one dovecot server to another dovecot server
Davide
davide.marchi at mail.cgilfe.it
Tue Jan 20 09:12:47 UTC 2015
Hi to all i'm running two Dovecot servers version 2.2.15 both Server A
and Server B
Server A is in production instead Server B is ready to start as a
replacement
My goal is replicate through doveadm backup command mails from Server A
to Server B
but when i execute following command in Server B error happens
doveadm -vvv -D backup -R -u davide.marchi at mail.cgilfe.it imapc:
dsync(davide.marchi at mail.cgilfe.it): Error: Couldn't delete mailbox
INBOX: INBOX can't be deleted.
Below are servers' config
Server A conf (dovecot -n)
# 2.2.15: /usr/local/etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.10
auth_master_user_separator = *
debug_log_path = /var/log/dovecot/dovecot-debug.log
disable_plaintext_auth = no
first_valid_gid = 89
first_valid_uid = 89
imapc_features = rfc822.size fetch-headers
imapc_host = 192.168.10.53
imapc_master_user = master
imapc_password = AbC100Vale100
imapc_user = %u
info_log_path = /var/log/dovecot/dovecot.log
last_valid_gid = 89
last_valid_uid = 89
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
listen = 0.0.0.0
log_path = /var/log/dovecot/dovecot-err.log
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_fsync = never
mail_gid = 89
mail_location = maildir:~/Maildir:INDEX=/mnt/ramdisk/%u
mail_plugins = " notify zlib quota fts fts_solr"
mail_prefetch_count = 20
mail_uid = 89
mailbox_list_index = yes
maildir_very_dirty_syncs = yes
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 ihave duplicate
mmap_disable = yes
namespace {
inbox = yes
location =
prefix =
separator = /
type = private
}
passdb {
args = /usr/local/etc/dovecot/passwd.masterusers
driver = passwd-file
master = yes
pass = yes
}
passdb {
driver = shadow
}
passdb {
args = webmail=127.0.0.1 cache_key=%u%s
driver = vpopmail
}
plugin {
antispam_backend = crm114
antispam_crm_args =
-u;/opt/crm114;--fileprefix=/opt/crm114/;--config=/usr/share/crm114/mailfilter.cf
antispam_crm_binary = /usr/share/crm114/mailreaver.crm
antispam_crm_notspam_arg = --good
antispam_crm_spam_arg = --spam
antispam_signature = X-CRM114-CacheID
antispam_spam_pattern_ignorecase = crm-spam*
antispam_trash_pattern_ignorecase = Trash*
antispam_unsure_pattern_ignorecase = crm-unsure*
fts = solr
fts_autoindex = yes
fts_decoder = decode2text
fts_solr = url=http://192.168.119.5:8983/solr/ break-imap-search
mail_log_events = delete undelete expunge copy
mail_log_fields = uid box msgid size
mail_log_group_events =
quota = dict:::redis:host=127.0.0.1:prefix=user/
quota_rule2 = Trash:storage=+20%%
quota_warning = storage=95%% quota-warning 95 %u
quota_warning2 = storage=80%% quota-warning 80 %u
sieve = ~/.dovecot.sieve
sieve_before = /usr/local/lib/dovecot/sieve/default.sieve
sieve_default = /usr/local/lib/dovecot/sieve/default.sieve
sieve_dir = ~/sieve
sieve_global_dir = /usr/local/lib/dovecot/sieve/
zlib_save = gz
zlib_save_level = 9
}
protocols = imap sieve
service auth {
unix_listener auth-master {
group = vchkpw
mode = 0600
user = vpopmail
}
unix_listener auth-userdb {
group = vchkpw
mode = 0600
user = vpopmail
}
}
service decode2text {
executable = script /usr/local/libexec/dovecot/decode2text.sh
unix_listener decode2text {
mode = 0666
user = dovecot
}
}
service imap-login {
executable = /usr/local/libexec/dovecot/imap-login
inet_listener imaps {
address = 192.168.10.50
}
process_limit = 500
process_min_avail = 2
service_count = 0
}
service imap {
executable = /usr/local/libexec/dovecot/imap
}
service managesieve-login {
executable = managesieve-login
inet_listener sieve {
address = 127.0.0.1
port = 4190
}
process_min_avail = 2
service_count = 0
}
service managesieve {
process_limit = 10
}
service quota-warning {
executable = script /usr/local/libexec/dovecot/quota-warning
unix_listener quota-warning {
mode = 0660
user = vpopmail
}
user = vpopmail
}
ssl_cert = </var/qmail/control/servercert.pem
ssl_key = </var/qmail/control/servercert.pem
ssl_protocols = !SSLv2 !SSLv3
userdb {
driver = passwd
}
userdb {
args = username_format=%u /usr/local/etc/dovecot/users
driver = passwd-file
}
userdb {
args = quota_template=quota_rule=*:storage=100M
driver = vpopmail
}
protocol sieve {
info_log_path = /var/log/dovecot/dovecot-sieve.log
log_path = /var/log/dovecot/dovecot-sieve-error.log
managesieve_implementation_string = Dovecot Pigeonhole
managesieve_logout_format = bytes=%i/%o
managesieve_max_line_length = 65536
}
protocol imap {
imap_client_workarounds = delay-newmail tb-extra-mailbox-sep
tb-lsub-flags
imap_max_line_length = 64 k
mail_plugin_dir = /usr/local/lib/dovecot
mail_plugins = " notify zlib quota fts fts_solr imap_quota mail_log
antispam imap_zlib"
}
protocol lda {
auth_socket_path = /usr/local/var/run/dovecot/auth-userdb
deliver_log_format = msgid=<%f>-<%s>-%m: %$
hostname = mail.cgilfe.it
info_log_path = /var/log/dovecot/dovecot-deliver.log
log_path = /var/log/dovecot/dovecot-deliver.log
mail_fsync = optimized
mail_plugin_dir = /usr/local/lib/dovecot
mail_plugins = " notify zlib quota fts fts_solr mail_log sieve"
postmaster_address = postmaster at mail.cgilfe.it
rejection_reason = Il messaggio destinato a <%t> è stato
automaticamente rifiutato:%n%r
rejection_subject = Messaggio Rifiutato: %s
submission_host = 127.0.0.1
}
Server B conf (dovecot -n)
# 2.2.15: /usr/local/etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.6 (3e924b1b6c5c+)
# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.8
auth_master_user_separator = *
debug_log_path = /var/log/dovecot/dovecot-debug.log
disable_plaintext_auth = no
first_valid_gid = 89
first_valid_uid = 89
imapc_features = rfc822.size fetch-headers
imapc_host = 192.168.10.50
imapc_master_user = master
imapc_password = AbC100Vale100
imapc_user = %u
info_log_path = /var/log/dovecot/dovecot.log
last_valid_gid = 89
last_valid_uid = 89
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
listen = 0.0.0.0
log_path = /var/log/dovecot/dovecot-err.log
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_fsync = never
mail_gid = 89
mail_location = maildir:~/Maildir:INDEX=/var/index/%u
mail_plugins = " notify zlib quota fts fts_solr"
mail_prefetch_count = 20
mail_uid = 89
mailbox_list_index = yes
maildir_very_dirty_syncs = yes
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 ihave duplicate
mmap_disable = yes
namespace {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
separator = /
type = private
}
namespace {
list = children
location =
maildir:/var/mail/public:CONTROL=~/Maildir/public:INDEXPVT=~/Maildir/public
prefix = Public/
separator = /
subscriptions = yes
type = public
}
passdb {
args = /usr/local/etc/dovecot/passwd.masterusers
driver = passwd-file
master = yes
pass = yes
}
passdb {
driver = shadow
}
passdb {
args = /usr/local/etc/dovecot/passwd.masterusers
driver = passwd-file
master = yes
pass = yes
}
passdb {
driver = shadow
}
passdb {
args = webmail=127.0.0.1 cache_key=%u%s
driver = vpopmail
}
plugin {
fts = solr
fts_autoindex = yes
fts_decoder = decode2text
fts_solr = url=http://192.168.119.5:8983/solr/ break-imap-search
mail_log_events = delete undelete expunge copy
mail_log_fields = uid box msgid size
mail_log_group_events =
quota = maildir
quota_rule = ?:storage=0
quota_rule2 = Trash:storage=+20%%
quota_warning = storage=95%% quota-warning 95 %u
quota_warning2 = storage=80%% quota-warning 80 %u
}
protocols = imap sieve
service auth {
unix_listener auth-master {
group = vchkpw
mode = 0600
user = vpopmail
}
unix_listener auth-userdb {
group = vchkpw
mode = 0600
user = vpopmail
}
}
service decode2text {
executable = script /usr/local/libexec/dovecot/decode2text.sh
unix_listener decode2text {
mode = 0666
user = dovecot
}
}
service imap-login {
executable = /usr/local/libexec/dovecot/imap-login
inet_listener imaps {
address = 192.168.10.53
}
process_limit = 500
process_min_avail = 2
service_count = 0
}
service imap {
executable = /usr/local/libexec/dovecot/imap
}
service managesieve-login {
executable = managesieve-login
inet_listener sieve {
address = 127.0.0.1
port = 4190
}
process_min_avail = 2
service_count = 0
}
service managesieve {
process_limit = 10
}
service quota-warning {
executable = script /usr/local/libexec/dovecot/quota-warning
unix_listener quota-warning {
mode = 0660
user = vpopmail
}
user = vpopmail
}
ssl_cert = </var/qmail/control/servercert.pem
ssl_cipher_list =
ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA:AES256-SHA:DHE-RSA-CAMELLIA128-SHA:DHE-RSA-CAMELLIA256-SHA:CAMELLIA128-SHA:CAMELLIA256-SHA:ECDHE-RSA-DES-CBC3-SHA:DES-CBC3-SHA:!SSLv2
ssl_key = </var/qmail/control/servercert.pem
ssl_prefer_server_ciphers = yes
ssl_protocols = !SSLv2 !SSLv3
userdb {
driver = passwd
}
userdb {
driver = passwd
}
userdb {
args = quota_template=quota_rule=*:backend=%q
driver = vpopmail
}
protocol sieve {
info_log_path = /var/log/dovecot/dovecot-sieve.log
log_path = /var/log/dovecot/dovecot-sieve-error.log
managesieve_implementation_string = Dovecot Pigeonhole
managesieve_logout_format = bytes=%i/%o
managesieve_max_line_length = 65536
}
protocol imap {
imap_client_workarounds = delay-newmail tb-extra-mailbox-sep
tb-lsub-flags
imap_max_line_length = 64 k
mail_max_userip_connections = 40
mail_plugin_dir = /usr/local/lib/dovecot
mail_plugins = " notify zlib quota fts fts_solr imap_quota mail_log
imap_zlib"
}
protocol lda {
auth_socket_path = /usr/local/var/run/dovecot/auth-userdb
deliver_log_format = msgid=<%f>-<%s>-%m: %$
hostname = mail.cgilfe.it
info_log_path = /var/log/dovecot/dovecot-deliver.log
log_path = /var/log/dovecot/dovecot-deliver.log
mail_fsync = optimized
mail_plugin_dir = /usr/local/lib/dovecot
mail_plugins = " notify zlib quota fts fts_solr mail_log sieve"
postmaster_address = postmaster at mail.cgilfe.it
rejection_reason = Il messaggio destinato a <%t> ▒ stato
automaticamente rifiutato:%n%r
rejection_subject = Messaggio Rifiutato: %s
submission_host = 127.0.0.1
}
--
*Davide Marchi*
*T*eorema *F*errara *S*rl
*V*ia *S*pronello, 7 - *F*errara - 44121
*Tel*: 0532783161 - *Fax*: 0532783368
*E-mail*: davide.marchi at mail.cgilfe.it
*Skype*: davide.marchi73
*Web*: http://www.cgilfe.it
More information about the dovecot
mailing list