Discussion:
migration from cyrus with dsync sieve problem
Alessandro Bono
2014-09-15 14:07:42 UTC
Permalink
Hi all

i'm migrating a cyrus imapd server to dovecot with dsync
everyting seems working but sieve rules are not copied to dovecot server
I searched for documentation but without any luck
I use the configuration below with

doveadm -v -o mail_fsync=never backup -R -u emailaddr imapc:

Is sieve supported with dsync? How I can specify sieve server address
and port?

# 2.2.13.21 (606efd4a4f35): /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-431.29.2.el6.x86_64 x86_64 CentOS release 6.5 (Final)
ext4
auth_default_realm = mydomain.com
auth_mechanisms = plain login
auth_realms = mydomain.com
auth_socket_path = /var/run/dovecot/auth-userdb
first_valid_gid = 492
first_valid_uid = 492
hostname = mydomain.com
imap_client_workarounds = delay-newmail tb-extra-mailbox-sep tb-lsub-flags
imap_id_log = *
imap_idle_notify_interval = 29 mins
imapc_features = rfc822.size fetch-headers
imapc_host = oldserver.mydomain.com
imapc_master_user = cyrus
imapc_password = xxxxxxx
imapc_user = %u
last_valid_gid = 492
last_valid_uid = 492
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c %k
mail_attachment_dir = /var/vmail/%d/attachments/
mail_location = maildir:/var/vmail/%d/%n/Maildir:LAYOUT=fs
mail_plugins = zlib listescape acl
mail_prefetch_count = 20
mailbox_list_index = yes
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 ihave duplicate
mbox_write_locks = fcntl
namespace inbox {
inbox = yes
list = 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 = /
subscriptions = yes
type = private
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
plugin {
acl = vfile
sieve = file:~/sieve;active=~/.dovecot.sieve
}
protocols = imap lmtp sieve
service auth {
unix_listener /var/spool/postfix/private/auth {
mode = 0666
}
}
service imap-login {
inet_listener imap {
port = 143
}
inet_listener imaps {
port = 993
ssl = yes
}
}
service lmtp {
user = vmail
}
ssl = required
ssl_cert = </etc/pki/tls/certs/imap.mydomain.com.crt
ssl_cipher_list = EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM
EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384
EECDH+aRSA+SHA256 EECDH+aRSA+AES EECDH+aRSA+RC4 EECDH EDH+aRSA RC4
!aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS
ssl_dh_parameters_length = 2048
ssl_key = </etc/pki/tls/private/imap.mydomain.com.pem
ssl_prefer_server_ciphers = yes
userdb {
args = uid=vmail gid=vmail home=/var/vmail/%d/%n
driver = static
}
protocol lmtp {
mail_plugins = zlib listescape acl sieve
}
protocol lda {
mail_plugins = zlib listescape acl sieve
}
protocol imap {
mail_max_userip_connections = 40
mail_plugins = zlib listescape acl imap_zlib imap_acl
}
--
Cordiali saluti

Alessandro Bono
Jogi Hofmüller
2014-09-18 12:08:33 UTC
Permalink
Hi Alessandro,
Post by Alessandro Bono
i'm migrating a cyrus imapd server to dovecot with dsync
everyting seems working but sieve rules are not copied to dovecot server
I searched for documentation but without any luck
I use the configuration below with
We are in the process of doing the same here. After first trials with
dsync we went to migrating with cyrus2dovecot. For migrating sieve
scripts we wrote a simple shell script.

The main reason why we abandoned dsync is that it was just painfully
slow. I don't remember if it did (attempt) to syn sieve scripts.

One thing that we still could not solve is that when migrating shared
folders, all flags for all mail are set to unread. Would be interesting
if you use shared mailboxes and how you tackle this topic.

Cheers,
--
J.Hofm?ller

Im ?brigen bin ich der Meinung, das Joanneum muss zerschlagen werden! -
Barbara Fischer

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: OpenPGP digital signature
URL: <http://dovecot.org/pipermail/dovecot/attachments/20140918/f9c3d502/attachment-0001.sig>
Alessandro Bono
2014-09-18 17:17:18 UTC
Permalink
Hi Jogi
Post by Jogi Hofmüller
Hi Alessandro,
Post by Alessandro Bono
i'm migrating a cyrus imapd server to dovecot with dsync
everyting seems working but sieve rules are not copied to dovecot server
I searched for documentation but without any luck
I use the configuration below with
We are in the process of doing the same here. After first trials with
dsync we went to migrating with cyrus2dovecot. For migrating sieve
scripts we wrote a simple shell script.
The main reason why we abandoned dsync is that it was just painfully
slow. I don't remember if it did (attempt) to syn sieve scripts.
One thing that we still could not solve is that when migrating shared
folders, all flags for all mail are set to unread. Would be interesting
if you use shared mailboxes and how you tackle this topic.
I can confirm that dsync not sync sieve script, I finished migration and
recreate sieve rules by hand (and yes dsync it's really slow)
but a new problem appears, dovecot not support duplication suppression,
I partially solved with postfix parameter "enable_original_recipient =
no" but it's not a complete solution
I have to migrate another system with shared mailboxes but I still have
to configure the new server
Post by Jogi Hofmüller
Cheers,
--
Cordiali saluti

Alessandro Bono
Loading...