Re: Duplicate messages
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 12/12/14 09:39, absolutely_f...@libero.it wrote: Hi, I just moved mail spool to a different network storage. Now, several users are complaining about duplicate message that are fetched by their clients (Outlook, Microsoft Outlook). What is the reason? This is my conf: # dovecot -n # 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-71.el6.x86_64 x86_64 CentOS release 6.6 (Final) auth_mechanisms = plain login digest-md5 cram-md5 disable_plaintext_auth = no first_valid_gid = 89 first_valid_uid = 89 mail_gid = 89 mail_location = maildir:/coraid-s2l2/domains mail_uid = 89 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 imapflags notify mbox_write_locks = fcntl namespace { inbox = yes location = prefix = INBOX. separator = . type = private } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } passdb { args = /etc/dovecot/dovecot-sql-crypt.conf.ext driver = sql } plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/sieve sieve_extensions = +notify +imapflags sieve_max_script_size = 1M } protocols = imap pop3 lmtp sieve ssl_cert = /etc/nginx/ssl/wildcard.server.net.crt ssl_key = /etc/nginx/ssl/wildcard.server.net.key userdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } protocol lmtp { mail_plugins = } protocol lda { mail_plugins = } Hello, Please check if those users have X-UIDL header in their emails. If do, remove header. That should solve the problem. Regards, Miloš -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQEcBAEBCAAGBQJUjAYJAAoJEBkMFHhDgrs5LgAH/2uTkvRPLr0LEme+srIk72cw F5yYiH17K7vaPERTPrmKWZGtpezylWK/7YevjCE44+60L8JZqmIVQ99JRZcvMfSh KP5qu7A41EVXSsAiB75NfTcUEMAYYRSZHpu2rl9lFnGA+5zH9DCqSQrzyatF/DAl pdmLHVDH4Cj9rNAVdEl5u1e3rC0VCV3xXGgIBkIR9wdIhtrzW7Bdt2Ove08ct93t Uqj7mhtTxxBoUU2fDzkLZRdCSQpf8HiaKcgWQPNIcRGM0i+hbw42Sgwyl0XFiXfx f9YxPcT8OahF1+lCnVvQXhR2TiLTbBn+nFN7yWkrNkPlqs8lfIh1t9JOzldrO48= =YCbh -END PGP SIGNATURE-
Re: R: Re: R: Re: Duplicate messages
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 absolutely_f...@libero.it wrote: I simply copied data between two folders I mounted both network storage on this server. After that, I used: # nice -n 19 rsync -av --progress /mnt/old/domains/* /var/spool/pop/domains/ if an user was connected to the Maildir the same time you've duplicated the Maildir, there were changes of the flags, messages moved from .../new to .../cur or from one mailbox to another. So you have some possibilities, where the duplicate messages com from. If these reasons are the ones in your case, nobody knows. On Fri, 12 Dec 2014, absolutely_f...@libero.it wrote: On Fri, 12 Dec 2014, absolutely_f...@libero.it wrote: I just moved mail spool to a different network storage. Now, several users are complaining about duplicate message that are fetched by their clients (Outlook, Microsoft Outlook). What is the reason? How did you moved the message to the other network storage? mail_location = maildir:/coraid-s2l2/domains - -- Steffen -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iQEVAwUBVIxudnD1/YhP6VMHAQIOxggA39/H4NjYPYV6n5S2rLy8TcuQ5QmKb1on AJz3Hl/0MY8mi5Xzsgf6lSaV08HckwxMbhXkM7qi8/QWAsmhVNf3m0+YfJEPYyMt f0ndjqvhVApbDrseN1Cpg/MAHYiz+4wTJ4OsO1SuLOahG5+f7QhRPVf+6wxscgL+ rXd4OaDV2oHj8fxWeOu5k9M0fOTdbP/GDRsvZvA4I+2Qy5dHgE7YmFfTvtA071f5 H2W9dbitCGPhzfF2PbogaI3Py5CCVK2b1e7CdGiJKzGkAoQK5ypiEiYb1L35m4QA xj3ZU1ckilx6XBwRQxvPkcH+pQvOjbhDs7A0M6a0k0HkU8v4Yz5WKg== =Mf1M -END PGP SIGNATURE-
Re: Migrate with Dsync
I tried putting a config file into /etc/dovecot/conf.d/90-dsync.conf, figuring that dovecot.conf would pick it up with the '!include conf.d/*.conf' line, but it didn't get picked up. I have no idea why. What is the difference between the two web pages: http://wiki2.dovecot.org/Migration/Dsync which says to run dysnc via doveadm, e.g., 'doveadm -o mail_fsync=never sync -1 -R -u user@domain imapc:', and http://linux.die.net/man/1/dsync, which says to run 'dynch'? The latter shows a dsync option '-F' to disable fast syncing, for example. Also, is there an option to run dsync in test mode, e.g., to have it show what it thinks needs to be done, without actually doing it? I'm a bit afraid of just running it, since I am not sure that the '-R' option means that the mail gets moved from the remote IMAP server to the dovecot server. Finally, is there a way to have dsync prompt for a user password? I need to do per-user migration (no master account on the remote system) and prefer not to type plain text passwords on command lines nor in config files. Thanks! At 10:38 AM -0800 12/12/14, Randall Gellens wrote: At 6:14 PM +0100 12/11/14, Dominik Breu wrote: i have a simple and maybe stupid question but, read the guide on http://wiki2.dovecot.org/Migration/Dsync now i wonder where to put this configuration ? May i oversee something but i would appreciate any hint toward solving my problem. Hi Dominik, I'm not sure, but my guess is that it goes into a new file in '/etc/dovecot/conf.d/', perhaps with a name such as '90-dsync.conf'. I believe that it is also possible to not write this into a file but instead pass each option on the command line using '-o'. I am trying to figure this out because I want to migrate lots of mail from an old IMAP server to dovecot, and I'd like to preserve the mailbox GUIDs and the message UIDs. -- Randall Gellens Opinions are personal;facts are suspect;I speak for myself only -- Randomly selected tag: --- Arithmetic is being able to count up to twenty without taking off your shoes. -- Randall Gellens Opinions are personal;facts are suspect;I speak for myself only -- Randomly selected tag: --- Hippogriff: An animal (now extinct) which was half horse and half griffin. The griffin was itself a compound creature, half lion and half eagle. The hippogriff was actually, therefore, only one quarter eagle, which is two dollars and fifty cents in gold. The study of zoology is full of surprises.
Re: Replication and Sieve
Hi, Hanns Mattes ha...@hannsmattes.de schrieb: [replication not updating sieve rules] I didn't get any further but at least I saw an error message. After I deleted one user's home-directory on one of the two machines, maillog was showing (on both machines with a short delay): ,[ /var/log/mail ] | dsync-server(someu...@example.com): Panic: file dsync-brain-mailbox.c: | line 331 (dsync_brain_sync_mailbox_deinit): assertion failed: | (brain-failed || brain-sync_type == DSYNC_BRAIN_SYNC_TYPE_CHANGED) Dec | 13 21:54:27 mail dovecot: dsync-server(someu...@example.com): Error: Raw | backtrace: /usr/lib64/dovecot/libdovecot.so.0(+0x75c0a) [0x7f51d82f1c0a] | - /usr/lib64/dovecot/libdovecot.so.0(+0x75c76) [0x7f51d82f1c76] - | /usr/lib64/dovecot/libdovecot.so.0(i_fatal+0) [0x7f51d82a3361] - | dovecot/doveadm-server [94.79.154.202 someu...@example.com | slave_recv_mailbox](+0x203ba) [0x7f51d8ac63ba] - dovecot/doveadm-server | [94.79.154.202 someu...@example.com | slave_recv_mailbox](dsync_brain_slave_recv_mailbox+0x20c) | [0x7f51d8ac6ecc] - dovecot/doveadm-server [94.79.154.202 | someu...@example.com slave_recv_mailbox](dsync_brain_run+0x312) | [0x7f51d8ac4a82] - dovecot/doveadm-server [94.79.154.202 | someu...@example.com slave_recv_mailbox](+0x1f081) [0x7f51d8ac5081] - | dovecot/doveadm-server [94.79.154.202 someu...@example.com | slave_recv_mailbox](+0x3196f) [0x7f51d8ad796f] - | /usr/lib64/dovecot/libdovecot.so.0(io_loop_call_io+0x5b) | [0x7f51d83040ab] - | /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0xaf) | [0x7f51d830514f] - | /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run+0x9) | [0x7f51d8304139] - /usr/lib64/dovecot/libdovecot.so.0(io_loop_run+0x38) | [0x7f51d83041b8] - dovecot/doveadm-server [94.79.154.202 | someu...@example.com slave_recv_mailbox](+0x104a7) [0x7f51d8ab64a7] - | dovecot/doveadm-server [94.79.154.202 someu...@example.com | slave_recv_mailbox](+0x12f5f) [0x7f51d8ab8f5f] - dovecot/doveadm-server | [94.79.154.202 someu...@example.com slave_recv_mailbox](+0x1d45c) | [0x7f51d8ac345c] - | /usr/lib64/dovecot/libdovecot.so.0(io_loop_call_io+0x5b) | [0x7f51d83040ab] - | /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0xaf) | [0x7f51d830514f] - | /usr/lib64/dovecot/libdovecot.so.0(io_loop_handler_run+0x9) | [0x7f51d8304139] - /usr/lib64/dovecot/libdovecot.so.0(io_loop_run+0x38) | [0x7f51d83041b8] - | /usr/lib64/dovecot/libdovecot.so.0(master_service_run+0x13) | [0x7f51d82a86e3] - dovecot/doveadm-server [94.79.154.202 | someu...@example.com slave_recv_mailbox](main+0x13e) [ Dec 13 21:54:27 | mail dovecot: dsync-server(someu...@example.com): Fatal: master: | service(doveadm): child 21645 killed with signal 6 (core dumps disabled) ` Nevertheless the replication went fine and both machines are working as usual. Anything to worry? Regards Hanns
Re: Replication sieve scripts.
On 12/4/2014 12:03 AM, Jan Wideł wrote: Hi, according to changelog 2.2.rc3, dsync should replicate sieve scripts. Do I need turn on or switch some option(s), for this to work? Replication of mailboxes works great, only sieve scripts not. What version of Pigeonhole is this? It doesn't look like the latest, since it doesn't include the version in the doveconf banner. Regards, Stephan.
Re: Replication sieve scripts.
What version of Pigeonhole is this? It doesn't look like the latest, since it doesn't include the version in the doveconf banner. Regards, Stephan. Yes, I think it could be that. I have dovecot with replication and without any configuration unless doveadm replication, it's working perfectly for sieve rules. Regards, -- CHUNKZ.NET - script kiddie and computer technician Bertrand Caplet, Flers (FR) Feel free to send encrypted/signed messages Key ID: FF395BD9 GPG FP: DE10 73FD 17EB 5544 A491 B385 1EDA 35DC FF39 5BD9 signature.asc Description: OpenPGP digital signature
Re: Replication sieve scripts.
Hi, Am 13.12.2014 um 22:26 schrieb Stephan Bosch: On 12/4/2014 12:03 AM, Jan Wideł wrote: Hi, according to changelog 2.2.rc3, dsync should replicate sieve scripts. Do I need turn on or switch some option(s), for this to work? Replication of mailboxes works great, only sieve scripts not. What version of Pigeonhole is this? It doesn't look like the latest, since it doesn't include the version in the doveconf banner. (Sorry for opening a second thread - I didn't notice Jan's original post to the same topic) I'm using the RPMs provided by https://build.opensuse.org/package/show/server:mail/dovecot22 Not being an RPM-expert, they seem to use an older pigeonhole-version. Regards Hanns
Re: Replication sieve scripts.
(Sorry for opening a second thread - I didn't notice Jan's original post to the same topic) Well that's not exactly the same problem so don't worry Not being an RPM-expert, they seem to use an older pigeonhole-version. Maybe you could at least test to build it from source the last stable version ? Regards, -- CHUNKZ.NET - script kiddie and computer technician Bertrand Caplet, Flers (FR) Feel free to send encrypted/signed messages Key ID: FF395BD9 GPG FP: DE10 73FD 17EB 5544 A491 B385 1EDA 35DC FF39 5BD9 signature.asc Description: OpenPGP digital signature
Re: Replication sieve scripts.
On 12/13/2014 10:26 PM, Stephan Bosch wrote: On 12/4/2014 12:03 AM, Jan Wideł wrote: Hi, according to changelog 2.2.rc3, dsync should replicate sieve scripts. Do I need turn on or switch some option(s), for this to work? Replication of mailboxes works great, only sieve scripts not. What version of Pigeonhole is this? It doesn't look like the latest, since it doesn't include the version in the doveconf banner. Truly, I don't remember. I was thinking about sync this files by software like https://www.csync.org/, but after while (and some updates) replication sieve starts working... magically. It bugs me why, but I have no idea. Debs are from: deb http://xi.rename-it.nl/debian/ stable-auto/dovecot-2.2 main My current config is: # 2.2.15 (6dd190bd6dcb): /etc/dovecot/dovecot.conf # Pigeonhole version 0.4.6 # OS: Linux 3.2.0-4-grsec-amd64 x86_64 Debian 7.7 ext4 doveadm_password = x doveadm_port = 10900 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 environ ment mailbox date index ihave duplicate vnd.dovecot.duplicate plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename mail_log_fields = uid box msgid size mail_replica = tcps:mail2.xx:10900 sieve = file:~/sieve;active=~/dovecot.sieve sieve_dir = ~/sieve sieve_duplicate_period = 6h sieve_extensions = +vnd.dovecot.duplicate sieve_global_dir = /etc/dovecot/sieve/global/ sieve_global_path = /etc/dovecot/sieve/default.sieve } replication_max_conns = 5 service aggregator { fifo_listener replication-notify-fifo { user = vmail } unix_listener replication-notify { user = vmail } } service managesieve { process_limit = 1024 } service replicator { process_min_avail = 1 unix_listener replicator-doveadm { group = vmail mode = 0660 user = dovecot } } ssl_cert = /etc/dovecot/dovecot.pem ssl_client_ca_dir = /etc/ssl/certs ssl_key = /etc/dovecot/private/dovecot.pem protocol lmtp { mail_plugins = notify replication mail_log quota sieve postmaster_address = postmas...@networkers.pl } protocol sieve { managesieve_implementation_string = Dovecot Pigeonhole managesieve_max_line_length = 65536 } -- Jan Wideł Senior System Administrator e-mail: jan.wi...@networkers.pl mobile: +48 797 004 946 www: http://www.networkers.pl GPG: http://networkers.pl/GPG/2E7359CD.asc