Probleme mit dsync

Bernd Blana bernd at bblana.de
Do Sep 13 10:18:57 CEST 2018


Hallo Klaus,

zuerst zu deinen Fragen, nein, ich synchronisiere nur einen Dovecot  
und es sind auch keine Ändrungen im Dateisystem/Verzeichnissen  
gemacht. Nun zu dem ausgeführten Befehl:

root at mail :~# dsync -D -o plugin/quota= -f -u yyyy.xxxx at example.de  
backup maildir:/var/mail_backup/mail/test > dovecot_bh.txt
Debug: Loading modules from directory: /usr/lib/dovecot/modules/doveadm
Debug: Skipping module doveadm_acl_plugin, because dlopen() failed:  
/usr/lib/dovecot/modules/doveadm/lib10_doveadm_acl_plugin.so:  
undefined symbol: acl_lookup_dict_iterate_visible_next (this is  
usually intentional, so just ignore this message)
Debug: Skipping module doveadm_expire_plugin, because dlopen() failed:  
/usr/lib/dovecot/modules/doveadm/lib10_doveadm_expire_plugin.so:  
undefined symbol: expire_set_deinit (this is usually intentional, so  
just ignore this message)
Debug: Skipping module doveadm_quota_plugin, because dlopen() failed:  
/usr/lib/dovecot/modules/doveadm/lib10_doveadm_quota_plugin.so:  
undefined symbol: quota_user_module (this is usually intentional, so  
just ignore this message)
Debug: Module loaded:  
/usr/lib/dovecot/modules/doveadm/lib10_doveadm_sieve_plugin.so
Debug: Skipping module doveadm_fts_plugin, because dlopen() failed:  
/usr/lib/dovecot/modules/doveadm/lib20_doveadm_fts_plugin.so:  
undefined symbol: fts_user_get_language_list (this is usually  
intentional, so just ignore this message)
doveadm(yyyy.xxxx at example.de ): Debug: Added userdb setting:  
plugin/quota_rule=*:storage=0M
doveadm(yyyy.xxxx at example.de ): Debug: Effective uid=1001, gid=1001,  
home=/var/vmail/mailboxes/example.de/yyyy.xxxx
doveadm(yyyy.xxxx at example.de ): Debug: Namespace inbox: type=private,  
prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes  
location=maildir:~/mail:LAYOUT=fs
doveadm(yyyy.xxxx at example.de ): Debug: fs:  
root=/var/vmail/mailboxes/example.de/yyyy.xxxx/mail, index=,  
indexpvt=, control=,  
inbox=/var/vmail/mailboxes/example.de/yyyy.xxxx/mail, alt=
doveadm(yyyy.xxxx at example.de ): Debug: Namespace : Using permissions  
from /var/vmail/mailboxes/example.de/yyyy.xxxx/mail: mode=0700  
gid=default
dsync(yyyy.xxxx at example.de ): Debug: Effective uid=1001, gid=1001,  
home=/var/vmail/mailboxes/example.de/yyyy.xxxx
dsync(yyyy.xxxx at example.de ): Debug: Namespace inbox: type=private,  
prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes  
location=maildir:/var/mail_backup/mail/test
dsync(yyyy.xxxx at example.de ): Debug: maildir++:  
root=/var/mail_backup/mail/test, index=, indexpvt=, control=,  
inbox=/var/mail_backup/mail/test, alt=
dsync(yyyy.xxxx at example.de ): Error:  
stat(/var/mail_backup/mail/test/subscriptions) failed: Permission denied
dsync(yyyy.xxxx at example.de ): Error: Mailbox listing for namespace ''  
failed: Internal error occurred. Refer to server log for more  
information. [2018-09-12 21:37:31]

Danke für deine Hilfe, liebe Grüße

Bernd

----------------ursprüngliche Nachricht-----------------
Von: Klaus Tachtler [klaus at tachtler.net ]
An: Alles rund um Dovecot-Server [dovecot at listen.jpberlin.de ]
Datum: Mon, 10 Sep 2018 14:35:40 +0200
-------------------------------------------------


