disable deflate compression in rawlog files

2018-01-26 Thread Daniel Betz
Hello list,

is there an way to disable the deflate compression ( imap_zlib ) in the rawlog 
files, e.g. via postlogin script when dovecot.rawlog folder exists ?

Rawlog shown at the moment like:
1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT 
SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND 
URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED 
I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH 
LIST-STATUS BINARY MOVE COMPRESS=DEFLATE QUOTA] Logged in
* NAMESPACE (("INBOX." ".")) NIL NIL
2 OK Namespace completed (0.001 + 0.000 secs).
3 OK Begin compression (0.001 + 0.000 secs).
RtQPKMURPr/KM/....



Regards,

Daniel Betz
System Design Engineer / Senior Systemadministration 
___

domainfactory GmbH
Oskar-Messter-Str. 33
85737 Ismaning
Germany

Telefon:  +49 (0)89 / 55266-364
Telefax:  +49 (0)89 / 55266-222

E-Mail:   db...@df.eu
Internet: www.df.eu

Registergericht: Amtsgericht München
HRB-Nummer 150294, Geschäftsführer:
Dr. Claus Boyens, Tobias Mohr




Migrate from dovecot 1.1 to 2.2 Maildir to 2.2 mdbox

2016-12-08 Thread Daniel Betz
Hello list,

im am trying to migrate customer mails via dsync from an old dovecot 1.1 setup 
to an new installed dovecot 2.2.25 setup with mdbox.
Upgrading the old dovecot 1.1 to 2.2 with Maildir isnt an problem and the 
replication to the new setup works well too.

The only problem now is, that the POP3 UIDL are completely wrong on the target 
setup.
Im using for Maildir pop3_uidl_format = %f
With mdbox i cant use it anymore.

But what do i need for mdbox ?
Or is there an way to migrate the POP3 uidl list to the mdbox ?

I could live with it, when i were able to mark the mails older 14 days as read. 
Is there an way to do this on many mailboxes ?

I have read in Release News from 2.2.26 that there are some fixes with POP3 
UIDL .. what is it in detail and could it help me ?

Hop you can point me to the right direction.


Regards,
Daniel






Freundliche Grüße,

Daniel Betz
System Design Engineer / Senior Systemadministration
___

domainfactory GmbH
Oskar-Messter-Str. 33
85737 Ismaning
Germany

Telefon:  +49 (0)89 / 55266-364
Telefax:  +49 (0)89 / 55266-222

E-Mail:   db...@df.eu<mailto:db...@df.eu>
Internet: www.df.eu<http://www.df.eu/>

Registergericht: Amtsgericht München
HRB-Nummer 150294, Geschäftsführer:
Tobias Mohr, Stephan Wolfram


Dovecot performance and proxy loops with IPv6

2017-02-02 Thread Daniel Betz
Hello list,

i run here an large mailsetup with some million mailboxes and got strange 
performance problems, cause i think i have overseen or forgotten an simple 
setting.

Here are some details:

21 CentOS 7 Servers with dovecot 2.2.25 and ldap userdb/passdb via socket 
behind an hardware loadbalancer.
The storage behind is an ISCSI Storage with 4 10Gbit/s multipath paths, 
splitted up to 10 TB volumes for each server with LVM and xfs filesystem. No 
Cluster FS
Each server has about 60.000 to 75.000 mailboxes on it. mailboxes can have up 
to 10Gbyte space.

