RES: Sieve scripts not backed up

Ricardo Machini Barbosa ricardomachini at gmail.com
Mon Dec 17 03:34:30 EET 2018


I got the same problem.

# When I run doveadm backup on remote host with dovecot package version
2.3.3 no sieve scripts are copied
See debug log (sieve grep):
Debug: Module loaded:
/usr/lib64/dovecot/doveadm/lib10_doveadm_sieve_plugin.so

# When I run doveadm backup on remote host with dovecot compiled from source
version 2.2.33.2 the sieve scripts are copied
See debug log:

dsync-local(username at domain.com.br)<udt2LCL4FlzbsAAAYOMG6w>: Debug: sieve:
Pigeonhole version 0.5.4 (60b0f48d) initializing
dsync-local(username at domain.com.br)<udt2LCL4FlzbsAAAYOMG6w>: Debug: sieve:
include: sieve_global is not set; it is currently not possible to include
`:global' scripts.
dsync-local(username at domain.com.br)<udt2LCL4FlzbsAAAYOMG6w>: Debug: sieve:
Sieve imapsieve plugin for Pigeonhole version 0.5.4 (60b0f48d) loaded
dsync-local(username at domain.com.br)<udt2LCL4FlzbsAAAYOMG6w>: Debug: sieve:
Sieve Extprograms plugin for Pigeonhole version 0.5.4 (60b0f48d) loaded
dsync-local(username at domain.com.br)<udt2LCL4FlzbsAAAYOMG6w>: Debug: sieve:
file storage: Storage path
`/data/dovecot/mailbox/domain.com.br/username/sieve' not found
dsync-local(username at domain.com.br)<udt2LCL4FlzbsAAAYOMG6w>: Debug: sieve:
file storage: Using active Sieve script path:
/data/dovecot/mailbox/domain.com.br/username/.dovecot.sieve
dsync-local(username at domain.com.br)<udt2LCL4FlzbsAAAYOMG6w>: Debug: sieve:
file storage: Using script storage path:
/data/dovecot/mailbox/domain.com.br/username/sieve
dsync-local(username at domain.com.br)<udt2LCL4FlzbsAAAYOMG6w>: Debug: sieve:
file storage: Using permissions from defaults: mode=0700 gid=-1
dsync-local(username at domain.com.br)<udt2LCL4FlzbsAAAYOMG6w>: Debug: sieve:
file storage: Created storage directory
/data/dovecot/mailbox/domain.com.br/username/sieve/tmp
dsync-local(username at domain.com.br)<udt2LCL4FlzbsAAAYOMG6w>: Debug: sieve:
file storage: Relative path to sieve storage in active link: sieve/
dsync-local(username at domain.com.br)<udt2LCL4FlzbsAAAYOMG6w>: Debug: sieve:
file storage: sync: Synchronization active
dsync-local(username at domain.com.br)<udt2LCL4FlzbsAAAYOMG6w>: Debug: sieve:
file script: File
`/data/dovecot/mailbox/domain.com.br/username/sieve/Filtros.sieve' not found
dsync-local(username at domain.com.br)<udt2LCL4FlzbsAAAYOMG6w>: Debug:
doveadm-sieve: Value missing for key
`vendor/vendor.dovecot/pvt/server/sieve/files/Filtros' (last change:
2018-12-16 23:13:07)
dsync-local(username at domain.com.br)<udt2LCL4FlzbsAAAYOMG6w>: Debug:
doveadm-sieve: Assigned value for key
`vendor/vendor.dovecot/pvt/server/sieve/files/Filtros' (last change:
2018-10-05 17:03:07)
dsync-local(username at domain.com.br)<udt2LCL4FlzbsAAAYOMG6w>: Debug: brain M:
Import INBOX: Import attribute
vendor/vendor.dovecot/pvt/server/sieve/files/Filtros: Nonexistent locally
dsync-local(username at domain.com.br)<udt2LCL4FlzbsAAAYOMG6w>: Debug:
doveadm-sieve: Value missing for key
`vendor/vendor.dovecot/pvt/server/sieve/default' (last change: 2018-12-16
23:13:07)
dsync-local(username at domain.com.br)<udt2LCL4FlzbsAAAYOMG6w>: Debug: sieve:
file script: Opened script `Filtros' from
`/data/dovecot/mailbox/domain.com.br/username/sieve/Filtros.sieve'
dsync-local(username at domain.com.br)<udt2LCL4FlzbsAAAYOMG6w>: Debug:
doveadm-sieve: Assigned value for key
`vendor/vendor.dovecot/pvt/server/sieve/default' (last change: 2018-10-05
17:03:07)
dsync-local(username at domain.com.br)<udt2LCL4FlzbsAAAYOMG6w>: Debug: brain M:
Import INBOX: Import attribute
vendor/vendor.dovecot/pvt/server/sieve/default: Nonexistent locally

Configuration are de same on both hosts.

Regards,
Ricardo

-----Mensagem original-----
De: dovecot [mailto:dovecot-bounces at dovecot.org] Em nome de Marc Weustink
Enviada em: terça-feira, 4 de dezembro de 2018 08:25
Para: dovecot at dovecot.org
Assunto: Sieve scripts not backed up

Hi all.
I try to backup out sieve scripts through
  doveadm  -o stats_writer_socket_path=  backup -R -u marc -N
tcp:<remote.host>:4191

All mail is backed up but no scripts. What am I doing wrong ?

Thanks Marc

  doveconf -n

# 2.3.4 (0ecbaf23d): /etc/dovecot/dovecot.conf # Pigeonhole version 0.5.4
(60b0f48d) # OS: Linux 4.4.0-137-generic x86_64 Ubuntu 16.04.5 LTS autofs #
Hostname: xxx dict {
   acl = pgsql:/etc/dovecot/dovecot-dict-sql-local.conf.ext
}
doveadm_password = # hidden, use -P to show it mail_debug = yes mail_gid =
vmail mail_home = /home/mail/backup/%n mail_location =
maildir:/home/mail/backup/%n/mail mail_uid = vmail
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 namespace Shared {
   location =
maildir:/home/mail/backup/Common/mail:INDEXPVT=/home/mail/backup/%n/mail/com
mon
   prefix = Shared/
   separator = /
   subscriptions = no
   type = public
}
namespace Users {
   list = children
   location =
maildir:/home/mail/backup/%%n/mail:INDEXPVT=/home/mail/backup/%n/mail/shared
/%%n
   prefix = Users/%%n/
   separator = /
   subscriptions = no
   type = shared
}
namespace inbox {
   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
}
passdb {
   args = /etc/dovecot/dovecot-sql.conf.ext
   driver = sql
}
plugin {
   acl = vfile
   acl_shared_dict = proxy::acl
   sieve = file:~/sieve;active=~/.dovecot.sieve
}
protocols = sieve
service auth {
   unix_listener auth-userdb {
     mode = 0777
   }
}
service dict {
   unix_listener dict {
     group = vmail
     user = vmail
   }
}
ssl = no
userdb {
   args = /etc/dovecot/dovecot-sql.conf.ext
   driver = sql
}



More information about the dovecot mailing list