Migration of Roundcube filters

Discussion in 'ISPConfig 3 Priority Support' started by DylanPedro, Mar 3, 2021.

  1. DylanPedro

    DylanPedro Member HowtoForge Supporter

    Hi,

    I have migrated all my emails to a different ISPConfig Server and have a lot of rules in Roundcube (using the ISPConfig Plugin).

    Is there an easy way to migrate all these rules to the other server (via db dump or any other way) so I dont have to recreate them all again and they also appear in Roundcube like on the previous server?
     
  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

  3. DylanPedro

    DylanPedro Member HowtoForge Supporter

    I copied the files over manually (not using any sync tools in ISPConfig) I used IMAPSync to migrate the mail from one server to the other. Just wondering if I could just export the mail filter rules in phpmyadmin filtered for this specific user and then re-import them via phpmyadmin on the other server and they should work?
     
  4. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Yes, you could do that - look at the mail_user_filter table, and pay particular attention to the mailuser_id which will almost certainly differ on the two systems (also sys_userid/sys_groupid, which could vary as well). "filter_id" is a database key and will be generated automatically. Once you're done, edit the mailbox in the ui, open a mail filter (of which you should see all of them at this point), and hit save - it should generate the sieve filter scripts for that user again.
     

Share This Page