AW: Problem syncing mailboxes using doveadm sync

Przemysław Orzechowski przemek.orzechowski at makolab.pl
Wed Jun 18 11:21:35 UTC 2014


On 18.06.2014 12:53, Alan McGinlay wrote:
>
>
> On 2014-06-18 12:28, Przemysław Orzechowski wrote:
>> On 18.06.2014 11:28, Patrick De Zordo wrote:
>> Would you really "sync" or just "backup"?
>> To help decide, are you changing messages on both servers or is the 
>> second one just a backup-server?
>>
>> In case of backup you could use this command:
>> doveadm backup -u user at example.com ssh backup.server.com doveadm 
>> dsync-server -u user at example.com
>> the problem is messages can be changed on both servers (this
>> situation can last for about 1 month till the old server is finally
>> retired)
>> I have made initial backup using this command
>> doveadm -v -o imapc_host=src.srv -o imapc_user=test at domain.tld -o
>> pop3c_user=test at domain.tld -o imapc_password='pass' -o
>> pop3c_password='pass' -o mail_fsync=never -o mail_prefetch_count=20
>> backup -R -u test at domain.tld imapc:
>> Backup was successfull
>>
>> When i try later to do sync it seems to work only from remote to
>> loacal (src.srv to the server im runing dovecot sync command on) and
>> not the other way
>> if i ommit -R in the sync command dovecot generates an error.
>> Could this help you?
>>
>> Cheers!
>>
>> ---------------------------------------------------------------------
>> Mit freundlichen Grüßen / Distinti saluti / Kind regards
>> De Zordo Patrick
>> patrick at spamreducer.eu
>> Follow me on Skype: zorpat
>> Follow me on Facebook: https://www.facebook.com/patrick.dezordo
>> Follow me on GIThub: https://github.com/zorpat
>> Follow me on Twitter: https://twitter.com/PDZTECH
>>
>> ------------------------------------------------------------------------------------------------------- 
>>
>> Please use S/MIME encryption when writing to me, it’s a big security 
>> benefit!
>> The Secure/Multipurpose Internet Mail Extensions (S/MIME) protocol to 
>> digitally sign or encrypt emails. S/MIME Encryption provides message 
>> integrity, authentication, privacy via data encryption, and 
>> non-repudiation via digital signatures. Most mail clients support 
>> S/MIME, such as Microsoft Outlook, Thunderbird, Apple Mail, Lotus 
>> Notes, and Mulberry Mail.
>> In detail:
>> - prevents tampering of email content
>> - prove message origin
>> - prevent exposure of email content
>> - flexible and secure communication
>> - easy to implement
>> ------------------------------------------------------------------------------------------------------- 
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: dovecot [mailto:dovecot-bounces at dovecot.org] Im Auftrag von
>> Przemyslaw Orzechowski
>> Gesendet: Mittwoch, 18. Juni 2014 07:28
>> An: Dovecot Mailing List
>> Betreff: Problem syncing mailboxes using doveadm sync
>>
>> Hi
>> command im using command bellow on destination server rtying to make
>> keep it in sync after initialy doing doveadm backup -R
>>
>> doveadm -Dv -o imapc_host=src.srv -o imapc_user=test at domain.tld -
>> opop3c_user=test at domain.tld -o imapc_password='pass' -o
>> pop3c_password='pass' -o mail_fsync=never -o mail_prefetch_count=20
>> sync -f -1 -R -u test at domain.tld imapc:
>>
>> Im using dovecot on both source and destination server (source is 
>> dovecot
>> 1.0.10 destination is 2.2.9)
>>
>> Destination box is Ubuntu 14.04 LTS with dovecot installed using apt.
>>
>> When i create new mail message on the serrver where i run this 
>> command its
>> not propagated to the remote (old) server Is this command wrong ?
>
> What error is generated when you omit -R ?
>
Relevant lines (stipped all lines between successfull start and the 
error mostly Debug: brain lines

doveadm(root): Debug: Loading modules from directory: 
/usr/lib/dovecot/modules/doveadm
doveadm(root): Debug: Skipping module doveadm_acl_plugin, because 
dlopen() failed: 
/usr/lib/dovecot/modules/doveadm/lib10_doveadm_acl_plugin.so: undefined 
symbol: acl_user_module (this is usually intentional, so just ignore 
this message)
doveadm(root): 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)
doveadm(root): 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)
doveadm(root): Debug: Skipping module doveadm_fts_plugin, because 
dlopen() failed: 
/usr/lib/dovecot/modules/doveadm/lib20_doveadm_fts_plugin.so: undefined 
symbol: fts_backend_rescan (this is usually intentional, so just ignore 
this message)
...
dsync(test at domain.tld): Panic: file dsync-mailbox-import.c: line 2136 
(reassign_unwanted_uids): assertion failed: (wanted_count == saved_count)
dsync(test at domain.tld): Error: Raw backtrace: 
/usr/lib/dovecot/libdovecot.so.0(+0x5e271) [0x7fe6b1dc0271] -> 
/usr/lib/dovecot/libdovecot.so.0(default_fatal_handler+0x2a) 
[0x7fe6b1dc02da] -> /usr/lib/dovecot/libdovecot.so.0(i_fatal+0) 
[0x7fe6b1d7ba9e] -> doveadm(dsync_mailbox_import_deinit+0x890) 
[0x7fe6b29e44a0] -> doveadm(+0x33489) [0x7fe6b29df489] -> 
doveadm(dsync_brain_sync_mails+0x723) [0x7fe6b29dfca3] -> 
doveadm(dsync_brain_run+0x523) [0x7fe6b29dc0f3] -> doveadm(+0x2d974) 
[0x7fe6b29d9974] -> doveadm(+0x15b5b) [0x7fe6b29c1b5b] -> 
doveadm(doveadm_mail_try_run+0x26c) [0x7fe6b29c28ac] -> 
doveadm(main+0x414) [0x7fe6b29c16d4] -> 
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7fe6b19bdec5] 
-> doveadm(+0x15922) [0x7fe6b29c1922]
Aborted (core dumped)




More information about the dovecot mailing list