altmove reverse doesn't work
I am having troubles with moving emails from alternative storage to primary storage. If I call command like:
doveadm altmove -r -u myuser@mydomain.yyy ALL
it is doing something (it took almost a minute at first time) but there are still emails in alternative storage. There is not reported any error. Below is my config:
# Pigeonhole version 0.5.14 (1b5c82b2) # OS: Linux 5.3.18-3-pve x86_64 Debian 10.9 # Hostname: mail.mydomain.yyy auth_cache_size = 2 M auth_cache_ttl = 5 mins auth_cache_verify_password_with_worker = yes auth_master_user_separator = * auth_mechanisms = plain login dict { acl = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext quota = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext } disable_plaintext_auth = no imap_client_workarounds = delay-newmail imap_hibernate_timeout = 5 secs imap_id_log = * imap_id_retain = yes login_trusted_networks = 127.0.0.0/8 mail_gid = 2000 mail_home = /var/vmail/%d/%n mail_location = mdbox:~/mdbox:ALT=/var/vmail-archive/%d/%n/mdbox mail_max_userip_connections = 60 mail_plugins = acl zlib fts quota mail_uid = 2000 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 index ihave duplicate mime foreverypart extracttext vacation-seconds editheader imapsieve vnd.dovecot.imapsieve mdbox_rotate_interval = 1 days mdbox_rotate_size = 16 M namespace { inbox = yes location = mailbox "Deleted Items" { auto = no special_use = \Trash } mailbox "Deleted Messages" { auto = no special_use = \Trash } mailbox Drafts { auto = no special_use = \Drafts } mailbox Junk { auto = subscribe special_use = \Junk } mailbox "Junk E-mail" { auto = no special_use = \Junk } mailbox Sent { auto = subscribe special_use = \Sent } mailbox "Sent Items" { auto = no special_use = \Sent } mailbox "Sent Messages" { auto = no special_use = \Sent } mailbox Spam { auto = no special_use = \Junk } mailbox Trash { special_use = \Trash } mailbox virtual/All { auto = no special_use = \All } prefix = separator = / type = private } namespace { inbox = no list = children location = mdbox:/var/vmail/%%d/%%n/mdbox:ALT=/var/vmail-archive/%%d/%%n/mdbox prefix = shared/%%u/ separator = / subscriptions = no type = shared } passdb { args = /etc/dovecot/dovecot-ldap.conf driver = ldap } passdb { args = /etc/dovecot/masters.db driver = passwd-file master = yes pass = yes } plugin { acl = vfile acl_shared_dict = proxy::acl imapsieve_mailbox1_before = file:/var/vmail/sieve/report-spam.sieve imapsieve_mailbox1_causes = COPY imapsieve_mailbox1_name = Spam imapsieve_mailbox2_before = file:/var/vmail/sieve/report-ham.sieve imapsieve_mailbox2_causes = COPY imapsieve_mailbox2_from = Spam imapsieve_mailbox2_name = * imapsieve_mailbox3_before = file:/var/vmail/sieve/report-spam.sieve imapsieve_mailbox3_causes = COPY imapsieve_mailbox3_name = Junk imapsieve_mailbox4_before = file:/var/vmail/sieve/report-ham.sieve imapsieve_mailbox4_causes = COPY imapsieve_mailbox4_from = Junk imapsieve_mailbox4_name = * mailbox_alias_new = Sent Messages mailbox_alias_new2 = Sent Items mailbox_alias_new3 = Deleted Items mailbox_alias_old = Sent mailbox_alias_old2 = Sent mailbox_alias_old3 = Trash quota = dict:User quota::proxy::quota quota_grace = 10%% quota_rule2 = Trash:ignore quota_rule3 = Junk:ignore quota_warning = storage=80%% quota-warning 90 %u quota_warning2 = storage=85%% quota-warning 95 %u quota_warning3 = storage=95%% quota-warning 105 %u sieve = /var/vmail/%d/%n/sieve/.sieve sieve_after = /var/vmail/%d/%n/sieve/autoreply.sieve sieve_before = /var/vmail/sieve/global.sieve sieve_dir = /var/vmail/%d/%n/sieve sieve_extensions = +editheader +vacation-seconds sieve_global_dir = /var/vmail/sieve/ sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.environment sieve_max_redirects = 20 sieve_max_script_size = 2M sieve_pipe_bin_dir = /usr/lib/dovecot sieve_plugins = sieve_imapsieve sieve_extprograms sieve_vacation_send_from_recipient = yes } protocols = imap sieve lmtp pop3 service auth-worker { unix_listener auth-worker { user = vmail } user = $default_internal_user } service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { mode = 0600 user = vmail } user = vmail } service dict { unix_listener dict { mode = 0600 user = vmail } } service imap-hibernate { unix_listener imap-hibernate { group = $default_internal_group mode = 0660 } } service imap-login { process_min_avail = 10 service_count = 0 vsz_limit = 512 M } service imap { executable = imap process_limit = 3500 unix_listener imap-master { user = $default_internal_user } vsz_limit = 2 G } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 user = postfix } } service managesieve-login { inet_listener sieve { port = 4190 } process_min_avail = 0 service_count = 1 vsz_limit = 64 M } service managesieve { process_limit = 400 } service pop3-login { process_min_avail = 3 service_count = 0 vsz_limit = 320 M } service pop3 { process_limit = 200 vsz_limit = 320 M } service quota-warning { executable = script /etc/dovecot/quota_warning.sh unix_listener quota-warning { mode = 0666 user = vmail } user = vmail } ssl_cert =
On 09/04/2021 15:34 Zdeněk Zámečník diego@dixy.cz wrote:
I am having troubles with moving emails from alternative storage to primary storage. If I call command like: doveadm altmove -r -u myuser@mydomain.yyy ALL it is doing something (it took almost a minute at first time) but there are still emails in alternative storage. There is not reported any error. Below is my config:
Try running
doveadm -D altmove -r -u myuser@mydomain.yyy ALL
maybe it sheds some light?
Also, try running doveadm purge after altmove.
Aki
I already trued doveadm purge but with no luck. Also debug parameter doesn't show any interesting output as you can see below. It shows that it's moving about 70000 messages but in fact it doesn't do anything. If I repeat the command the output is still same. I just found that a few other people already explained same problem, for example here: https://dovecot.org/pipermail/dovecot/2021-February/121329.html
Is there any chance to get it fixed in upstream?
Apr 09 14:58:00 Debug: Loading modules from directory: /usr/lib/dovecot/modules Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/lib01_acl_plugin.so Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/lib20_fts_plugin.so Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/lib20_zlib_plugin.so Apr 09 14:58:00 Debug: Loading modules from directory: /usr/lib/dovecot/modules/doveadm Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_acl_plugin.so Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_quota_plugin.so Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_sieve_plugin.so Apr 09 14:58:00 Debug: Skipping module doveadm_fts_lucene_plugin, because dlopen() failed: /usr/lib/dovecot/modules/doveadm/lib20_doveadm_fts_lucene_plugin.so: undefined symbol: lucene_index_iter_deinit (this is usually intentional, so just ignore this message) Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib20_doveadm_fts_plugin.so Apr 09 14:58:00 Debug: Skipping module doveadm_mail_crypt_plugin, because dlopen() failed: /usr/lib/dovecot/modules/doveadm/libdoveadm_mail_crypt_plugin.so: undefined symbol: mail_crypt_box_get_pvt_digests (this is usually intentional, so just ignore this message) Apr 09 14:58:00 doveadm(myuser@mydomain.yyy)<27721><>: Debug: auth-master: userdb lookup(myuser@mydomain.yyy): Started userdb lookup Apr 09 14:58:00 doveadm(myuser@mydomain.yyy)<27721><>: Debug: auth-master: conn unix:/var/run/dovecot/auth-userdb: Connecting Apr 09 14:58:00 doveadm(myuser@mydomain.yyy)<27721><>: Debug: auth-master: conn unix:/var/run/dovecot/auth-userdb (pid=14462,uid=0): Client connected (fd=8) Apr 09 14:58:00 doveadm(myuser@mydomain.yyy)<27721><>: Debug: auth-master: userdb lookup(myuser@mydomain.yyy): auth USER input: myuser@mydomain.yyy quota_rule=*:bytes=20GB Apr 09 14:58:00 doveadm(myuser@mydomain.yyy)<27721><>: Debug: auth-master: userdb lookup(myuser@mydomain.yyy): Finished userdb lookup (username=myuser@mydomain.yyy quota_rule=*:bytes=20GB) Apr 09 14:58:00 doveadm(myuser@mydomain.yyy)<27721><>: Debug: Added userdb setting: plugin/quota_rule=*:bytes=20GB Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: Effective uid=2000, gid=2000, home=/var/vmail/mydomain.yyy.com/myuser Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: Quota root: name=User quota backend=dict args=:proxy::quota Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: Quota rule: root=User quota mailbox=* bytes=21474836480 messages=0 Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: Quota rule: root=User quota mailbox=Trash ignored Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: Quota rule: root=User quota mailbox=Junk ignored Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: Quota warning: bytes=17179869184 (80%) messages=0 reverse=no command=quota-warning 90 myuser@mydomain.yyy Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: Quota warning: bytes=18253611008 (85%) messages=0 reverse=no command=quota-warning 95 myuser@mydomain.yyy Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: Quota warning: bytes=20401094656 (95%) messages=0 reverse=no command=quota-warning 105 myuser@mydomain.yyy Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: Quota grace: root=User quota bytes=2147483648 (10%) Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: quota-dict: user=myuser@mydomain.yyy, uri=proxy::quota, noenforcing=0 Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=mdbox:~/mdbox:ALT=/var/vmail-archive/mydomain.yyy.com/myuser/mdbox Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: fs: root=/var/vmail/mydomain.yyy.com/myuser/mdbox, index=, indexpvt=, control=, inbox=, alt=/var/vmail-archive/mydomain.yyy.com/myuser/mdbox Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: fts: No fts setting - plugin disabled Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: acl: initializing backend with data: vfile Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: acl: acl username = myuser@mydomain.yyy Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: acl: owner = 1 Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: acl vfile: Global ACLs disabled Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: Namespace : type=shared, prefix=shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=no location=mdbox:/var/vmail/%d/%n/mdbox:ALT=/var/vmail-archive/%d/%n/mdbox Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: shared: root=/var/run/dovecot, index=, indexpvt=, control=, inbox=, alt= Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: fts: No fts setting - plugin disabled Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: acl: initializing backend with data: vfile Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: acl: acl username = myuser@mydomain.yyy Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: acl: owner = 0 Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: acl vfile: Global ACLs disabled Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: quota: quota_over_flag check: quota_over_script unset - skipping Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: acl vfile: file /var/vmail/mydomain.yyy.com/myuser/mdbox/mailboxes/INBOX/dbox-Mails/dovecot-acl not found Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: acl vfile: file /var/vmail/mydomain.yyy.com/myuser/mdbox/mailboxes/dovecot-acl not found Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: acl vfile: file /var/vmail/mydomain.yyy.com/myuser/mdbox/mailboxes/Sent Items/dbox-Mails/dovecot-acl not found Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: Mailbox Sent Items: Mailbox opened because: altmove Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: altmove: box=Sent Items uid=4279 Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: Namespace : Using permissions from /var/vmail/mydomain.yyy.com/myuser/mdbox: mode=0770 gid=default Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: altmove: box=Sent Items uid=4280 Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: altmove: box=Sent Items uid=4281 Apr 09 14:58:00 doveadm(myuser@mydomain.yyy): Debug: altmove: box=Sent Items uid=4282 ... Apr 09 14:58:01 doveadm(myuser@mydomain.yyy): Debug: altmove: box=INBOX uid=165052 Apr 09 14:58:01 doveadm(myuser@mydomain.yyy): Debug: altmove: box=INBOX uid=165053 Apr 09 14:58:31 doveadm(myuser@mydomain.yyy): Debug: auth-master: conn unix:/var/run/dovecot/auth-userdb (pid=14462,uid=0): Disconnected: Connection closed (fd=8)
On 4/9/21 2:40 PM, Aki Tuomi wrote:
On 09/04/2021 15:34 Zdeněk Zámečník diego@dixy.cz wrote:
I am having troubles with moving emails from alternative storage to primary storage. If I call command like: doveadm altmove -r -u myuser@mydomain.yyy ALL it is doing something (it took almost a minute at first time) but there are still emails in alternative storage. There is not reported any error. Below is my config:
Try running
doveadm -D altmove -r -u myuser@mydomain.yyy ALL
maybe it sheds some light?
Also, try running doveadm purge after altmove.
Aki
Same here.
doveadm altmove -r is broken, needs to be fixed. We want to recompres our ALT mdbox storage from LZMA to ZSTD and we can not do it because doveadm altmove -r does not work.
Regards
De: dovecot dovecot-bounces@dovecot.org En nombre de Zdenek Zámecník Enviado el: viernes, 9 de abril de 2021 15:12 Para: Aki Tuomi aki.tuomi@open-xchange.com; Dovecot Mailing List dovecot@dovecot.org Asunto: Re: altmove reverse doesn't work
I already trued doveadm purge but with no luck. Also debug parameter doesn't show any interesting output as you can see below. It shows that it's moving about 70000 messages but in fact it doesn't do anything. If I repeat the command the output is still same. I just found that a few other people already explained same problem, for example here: https://dovecot.org/pipermail/dovecot/2021-February/121329.html
Is there any chance to get it fixed in upstream?
Apr 09 14:58:00 Debug: Loading modules from directory: /usr/lib/dovecot/modules
Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/lib01_acl_plugin.so
Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so
Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/lib20_fts_plugin.so
Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/lib20_zlib_plugin.so
Apr 09 14:58:00 Debug: Loading modules from directory: /usr/lib/dovecot/modules/doveadm
Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_acl_plugin.so
Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_quota_plugin.so
Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_sieve_plugin.so
Apr 09 14:58:00 Debug: Skipping module doveadm_fts_lucene_plugin, because dlopen() failed: /usr/lib/dovecot/modules/doveadm/lib20_doveadm_fts_lucene_plugin.so: undefined symbol: lucene_index_iter_deinit (this is usually intentional, so just ignore this message)
Apr 09 14:58:00 Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib20_doveadm_fts_plugin.so
Apr 09 14:58:00 Debug: Skipping module doveadm_mail_crypt_plugin, because dlopen() failed: /usr/lib/dovecot/modules/doveadm/libdoveadm_mail_crypt_plugin.so: undefined symbol: mail_crypt_box_get_pvt_digests (this is usually intentional, so just ignore this message)
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy)<27721><>: Debug: auth-master: userdb lookup(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Started userdb lookup
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy)<27721><>: Debug: auth-master: conn unix:/var/run/dovecot/auth-userdb: Connecting
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy)<27721><>: Debug: auth-master: conn unix:/var/run/dovecot/auth-userdb (pid=14462,uid=0): Client connected (fd=8)
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy)<27721><>: Debug: auth-master: userdb lookup(myuser@mydomain.yyymailto:myuser@mydomain.yyy): auth USER input: myuser@mydomain.yyymailto:myuser@mydomain.yyy quota_rule=*:bytes=20GB
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy)<27721><>: Debug: auth-master: userdb lookup(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Finished userdb lookup (username=myuser@mydomain.yyymailto:username=myuser@mydomain.yyy quota_rule=*:bytes=20GB)
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy)<27721><>: Debug: Added userdb setting: plugin/quota_rule=*:bytes=20GB
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: Effective uid=2000, gid=2000, home=/var/vmail/mydomain.yyy.com/myuser
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: Quota root: name=User quota backend=dict args=:proxy::quota
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: Quota rule: root=User quota mailbox=* bytes=21474836480 messages=0
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: Quota rule: root=User quota mailbox=Trash ignored
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: Quota rule: root=User quota mailbox=Junk ignored
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: Quota warning: bytes=17179869184 (80%) messages=0 reverse=no command=quota-warning 90 myuser@mydomain.yyymailto:myuser@mydomain.yyy
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: Quota warning: bytes=18253611008 (85%) messages=0 reverse=no command=quota-warning 95 myuser@mydomain.yyymailto:myuser@mydomain.yyy
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: Quota warning: bytes=20401094656 (95%) messages=0 reverse=no command=quota-warning 105 myuser@mydomain.yyymailto:myuser@mydomain.yyy
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: Quota grace: root=User quota bytes=2147483648 (10%)
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: quota-dict: user=myuser@mydomain.yyymailto:user=myuser@mydomain.yyy, uri=proxy::quota, noenforcing=0
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=mdbox:~/mdbox:ALT=/var/vmail-archive/mydomain.yyy.com/myuser/mdbox
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: fs: root=/var/vmail/mydomain.yyy.com/myuser/mdbox, index=, indexpvt=, control=, inbox=, alt=/var/vmail-archive/mydomain.yyy.com/myuser/mdbox
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: fts: No fts setting - plugin disabled
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: acl: initializing backend with data: vfile
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: acl: acl username = myuser@mydomain.yyymailto:myuser@mydomain.yyy
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: acl: owner = 1
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: acl vfile: Global ACLs disabled
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: Namespace : type=shared, prefix=shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=no location=mdbox:/var/vmail/%d/%n/mdbox:ALT=/var/vmail-archive/%d/%n/mdbox
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: shared: root=/var/run/dovecot, index=, indexpvt=, control=, inbox=, alt=
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: fts: No fts setting - plugin disabled
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: acl: initializing backend with data: vfile
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: acl: acl username = myuser@mydomain.yyymailto:myuser@mydomain.yyy
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: acl: owner = 0
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: acl vfile: Global ACLs disabled
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: quota: quota_over_flag check: quota_over_script unset - skipping
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: acl vfile: file /var/vmail/mydomain.yyy.com/myuser/mdbox/mailboxes/INBOX/dbox-Mails/dovecot-acl not found
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: acl vfile: file /var/vmail/mydomain.yyy.com/myuser/mdbox/mailboxes/dovecot-acl not found
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: acl vfile: file /var/vmail/mydomain.yyy.com/myuser/mdbox/mailboxes/Sent Items/dbox-Mails/dovecot-acl not found
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: Mailbox Sent Items: Mailbox opened because: altmove
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: altmove: box=Sent Items uid=4279
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: Namespace : Using permissions from /var/vmail/mydomain.yyy.com/myuser/mdbox: mode=0770 gid=default
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: altmove: box=Sent Items uid=4280
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: altmove: box=Sent Items uid=4281
Apr 09 14:58:00 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: altmove: box=Sent Items uid=4282
...
Apr 09 14:58:01 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: altmove: box=INBOX uid=165052
Apr 09 14:58:01 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: altmove: box=INBOX uid=165053
Apr 09 14:58:31 doveadm(myuser@mydomain.yyymailto:myuser@mydomain.yyy): Debug: auth-master: conn unix:/var/run/dovecot/auth-userdb (pid=14462,uid=0): Disconnected: Connection closed (fd=8)
On 4/9/21 2:40 PM, Aki Tuomi wrote:
On 09/04/2021 15:34 Zdeněk Zámečník diego@dixy.czmailto:diego@dixy.cz wrote:
I am having troubles with moving emails from alternative storage to primary storage. If I call command like:
doveadm altmove -r -u myuser@mydomain.yyymailto:myuser@mydomain.yyy ALL
it is doing something (it took almost a minute at first time) but there are still emails in alternative storage. There is not reported any error. Below is my config:
Try running
doveadm -D altmove -r -u myuser@mydomain.yyymailto:myuser@mydomain.yyy ALL
maybe it sheds some light?
Also, try running doveadm purge after altmove.
Aki
participants (3)
-
Aki Tuomi
-
JAVIER MIGUEL RODRIGUEZ
-
Zdeněk Zámečník