The Log says this sometimes and complete random:
Feb  1 10:42:49 server1 dovecot: pop3-login: Error: net_connect_unix(pop3) 
failed: Resource temporarily unavailable - 
http://wiki2.dovecot.org/SocketUnavailable
Feb  1 10:42:50 server1 dovecot: pop3-login: Error: net_connect_unix(pop3) 
failed: Resource temporarily unavailable - 
http://wiki2.dovecot.org/SocketUnavailable
Feb  1 10:42:50 server1 dovecot: pop3-login: Error: net_connect_unix(pop3) 
failed: Resource temporarily unavailable - 
http://wiki2.dovecot.org/SocketUnavailable
Feb  1 10:42:50 server1  dovecot: pop3-login: Error: net_connect_unix(pop3) 
failed: Resource temporarily unavailable - 
http://wiki2.dovecot.org/SocketUnavailable
Feb  1 10:42:50 server1 dovecot: imap-login: Error: net_connect_unix(imap) 
failed: Resource temporarily unavailable - 
http://wiki2.dovecot.org/SocketUnavailable
Feb  1 10:42:50 server1 dovecot: pop3-login: Error: net_connect_unix(pop3) 
failed: Resource temporarily unavailable - 
http://wiki2.dovecot.org/SocketUnavailable

Sure i have read the SocketUnavailabe wiki page and changed some settings, but 
the errors are not gone.
Could you please look over my dovecot config and give me some tips or hints 
what to change.

The next this is, when adding IPv6 via DNS to the hosts and login with IPv6 i 
will become an proxy loop.

Settings in nameserver:
server1.domain.com IN A 123.123.123.123
server1.domain.com IN  2001:123::1

The host entry comes from the ldap and says: mailHost: server1.domain.com

Imap Login with IPv6 to server1.domain.com tries to proxy from 
server1.domain.com ( IPv6 ) to server1.domain.com ( IPv6 ) and loops then.
I have removed the IPv6  entries in the dns to stop this loops.
Sorry, but i have no logs for this anymore.

Thanks in advise,
Daniel


And here system configs and dovecot configs:

sysctl:

fs.inotify.max_user_instances = 65535
fs.inotify.max_user_watches = 16384

systemd startup with ulimit settings:

[Unit]
Description=Dovecot Mailservice IMAP/POP

[Service]
Type=simple
LimitCORE=0
LimitNPROC=500
LimitNOFILE=65535
LimitSTACK=81920
LimitDATA=infinity
LimitMEMLOCK=infinity
LimitRSS=infinity
LimitAS=infinity

ExecStart=/usr/local/dovecot2/sbin/dovecot -F -c 
/usr/local/dovecot2/etc/dovecot/dovecot.conf

[Install]
WantedBy=multi-user.target



dovecot-ldap.conf:

uris = ldapi://%2Fvar%2Frun%2Fldapi
dn = cn=xxx,o=domain,c=com
dnpass = x
auth_bind = no
ldap_version = 3
base = o=domain,c=com 
user_attrs = mail=user,mailMessageStore=home,\
mailQuota=quota_rule=*:storage=%$
iterate_filter= (|(mailHost=server1.domain.com)(mailHost=popserver1.domain.com))
user_filter = (&(accountstatus=active)(|(uid=%u)(mail=%u)))
pass_attrs = 
mail=user,userPassword=password,=proxy_maybe=y,mailHost=host,=destuser=%u[%r]
pass_filter = (&(accountstatus=active)(|(uid=%u)(mail=%u)))

dovecot.conf:

