1 (edited by broth 2013-09-02 18:02:52)

Topic: Upgrade Dovecot 1.x to 2.x, how to migrate sieve rules?

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
======== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Debian 7
- Related log if you're reporting an issue:
====

Hello!

We reinstalled recently our mail server with Debian 7 and are now using dovecot 2.0.
We found out that the sieve rules are now saved in another location.
On the old installation, they have been in /var/vmail/sieve and now they are in the mailbox directory in the sieve subdir.

How can I migrate the old rules into the new structure so that everything works like before?
Are the script files from dovecot 1.x compatible with dovecot 2.x?

Best regards,
Bernhard

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Upgrade Dovecot 1.x to 2.x, how to migrate sieve rules?

broth wrote:

Are the script files from dovecot 1.x compatible with dovecot 2.x?

Yes.

broth wrote:

How can I migrate the old rules into the new structure so that everything works like before?

With the latest iRedMail-0.8.5, sieve script is stored in user maildir. For example:

- Mailbox: /var/vmail/vmail1/domain.com/u/s/e/username-20130902214102/Maildir/
- Sieve: /var/vmail/vmail1/domain.com/u/s/e/username-20130902214102/sieve/

So what you need to do is copying old sieve files (/var/vmail/vmail1/domain.com/user/) to new sieve directory.