How to dsync mdbox compressed to maildir uncompressed

Daniel Betz dbetz at df.eu
Tue Feb 21 10:49:17 UTC 2017


Hello,

we are using doveadm sync to export mdbox to maildir format, so we can use an external tool to convert into an pst file.
Since we have enabled zlib compression doveadm sync always exports the maildir gzip compressed.

Are there any ways to prevent the doveadm sync to export the maildir compressed ?

Have tried this: doveadm -o "maildir_copy_with_hardlinks=no" sync -u imap at test.de maildir:~/Maildir
>From Wiki: If you want to use dsync to convert to a compressed Maildir you may need -o maildir_copy_with_hardlinks=no (this is set to yes by default and will prevent compression).

Regards,
Daniel


# 2.2.27 (c0f36b0): /usr/local/dovecot2/etc/dovecot/dovecot.conf
doveconf: Warning: service auth { client_limit=60000 } is lower than required under max. load (500500)
# OS: Linux 3.10.0-327.36.3.el7.x86_64 x86_64 CentOS Linux release 7.2.1511 (Core)
auth_cache_negative_ttl = 1 mins
auth_cache_size = 64 M
auth_cache_ttl = 2 hours
auth_mechanisms = plain login
auth_username_chars =
base_dir = /var/run/dovecot/
debug_log_path = /dev/null
default_login_user = dovecot
default_vsz_limit = 750 M
disable_plaintext_auth = no
doveadm_password =  # hidden, use -P to show it
doveadm_port = 12345
first_valid_gid = 1001
first_valid_uid = 1001
info_log_path = /var/log/dovecot/messages
lda_mailbox_autocreate = yes
lda_original_recipient_header = X-Envelope-To
log_path = /dev/stderr
login_log_format_elements = user=[%u] method=%m rip=%r lip=%l %c
mail_gid = 1001
mail_location = mdbox:~:INDEX=%h/INDEX
mail_plugins = quota notify mail_log zlib
mail_uid = 1001
mbox_write_locks = fcntl
namespace {
  inbox = yes
  location =
  mailbox Drafts {
    auto = no
    special_use = \Drafts
  }
  mailbox "Gesendete Elemente" {
    auto = no
    special_use = \Sent
  }
  mailbox "Infizierte Objekte" {
    auto = no
    special_use = \Junk
  }
  mailbox Sent {
    auto = no
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    auto = no
    special_use = \Sent
  }
  mailbox Spam {
    auto = no
    special_use = \Junk
  }
  mailbox Trash {
    auto = no
    special_use = \Trash
  }
  prefix =
  separator = .
  type = private
}
namespace inbox {
  hidden = yes
  inbox = no
  list = no
  location =
  prefix = INBOX.
  separator = .
}
passdb {
  args = /usr/local/dovecot2/etc/dovecot/dovecot-ldap.conf
  driver = ldap
}
passdb {
  args = /usr/local/dovecot2/etc/dovecot/dovecot-ldap2.conf
  driver = ldap
}
plugin {
  quota = dict:User quota::file:%h/mdbox/dovecot-quota
  quota_rule1 = Trash:storage=+100M
  quota_rule2 = INBOX.Trash:storage=+100M
  quota_warning = storage=85%% quota-warning 85 %u
  quota_warning1 = storage=95%% quota-warning 95 %u
  quota_warning2 = storage=99%% quota-warning 99 %u
  zlib_save = gz
  zlib_save_level = 6
}
replication_max_conns = 30
sendmail_path = /usr/local/exim/bin/exim
service aggregator {
  fifo_listener replication-notify-fifo {
    mode = 0666
    user = popuser
  }
  unix_listener replication-notify {
    mode = 0666
    user = popuser
  }
}
service anvil {
  client_limit = 60000
}
service auth {
  client_limit = 60000
  unix_listener auth-userdb {
    mode = 0666
    user = popuser
  }
  unix_listener auth {
    mode = 0666
    user = popuser
  }
}
service config {
  unix_listener config {
    user = popuser
  }
}
service dict {
  unix_listener dict {
    mode = 0666
    user = popuser
  }
}
service dns_client {
  process_limit = 6000
  process_min_avail = 12
  unix_listener dns-client {
    mode = 0666
    user = popuser
  }
}
service doveadm {
  inet_listener {
    port = 12345
  }
  user = popuser
}
service imap-login {
  chroot = login
  client_limit = 6000
  process_limit = 100
  process_min_avail = 16
  service_count = 0
}
service imap {
  executable = /usr/local/dovecot2/libexec/dovecot/imap
  process_limit = 250000
  process_min_avail = 50
  service_count = 250
}
service ipc {
  client_limit = 60000
  unix_listener ipc {
    mode = 0650
    user = dovecot
  }
  unix_listener login/ipc-proxy {
    mode = 0650
    user = dovecot
  }
}
service lmtp {
  unix_listener lmtp {
    mode = 0666
    user = popuser
  }
}
service pop3-login {
  chroot = login
  client_limit = 6000
  process_limit = 100
  process_min_avail = 16
  service_count = 0
}
service pop3 {
  executable = /usr/local/dovecot2/libexec/dovecot/pop3
  process_limit = 250000
  process_min_avail = 50
  service_count = 250
}
service quota-warning {
  executable = script /usr/local/dovecot2/bin/quota-warning.sh
  unix_listener quota-warning {
    mode = 0600
    user = popuser
  }
  user = popuser
}
service replicator {
  unix_listener replicator-doveadm {
    mode = 0600
    user = popuser
  }
}
ssl_cert = </usr/local/dovecot2/etc/dovecot/certs/cert1.crt
ssl_dh_parameters_length = 2048
ssl_key =  # hidden, use -P to show it
ssl_protocols = TLSv1.2 TLSv1.1 TLSv1 !SSLv3 !SSLv2
userdb {
  driver = prefetch
}
userdb {
  args = /usr/local/dovecot2/etc/dovecot/dovecot-ldap.conf
  driver = ldap
}
verbose_proctitle = yes
protocol doveadm {
  mail_plugin_dir = /usr/local/dovecot2/lib/dovecot/
  passdb {
    args = /usr/local/dovecot2/etc/dovecot/dovecot-doveadm.conf
    driver = ldap
    name =
  }
  userdb {
    args = /usr/local/dovecot2/etc/dovecot/dovecot-doveadm.conf
    driver = ldap
    name =
  }
}
protocol lda {
  info_log_path = /var/log/dovecot-lda
  log_path = /var/log/dovecot-lda
  log_timestamp = "%b %d %H:%M:%S "
  mail_plugin_dir = /usr/local/dovecot2/lib/dovecot/
  postmaster_address = %u
}
protocol imap {
  imap_client_workarounds =
  mail_max_userip_connections = 100
  mail_plugin_dir = /usr/local/dovecot2/lib/dovecot/
  mail_plugins = quota notify mail_log zlib imap_quota imap_zlib
}
protocol pop3 {
  mail_plugin_dir = /usr/local/dovecot2/lib/dovecot/
  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
  pop3_enable_last = yes
  pop3_fast_size_lookups = yes
  pop3_reuse_xuidl = no
  pop3_uidl_format = %g
}



More information about the dovecot mailing list