# 2.2.25 (7be1766): /usr/local/dovecot2/etc/dovecot/dovecot.conf
# 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 =
auth_verbose = yes
base_dir = /var/run/dovecot/
debug_log_path = /dev/null
default_login_user = dovecot
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 = /dev/stderr
lda_mailbox_autocreate = yes
lda_original_recipient_header = X-Envelope-To
log_path = /dev/stderr
log_timestamp =
login_log_format_elements = user=[%u] method=%m rip=%r lip=%l %c
mail_gid = 1001
mail_location = mdbox:~:INDEX=%h/INDEX
mail_plugins = "notify replication stats"
mail_uid = 1001
mbox_write_locks = fcntl
namespace {
  inbox = yes
  location =
  prefix = INBOX.
  separator = .
  type = private
}
passdb {
  args = /usr/local/dovecot2/etc/dovecot/dovecot-ldap.conf
  driver = ldap
}
plugin {
  quota = dict:User quota::file:%h/mdbox/dovecot-quota
  quota_warning = storage=85%% quota-warning 85 %u
  stats_refresh = 30 secs
  stats_track_cmds = yes
}
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 = 6
}
service auth {
  client_limit = 6
  unix_listener aut

Re: Dovecot performance and proxy loops with IPv6

2017-02-03 Thread Daniel Betz
Ok, got it.

change imap-login and pop-login to these like showed in dovocot wiki for 
high-performance login mode.

service imap-login {
chroot = login
service_count = 0
client_limit = 600
process_limit = 100
process_min_avail = 16
}
service pop3-login {
chroot = login
service_count = 0
client_limit = 600
process_limit = 100
process_min_avail = 16
}


define auth timeout

2017-02-08 Thread Daniel Betz
Hello list,

when reloading dovecot via "doveadm reload" it throws me tons of errors like 
this:
Feb 08 10:57:30 server1 dovecot[18243]: Feb 08 10:57:30 imap: Error: 
net_connect_unix(/run/dovecot/auth-master) failed: Resource temporarily 
unavailable
Feb 08 10:57:30 server1 dovecot[18243]: Feb 08 10:57:30 imap: Error: 
net_connect_unix(/run/dovecot/auth-master) failed: Resource temporarily 
unavailable
Feb 08 10:57:30 server1 dovecot[18243]: Feb 08 10:57:30 imap: Error: 
net_connect_unix(/run/dovecot/auth-master) failed: Resource temporarily 
unavailable
Feb 08 10:57:30 server1 dovecot[18243]: Feb 08 10:57:30 imap: Error: 
net_connect_unix(/run/dovecot/auth-master) failed: Resource temporarily 
unavailable
Feb 08 10:57:30 server1 dovecot[18243]: Feb 08 10:57:30 imap: Error: 
net_connect_unix(/run/dovecot/auth-master) failed: Resource temporarily 
unavailable

this is so long, till all client logins time out:
Feb 08 10:57:30 server1 dovecot[18243]: Feb 08 10:57:30 auth: Error: 
plain(mail@adress,xx.xx.xx.xx.): Request 8576.416 timed out after 
150 secs, state=3
Feb 08 10:57:30 server1 dovecot[18243]: Feb 08 10:57:30 auth: Error: 
plain(mail@adress,xx.xx.xx.xx.): Request 8574.736 timed out after 
150 secs, state=3
Feb 08 10:57:30 server1 dovecot[18243]: Feb 08 10:57:30 auth: Error: 
plain(mail@adress,xx.xx.xx.xx.): Request 13163.1758 timed out 
after 150 secs, state=3
Feb 08 10:57:30 server1 dovecot[18243]: Feb 08 10:57:30 auth: Error: 
plain(mail@adress,xx.xx.xx.xx.): Request 13163.1760 timed out 
after 150 secs, state=3
Feb 08 10:57:30 server1 dovecot[18243]: Feb 08 10:57:30 auth: Error: 
plain(mail@adress,xx.xx.xx.xx.): Request 13163.1761 timed out 
after 150 secs, state=3
Feb 08 10:57:30 server1 dovecot[18243]: Feb 08 10:57:30 auth: Error: 
plain(mail@adress,xx.xx.xx.xx.): Request 13163.1762 timed out 
after 150 secs, state=3
Feb 08 10:57:30 server1 dovecot[18243]: Feb 08 10:57:30 auth: Error: 
plain(mail@adress,xx.xx.xx.xx.): Request 8566.121 timed out after 
150 secs, state=3
Feb 08 10:57:30 server1 dovecot[18243]: Feb 08 10:57:30 auth: Error: 
plain(mail@adress,xx.xx.xx.xx.): Request 8583.1702 timed out 
after 150 secs, state=3
Feb 08 10:57:30 server1 dovecot[18243]: Feb 08 10:57:30 auth: Error: 
login(mail@adress,xx.xx.xx.xx.): Request 8582.1834 timed out 
after 150 secs, state=3
Feb 08 10:57:30 server1 dovecot[18243]: Feb 08 10:57:30 auth: Error: 
plain(mail@adress,xx.xx.xx.xx.): Request 8576.340 timed out after 
150 secs, state=3
Feb 08 10:57:30 server1 dovecot[18243]: Feb 08 10:57:30 auth: Error: 
login(mail@adress,xx.xx.xx.xx.): Request 8576.335 timed out after 
150 secs, state=3

I have searched for this timeout in dovecot config, but havent found something.
Can you tell me how to define this timeout, or is this an LDAP timeout in 
userdb/passdb and dovecot-ldap.conf ?

Or better, how to prevent this failures?
I can see them sometimes in the log too w/o reloading.

Regards,
Daniel


dovecot-ldap.conf:



uris = ldapi://%2Fvar%2Frun%2Fldapi

dn = cn=xxx,o=domain,c=com

dnpass = x

auth_bind = no

ldap_version = 3

base = o=domain,c=com

user_attrs = mail=user,mailMessageStore=home,\ mailQuota=quota_rule=*:storage=%$

iterate_filter= (|(mailHost=server1.domain.com)(mailHost=popserver1.domain.com))

user_filter = (&(accountstatus=active)(|(uid=%u)(mail=%u)))

pass_attrs = 
mail=user,userPassword=password,=proxy_maybe=y,mailHost=host,=destuser=%u[%r]

pass_filter = (&(accountstatus=active)(|(uid=%u)(mail=%u)))



dovecot.conf:
# 2.2.25 (7be1766): /usr/local/dovecot2/etc/dovecot/dovecot.conf
# 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 =
auth_verbose = yes
base_dir = /var/run/dovecot/
debug_log_path = /dev/null
default_login_user = dovecot
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 = " notify replication stats"
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
  loca

How to dsync mdbox compressed to maildir uncompressed

2017-02-21 Thread Daniel Betz
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 
i...@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=6 } 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 = 6
}
service auth {
  client_limit = 6
  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 = 25
  process_min_avail = 50
  service_count = 250
}
service ipc {
  client_limit = 6
  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 = 25
  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 = 

Re: How to dsync mdbox compressed to maildir uncompressed

2017-02-21 Thread Daniel Betz
Hi Timo,

thank you for the hint, but it doesnt seems to work.

doveadm sync -u i...@test.de 'doveadm -o mail="maildir:~/Maildir" -o 
"mail_plugins=quota" dsync-server -u i...@test.de'
Also tried -o mail=~/Maildir .. -o maildir:~/Maildir .. 

The log throws an error:
Feb 21 13:05:35 doveadm: Error: Panic: io_add(0x1) called twice fd=9, 
callback=0x7f49baa06840 -> 0x7f49ba991e30
Feb 21 13:05:35 doveadm: Error: Error: Raw backtrace: 
/usr/local/dovecot2/lib/dovecot/libdovecot.so.0(+0x92d70) [0x7f49ba9efd70] -> 
/usr/local/dovecot2/lib/dovecot/libdovecot.so.0(default_fatal_handler+0x2a) 
[0x7f49ba9efdda] -> /usr/local/dovecot2/lib/dovecot/libdovecot.so.0(i_fatal+0) 
[0x7f49ba98b4e0] -> 
/usr/local/dovecot2/lib/dovecot/libdovecot.so.0(ioloop_iolist_add+0x83) 
[0x7f49baa03dc3] -> 
/usr/local/dovecot2/lib/dovecot/libdovecot.so.0(io_loop_handle_add+0x3b) 
[0x7f49baa046db] -> /usr/local/dovecot2/lib/dovecot/libdovecot.so.0(+0xa599f) 
[0x7f49baa0299f] -> /usr/local/dovecot2/lib/dovecot/libdovecot.so.0(io_add+0xd) 
[0x7f49baa02a4d] -> 
/usr/local/dovecot2/lib/dovecot/libdovecot.so.0(master_service_io_listeners_add+0x65)
 [0x7f49ba9916d5] -> 
/usr/local/dovecot2/lib/dovecot/libdovecot.so.0(master_service_init_finish+0xb7)
 [0x7f49ba9917a7] -> /usr/local/dovecot2/bin/doveadm(main+0x189) [0x4143a9] -> 
/lib64/libc.so.6(__libc_start_main+0xf5) [0x7f49ba5bcb15] -> 
/usr/local/dovecot2/bin/doveadm() [0x414785]
Feb 21 13:05:35 dsync-local(i...@test.de): Error: read(remote) failed: EOF 
(version not received)
Feb 21 13:05:35 dsync-local(i...@test.de): Error: Remote command died with 
signal 6: doveadm -o mail="maildir:~/Maildir" -o "mail_plugins=quota" 
dsync-server -u i...@test.de dsync-server

Regards,
Daniel



Von: Timo Sirainen [mailto:t...@iki.fi] 
Gesendet: Dienstag, 21. Februar 2017 12:01
An: Daniel Betz 
Cc: dovecot@dovecot.org
Betreff: Re: How to dsync mdbox compressed to maildir uncompressed

On 21 Feb 2017, at 12.49, Daniel Betz  wrote:

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 
i...@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).

