Line 14: |
Line 14: |
| | | |
| === Installation === | | === Installation === |
− | ==== Enable the dag repository ==== | + | ==== Enable the dag repository for SME 7==== |
− | {{Repository|dag}}
| + | You need to activate the [[Dag]] reposity before installing this contrib.<br /> |
| + | |
| + | see [[dag|dag repository]] <br /> |
| + | ==== Enable the epel repository for SME 8 after==== |
| + | For SME Server 8, 9 en 10 you can find imapsync in [[epel]], that version is most up to date |
| | | |
| ==== Install imapsync ==== | | ==== Install imapsync ==== |
− | yum --enablerepo=dag install perl-Mail-IMAPClient-2.2.9 imapsync | + | for SME7 |
− | | + | yum --enablerepo=dag install imapsync |
− | '''IMPORTANT'''
| + | or for sme8, sme9 en sme10 |
− | If you install imapsync without specifying perl-Mail-IMAPClient-'''2.2.9''' on the command line as shown above, yum will download and install the latest available version of perl-Mail-IMAPClient - currently 3.x - which does not work according to the author of imapsync. If this happens, you will get an error about IMAPClient every time you run imapsync.
| + | yum --enablerepo=epel install imapsync |
− | | |
− | If you have accidentally installed the wrong version of IMAPClient, you can correct the problem using the command below. When done, reinstall imapsync as shown above.
| |
− | yum remove perl-Mail-IMAPClient | |
| | | |
| === Examples === | | === Examples === |
Line 52: |
Line 53: |
| =====imapsync command===== | | =====imapsync command===== |
| <nowiki>/usr/bin/imapsync \ | | <nowiki>/usr/bin/imapsync \ |
− | -- noauthmd5 \ | + | -- noauthmd5 \ |
− | --host1 a.b.c.d --port1 993 --ssl1 --user1 spamfilter --passfile1 /root/secret1 \ | + | --host1 a.b.c.d --port1 993 --ssl1 --user1 spamfilter --passfile1 /root/secret1 \ |
− | --delete --expunge1 --prefix1 "Public Folders." \ | + | --delete --expunge1 --prefix1 "Public Folders." \ |
− | --host2 localhost --port2 993 --ssl2 --user2 spamfilter --passfile2 /root/secret2 \ | + | --host2 localhost --port2 993 --ssl2 --user2 spamfilter --passfile2 /root/secret2 \ |
− | --folder "Public Folders/LearnAsSpam" \ | + | --folder "Public Folders/LearnAsSpam" \ |
− | --folder "Public Folders/LearnAsHam" \ | + | --folder "Public Folders/LearnAsHam" \ |
− | --noauthmd5 </nowiki> | + | --noauthmd5 </nowiki> |
| | | |
| ====Migrating users and data to Zarafa==== | | ====Migrating users and data to Zarafa==== |