> Hallo Bernd,
>
> was passiert, wenn Du die Option -D (Debug) noch hinzufügst?
> # dsync -D -o plugin/quota= -f -u yyyy.xxxx at example.de backup  
> maildir:/var/mail_backup/mail/test
>
> Offene Fragen:
> =============
>
> Synchronisierst Du mehrere Dovecot?
>
> Wurden im Dateisystem/Verzeichnissen welche Deovecot nutzt,  
> Änderungen durchgeführt?
>
>
> Grüße
> Klaus.
>
>> Hallo Klaus,
>>
>> hier ein doveconf -n:
>> # 2.2.22 (fe789d2): /etc/dovecot/dovecot.conf
>> # Pigeonhole version 0.4.13 (7b14904)
>> # OS: Linux 4.4.0-134-generic x86_64 Ubuntu 16.04.5 LTS
>> auth_master_user_separator = *
>> auth_mechanisms = plain login
>> mail_gid = vmail
>> mail_home = /var/vmail/mailboxes/%d/%n
>> mail_location = maildir:~/mail:LAYOUT=fs
>> mail_privileged_group = vmail
>> 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 inbox {
>> inbox = yes
>> location =
>> mailbox Drafts {
>> auto = subscribe
>> special_use = \Drafts
>> }
>> mailbox Sent {
>> auto = subscribe
>> special_use = \Sent
>> }
>> mailbox Spam {
>> auto = subscribe
>> special_use = \Junk
>> }
>> mailbox Trash {
>> auto = subscribe
>> special_use = \Trash
>> }
>> prefix =
>> separator = /
>> }
>> passdb {
>> args = /etc/dovecot/dovecot-sql-master.conf.ext
>> driver = sql
>> master = yes
>> pass = yes
>> }
>> passdb {
>> args = /etc/dovecot/dovecot-sql.conf
>> driver = sql
>> }
>> plugin {
>> antispam_backend = pipe
>> antispam_pipe_program = /var/vmail/spampipe.sh
>> antispam_pipe_program_notspam_arg = --ham
>> antispam_pipe_program_spam_arg = --spam
>> antispam_spam = Spam
>> antispam_trash = Trash
>> quota = maildir:User quota
>> quota_exceeded_message = Benutzer %u hat das Speichervolumen  
>> überschritten. / User %u has exhausted allowed storage space.
>> sieve = /var/vmail/sieve/%d/%n/active-script.sieve
>> sieve_before = /var/vmail/sieve/global/spam-global.sieve
>> sieve_dir = /var/vmail/sieve/%d/%n/scripts
>> }
>> protocols = imap lmtp sieve
>> service auth {
>> unix_listener /var/spool/postfix/private/auth {
>> group = postfix
>> mode = 0660
>> user = postfix
>> }
>> unix_listener auth-userdb {
>> group = vmail
>> mode = 0660
>> user = vmail
>> }
>> }
>> service imap-login {
>> inet_listener imap {
>> port = 143
>> }
>> }
>> service lmtp {
>> unix_listener /var/spool/postfix/private/dovecot-lmtp {
>> group = postfix
>> mode = 0660
>> user = postfix
>> }
>> user = vmail
>> }
>> service managesieve-login {
>> inet_listener sieve {
>> port = 4190
>> }
>> }
>> ssl = required
>> ssl_cert = </etc/letsencrypt/live/mail.example.de/fullchain.pem
>> ssl_cipher_list =  
>> EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA256:EECDH:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!IDEA:!ECDSA:kEDH:CAMELLIA128-SHA:AES128-SHA
>> ssl_dh_parameters_length = 2048
>> ssl_key = </etc/letsencrypt/live/mail.example.de/privkey.pem
>> ssl_prefer_server_ciphers = yes
>> ssl_protocols = !SSLv2 !SSLv3
>> userdb {
>> args = /etc/dovecot/dovecot-sql.conf
>> driver = sql
>> }
>> protocol imap {
>> imap_idle_notify_interval = 29 mins
>> mail_max_userip_connections = 20
>> mail_plugins = " quota imap_quota antispam"
>> }
>> protocol lmtp {
>> mail_plugins = " sieve"
>> postmaster_address = postmaster at example.de Es wurde sonst keine  
>> Veräanderungen im Sytem vergenommen. Ich benutzt übrigens dein  
>> Script für das Backup, danke dafür!!
>>
>> Liebe Grüße
>> Bernd
>>
>>
>> ----------------ursprüngliche Nachricht-----------------
>> Von: Klaus Tachtler [klaus at tachtler.net ]
>> An: Alles rund um Dovecot-Server [dovecot at listen.jpberlin.de ]
>> Datum: Mon, 10 Sep 2018 08:35:54 +0200
>> -------------------------------------------------
>>
>>
>>> Hallo Bernd,
>>>
>>> wie sieht denn die Dovecot Konfiguration aus (z.B. doveconf -n)?
>>>
>>> Synchronisierst Du mehrere Doevcot?
>>>
>>> Wurden im Dateisystem/Verzeichnissen welche Deovecot nutzt,  
>>> Änderungen durchgeführt?
>>>
>>> Grüße
>>> Klaus.
>>>
>>>
>>>> Hallo zusammen,
>>>> ich benutze seit einiger Zeit dsync um das Backup meiner  
>>>> Postfächer zu machen. Es hat alles gut funktioniert, aber seit  
>>>> ein paar Tagen werden 2 Postfächer ausgelassen:
>>>>
>>>> 2018/09/04 00:16:40 INFO: - Number of determined users: 41
>>>> 2018/09/04 00:16:40 INFO: - ...Summary of failed users: 2
>>>> 2018/09/04 00:16:40 INFO: - ...Mailbox of failed users:
>>>> 2018/09/04 00:16:40 INFO: - ...xxx.yyyy at example.de 2018/09/04  
>>>> 00:16:40 INFO: - ... yyyy.xxxx at example.de Ein direkter Test, ohne  
>>>> Script:
>>>> dsync -o plugin/quota= -f -u yyyy.xxxx at example.de backup  
>>>> maildir:/var/mail_backup/mail/test
>>>> dsync( yyyy.xxxx at example.de ): Warning: Mailbox changes caused a  
>>>> desync. You may want to run dsync again.
>>>>
>>>> Ein Versuch einer Reperatur mit doveadm-force-resync hat auch  
>>>> nichts gebracht.
>>>>
>>>> Hat jemand eine Idee wie ich das Problem lösen kann?
>>>>
>>>> Liebe Grüße
>>>> Bernd
>>>>
>>>> .
>>>>
>>>> Bund Freikirchlicher Pfingstgemeinden KdoeR
>>>> Bernd Blana
>>>> Leiter EDV
>>>> Industriestr. 6-8 64390 Erzhausen
>>>> Tel. +49 6150 973730
>>>> Fax +49 6150 9737830
>>>> Mobil +49 172 9347742
>>>> Mail mailto:bernd.blana at bfp.de
>>> ----- Ende der Nachricht von Herr Bernd Blana BFP KdöR  
>>> bernd at bblana.de -----
>>>
>>>
>>>
>>>
>>> -- 
>>>
>>> ------------------------------------------------
>>> e-Mail : klaus at tachtler.net Homepage: https://www.tachtler.net
>>> DokuWiki: https://dokuwiki.tachtler.net
>>> ------------------------------------------------
>>>
>>>
>>>
>>
>>
>> Bund Freikirchlicher Pfingstgemeinden KdoeR
>> Bernd Blana
>> Leiter EDV
>> Industriestr. 6-8 64390 Erzhausen
>> Tel. +49 6150 973730
>> Fax +49 6150 9737830
>> Mobil +49 172 9347742
>> Mail mailto:bernd.blana at bfp.de
>
> ----- Ende der Nachricht von Bernd Blana bernd at bblana.de -----
>
>
>
>
> -- 
>
> ------------------------------------------------
> e-Mail : klaus at tachtler.net Homepage: https://www.tachtler.net
> DokuWiki: https://dokuwiki.tachtler.net
> ------------------------------------------------
>
>
>


Bund Freikirchlicher Pfingstgemeinden KdoeR
Bernd Blana
Leiter EDV
Industriestr. 6-8 64390 Erzhausen
Tel. +49 6150 973730
Fax +49 6150 9737830
Mobil +49 172 9347742
Mail mailto:bernd.blana at bfp.de



Mehr Informationen über die Mailingliste Dovecot