Run it via two processes so you can give separate settings for them, something 
like:

doveadm sync -u imap@test.d 'doveadm -o mail=~/Maildir -o 
mail_plugins=everything-but-zlib dsync-server'


Re: How to dsync mdbox compressed to maildir uncompressed

2017-02-22 Thread Daniel Betz
Hi Thomas,

this doesnt work:

doveadm -o plugin/quota= -o plugin/zlib_save= backup -u imap at test.de 
maildir:~/Maildir

file Maildir/cur/1487752497.M128284P11684.mail,S=7691,W=7887:2,S
Maildir/cur/1487752497.M128284P11684.mail,S=7691,W=7887:2,S: gzip compressed 
data, from Unix

Regards,
Daniel


Re: How to dsync mdbox compressed to maildir uncompressed

2017-02-22 Thread Daniel Betz
Hi Thomas,

thank you for your help. This is very strange that it wont work here.

can you doveconf -n the relevant parts especially mail_plugins= and plugin { }
i think i have misconfigured something :(

Regards,
Daniel


Re: Migrated from maildir to sdbox: questions

2019-06-13 Thread Daniel Betz via dovecot
Hi Ranbir,

i think youre just using the wrong quota backend.

https://wiki2.dovecot.org/Quota

You should switch from "quota = maildir" to another one, like dict.

Converting your Public mailbox you could try this ( no guarantee .. just 
guessing. make backup ! ):
doveadm -o mail_location="maildir:/var/spool/mail/thesandhufamily.ca/public" 
sync sdbox:/target/folder

Regards,
Daniel


> 
> Hi Everyone,
> 
> I migrated my maildir mailboxes to sdbox without any show stopping errors,
> but I did see this during the migration and now I'm also seeing it in the log:
> 
> Warning: quota: Namespace '' is not Maildir, skipping for Maildir++ quota
> 
> I'm not quite sure why this is happening. Any ideas?
> 
> I am using a "public" namespace for several mailboxes to share emails:
> 
> # public namespace configuration
> namespace {
>   type = public
>   # the default separator for Maildir is ".", so that is what should be
>   # used automatically.
>   separator = .
>   prefix = Public.
>   location = maildir:/var/spool/mail/thesandhufamily.ca/public
>   subscriptions = no
> }
> 
> Under the "public" dir in the old maildir setup, I have folders configured for
> various mail accounts. For example:
> 
> .Ads
> .Junk
> .Bills
> 
> etc.
> 
> These "users" are setup in a passwd file so that I can use a different mail
> storage location for them than the one they get from ldap (same as above).
> 
> Using dsync to migrate my other mailboxes was easy, but I don't know how
> to migrate these public mailboxes. I looked through the wiki and didn't see
> anything about how to do it. Could someone explain how I can migrate the
> public mailboxes?
> 
> 
> --
> Ranbir
>