Branches
Comments
[»]
Very good tool, but minor problems
by Michael - Nov 25th 2008 07:34:47
Hi,
I really like your tool, it saved my day when I migrated all our imap
servers into one big system.
Unfortunally I now have to migrate the mails to an Exchange2007 system -
and I have the problem, that if I run the sync twice I have all the mail
double in my dest-Mailbox - I assumed that this is suppressed if I use the
imap mechanisms to syncronize. Any idea ?
Cheerio - Michael
[reply]
[top]
[»]
Good job!
by 603qm - Oct 24th 2008 16:38:29
This tool saved us from a major desaster! I love it! Very good piece of
software, I would say a kind of "swiss army knife" for mailadmins
;-)
[reply]
[top]
[»]
how to disable "skip sent mail folder" ?
by yeangigi - Oct 21st 2008 03:26:24
I found that the new function "Ignore message when it has no
header." in version 1.242
cause a big problem....it will skip ALL sent mail folder in some
servers.
I think there are no complete header in "sent mails",so the
imapsync just skip these mails.
I wonder that is there a way to disable the new function?
Thank you very much
[reply]
[top]
[»]
Out of memory during "large" request for ....
by gui - Aug 28th 2008 18:53:54
Hi All
I am getting this "Out of memory during "large" request for
536875008 bytes, total sbrk() is 298216
0384 bytes at
/usr/local/share/imapsync/Mail-IMAPClient-2.2.9/lib/perl5/site_per
l/5.8.8/Mail/IMAPClient.pm line 1787." error, mentioned by one of the
poster below.
I am running imapsync-1.255, perl-5.8.8_1 on Freebsd 6.3. And the
system has 4GB of RAM.
I tried doing this in the loader.conf file:
kern.maxdsiz="2147483648" # 2GB
kern.dfldsiz="1073741824" # 1GB
kern.maxssiz="1073741824" # 1GB
But it didn't solve the problem.
Then thinking that this could be a Perl/Freebsd issue, I tried doing
imapsync on a Centos 5.2 server. Same thing happened. Got "Out of
memory!" error.
Any advice?
Thank you
cm gui
[reply]
[top]
[»]
You have saved me!
by SIndicate - Jun 26th 2008 17:31:42
Transferring mail user and accounts from the Damned Imail package to a nice
clean postfix/dovecot install worked like a charm! You have saved me and my
cohorts so much time its scary. Thank you for all the work.
[reply]
[top]
[»]
Imap sync help
by culdude - Aug 12th 2008 15:23:08
I am very new to imap sync ...we are doing huge migartions(50000
mailboxes)...is there any way to verify from impasync that source and
destination mailboxes have same mails after migrations.....we are not using
imapsync for migrations....but we want to use imapsync for
verification.....can some one help me? is it possible.?
[reply]
[top]
[»]
imapsync 1.252 errors
by bwoodcock - May 21st 2008 19:58:32
I've got imapsync 1.252 on an opensuse10.3 box. I finally got it to
upload to gmail, but I'm having these problems:
+ NO msg #42916 [0qNSHzC8X0ZHBOB9O6qNww:1049] in Sent06
+ Copying msg #42916:1049 to folder Sent06
flags from : [\Seen]["19-Dec-2006 11:01:46 -0600"]
parse_headers want an ARRAY ref
Couldn't append msg #42916 (Subject:[0]) to folder Sent06: Error trying to
append: 14796 NO Unable to append message to folder (Failure)
That happens to quite a few messages on initial attempt to sync.
Then this happens when I attempt to run it again:
Warning : no header used or found for message 17524
no header so we ignore this message
I've got another folder that gets to either
the From [Folder] Parse 1 line or the To [Folder] Parse 1 line or actually
starts to upload the first message before it crashes with no further output
or error messages.
I looked around and couldn't find anyplace to ask about bugs or help other
than here, I'd appreciate it if someone could give me some help figuring
these things out.
Thanks!
[reply]
[top]
[»]
Keeps crashing at line 1675
by Sean Sellers - Apr 9th 2008 15:07:08
I've sync'd probably 200 or so addresses without issue. However, a few of
them reliable crash with the following message:
Can't use string ("0") as a HASH ref while "strict
refs" in use at /usr/bin/imapsync line 1675.
This happens when there is a long string of:
Warning : no header used or found for message xxxxxxxxxx
no header so we ignore this message
I'm using imapsync 1.249 on CentOS 5.
Is there any command line options or anything I can add that will handle
this error?
[reply]
[top]
[»]
folder name can't contain dot character
by Filip Krejci - Apr 5th 2008 07:43:08
hi I'm converting some data via your good tool imapsync and I found little
bug. When imap folder contain dot character, it can't be created on
destination server.
[reply]
[top]
[»]
Imapsync looses mails
by HTiberian - Mar 18th 2008 15:30:09
I'm currently migration from a cyrus 2.2x install to a new one on
2.3x.
It works fine, but sometimes imapsync misses mails. Tried to sync again
and again. Also specific folders only, but imapsync says there are no mails
to sync.
Maybe someone can point me where i could start to search for the error. I
have no more ideas what to do.
Here is a cut sample output:
From Folder [INBOX.Administrative.Certs] Size: 131345 Messages:
52
To Folder [INBOX.Administrative.Certs] Size: 112903 Messages:
44
++++ Calculating sizes ++++
From Folder [INBOX.Administrative.Certs] Size: 131345 Messages:
52
Total size: 131345
Total messages: 52
Time : 1 s
++++ Calculating sizes ++++
To Folder [INBOX.Administrative.Certs] Size: 112903 Messages:
44
Total size: 112903
Total messages: 44
Time : 0 s
<snip>
Time : 2 sec
Messages transferred : 0
Messages skipped : 44
Total bytes transferred: 0
Total bytes skipped : 112903
Total bytes error : 0
Detected 0 errors
The command i used:
imapsync --host1 mail1.example.com --ssl1 --user1 user1 --authuser1
adminuser --passfile1 /root/imappass --host2 localhost --user2 user1
--authuser2 adminuser --passfile2 /root/imappass --syncinternaldates
--syncacls --subscribe
Thx in advance
[reply]
[top]
[»]
1.2.4.1
by fratertje - Feb 24th 2008 02:19:31
Just downloaded the latest version which turned out to be of december 2007.
There were 2 scripts inside. namely imapsync (1.2.41) which isn't 3.0
compatible and imapsync2 (1.2.35) which crashes with the error message:
Undefined subroutine &main::remove_to_requested_folders called at
/usr/bin/imapsync2 line 851.
I changed remove_to into remove_from and it now seems to be working.....
(imapsync2)
[reply]
[top]
[»]
Re: 1.2.4.1
by fratertje - Feb 24th 2008 02:44:06
Sorry to say that 1.235 is not working.
It crashes when it actually has to transfer the mail.
Use of uninitialized value in substitution (s///) at
/usr/lib/perl5/site_perl/5.8.8/Mail/IMAPClient.pm line 2424.
Use of uninitialized value in substitution (s///) at
/usr/lib/perl5/site_perl/5.8.8/Mail/IMAPClient.pm line 1186.
Use of uninitialized value in substitution (s///) at
/usr/lib/perl5/site_perl/5.8.8/Mail/IMAPClient.pm line 1186.
Couldn't append msg #809 (Subject:[Schoolbank.nl: sjtomas@hetmail.com ])
to folder HETMAIL/Drafts: Socket closed while reading data from server.
Hopefully we see a new update soon...
Maybe I should try to downgrade MAIL::IMAPClient and test 1.241
[reply]
[top]
[»]
Broken pipe
by gui - Feb 5th 2008 12:00:54
Hi All
I have some problem using imapsync to pull mails from Zimbra servers onto
a Dovecot server. Get this "Broken pipe" error.
This error occurred only when I tried to imapsync a particular mailbox
with about 2000 mails.
No problem imapsync-ing other mailboxes.
---
+ NO msg #574 [wDWRL9aarpx72htFtB2uPg:74577] in INBOX
+ Copying msg #574:74577 to folder INBOX
flags from : [()]["23-Aug-2006 23:06:48 +0000"]
Broken pipe
I am using:
imapsync-1.233
FreeBSD 6.2-RELEASE
p5-Mail-IMAPClient-2.2.9
[reply]
[top]
[»]
Re: Broken pipe
by gui - Feb 5th 2008 12:11:30
Correction -- also having this error with other mailboxes.
Only some small mailboxes have no problem.
Can anybody advise? Thank you.
> Hi All
>
> I have some problem using imapsync to
> pull mails from Zimbra servers onto a
> Dovecot server. Get this "Broken
> pipe" error.
>
> This error occurred only when I tried to
> imapsync a particular mailbox with
> about 2000 mails.
>
> No problem imapsync-ing other mailboxes.
>
>
> ---
>
> + NO msg #574
> [wDWRL9aarpx72htFtB2uPg:74577] in INBOX
> + Copying msg #574:74577 to folder
> INBOX
> flags from : [()]["23-Aug-2006
> 23:06:48 +0000"]
> Broken pipe
>
> I am using:
> imapsync-1.233
> FreeBSD 6.2-RELEASE
> p5-Mail-IMAPClient-2.2.9
[reply]
[top]
[»]
Error in the manual page?
by gui - Feb 1st 2008 17:20:31
Hi, I refer to the paragraph below from man imapsync. Is this a
mistake?
Shouldn't it be
"Then, you will have max's mailbox updated from buddy's
mailbox." instead of "Then, you will have max's mailbox updated
from buddy's mailbox." ???
Thank you.
" To synchronize the imap account "buddy" on host
"imap.src.fr" to the
imap account "max" on host "imap.dest.fr" (the
passwords are located in
two files "/etc/secret1" for "buddy",
"/etc/secret2" for "max") :
imapsync --host1 imap.src.fr --user1 buddy --passfile1
/etc/secret1 \
--host2 imap.dest.fr --user2 max --passfile2
/etc/secret2
Then, you will have buddy's mailbox updated from max's
mailbox."
[reply]
[top]
[»]
Re: Error in the manual page?
by lamiral - Mar 11th 2008 17:16:38
Hello,
The manpage is good. It seems you didn't quote it verbatim. More, your
instead is "A instead A".
-- au revoir,
Gilles Lamiral. France, Chavagne (35310).
33 (0) 2 99 64 31 77
33 (0) 6 20 79 76 06
[reply]
[top]
[»]
Can't locate object method "Ssl" via package "Mail::IMAPClient"
by michael78 - Dec 15th 2007 04:57:43
Hi,
I'm having problems migrating my email via imap to gmail.
Running the latest imapsync on osx 10.5 (leopard) with all
the latest prerequisited modules (Mail::IMAPClient, Perl
Digest::MD5, Term::ReadKey, IO:Socket:SSL.pm,
Date::Manip) installed:
Here is a [darwin] system (Darwin name.local 9.1.0 Darwin
Kernel Version 9.1.0: Wed Oct 31 17:48:21 PDT 2007;
root:xnu-1228.0.2~1/RELEASE_PPC Power Macintosh)
with perl 5.8.8
Mail::IMAPClient version is 3.02
$Id: imapsync,v 1.233 2007/10/30 03:20:53 gilles Exp gilles
$
imapsync copyleft is the GNU General Public License.
See http://www.gnu.org/copyleft/gpl.html
I get the following error:
Can't locate object method "Ssl" via package
"Mail::IMAPClient" at /usr/bin/imapsync line 2162.
using the following command:
/usr/bin/imapsync --noauthmd5 --dry --syncinternaldates --
host1 mail.host.nl --user1 info@host.nl --password1
password1 --host2 imap.gmail.com --ssl2 --user2
info@host.nl --password2 password2
will try to use LOGIN authentication on host1
will try to use LOGIN authentication on host2
From imap server [mail.host.nl] port [143] user
[info@host.nl]
To imap server [ imap.gmail.com] port [993] user
[info@host.nl]
Anyone knows what's wrong?
[reply]
[top]
[»]
Re: Can't locate object method "Ssl" via package "Mail::IMAPClient"
by Andreas Wenning - Dec 18th 2007 11:40:24
The problem is the version of IMAPClient you are using.
From v2.99 to 3.00 it was completely rewritten, and that
has broken imapsync. I've send all the relevant
information I could find to the author; if anyone else is
hacking on this problem, I would very much like to
provide the information to you also and help testing any
changes made.
/Andreas
Kubuntu 8.04 alpha
[reply]
[top]
[»]
Re: Can't locate object method "Ssl" via package "Mail::IMAPClient"
by michael78 - Dec 20th 2007 03:54:47
Does this mean that if I downgrade IMAPClient to an older version it should
work?
> The problem is the version of IMAPClient
> you are using.
> From v2.99 to 3.00 it was completely
> rewritten, and that
> has broken imapsync. I've send all the
> relevant
> information I could find to the author;
> if anyone else is
> hacking on this problem, I would very
> much like to
> provide the information to you also and
> help testing any
> changes made.
>
>
> /Andreas
>
> Kubuntu 8.04 alpha
[reply]
[top]
[»]
Re: Can't locate object method "Ssl" via package "Mail::IMAPClient"
by michael78 - Dec 20th 2007 06:29:26
Now I downgraded to an older mail::imapclient I got it working, BUT:
I just cannot seem to set the correct --prefix2 for the gmail account,
every and every time I get the message ... folder does not exist
I tried:
--prefix1 in combination with:
GMAIL
GMAIL/
[GMAIL]
[GMAIL/]
[GMAIL]/
\[GMAIL\]/
\[GMAIL\/]
But none of them work period. I get every time that the destination folder
doesn't exist...
why?
> Hi,
>
> I'm having problems migrating my email
> via imap to gmail.
> Running the latest imapsync on osx 10.5
> (leopard) with all
> the latest prerequisited modules
> (Mail::IMAPClient, Perl
> Digest::MD5, Term::ReadKey,
> IO:Socket:SSL.pm,
> Date::Manip) installed:
>
> Here is a [darwin] system (Darwin
> name.local 9.1.0 Darwin
> Kernel Version 9.1.0: Wed Oct 31
> 17:48:21 PDT 2007;
> root:xnu-1228.0.2~1/RELEASE_PPC Power
> Macintosh)
> with perl 5.8.8
> Mail::IMAPClient version is 3.02
> $Id: imapsync,v 1.233 2007/10/30
> 03:20:53 gilles Exp gilles
> $
> imapsync copyleft is the GNU
> General Public License.
> See
> http://www.gnu.org/copyleft/gpl.html
>
> I get the following error:
>
> Can't locate object method
> "Ssl" via package
> "Mail::IMAPClient" at
> /usr/bin/imapsync line 2162.
>
> using the following command:
>
> /usr/bin/imapsync --noauthmd5 --dry
> --syncinternaldates --
> host1 mail.host.nl --user1 info@host.nl
> --password1
> password1 --host2 imap.gmail.com --ssl2
> --user2
> info@host.nl --password2 password2
> will try to use LOGIN authentication on
> host1
> will try to use LOGIN authentication on
> host2
> From imap server [mail.host.nl] port
> [143] user
> [info@host.nl]
> To imap server [ imap.gmail.com] port
> [993] user
> [info@host.nl]
>
> Anyone knows what's wrong?
[reply]
[top]
[»]
Re: Can't locate object method "Ssl" via package "Mail::IMAPClient"
by Tim Hanson - Dec 20th 2007 10:12:02
%
> Hi
>
> I'm having problems migrating my email via
> imap to gmail.
ok, I tried hacking it for a while -- simply by changing the connect2()
call around line 660 to connect(). This gets around that error, but it
does not fix the problem.
I eventually used this ruby
script (after applying the last patch) & it works very well. I
recommend it -- good luck!!
[reply]
[top]
[»]
How to limit number of emails sync'd
by barddzen - Nov 15th 2007 18:42:23
Hello,
I'm trying to sync about 2.7 gig to GMail and if I use IMAPSYNC for more
than about 500 messages in one session, Google locks my account. So the
question is how can I limit how many emails get sync'd per session to a
specific number of emails?
Thanks.
[reply]
[top]
[»]
Re: How to limit number of emails sync'd
by fratertje - Nov 17th 2007 05:03:19
You could use the parameters --maxage and --minage.
They are not working properly for me, but this could be my fault....
[reply]
[top]
[»]
I'm having problems with --maxage
by fratertje - Nov 10th 2007 00:51:12
syncing with gmail works (correct dates) and all mail is transferred. Now I
have a daily cronjob to transfer all new mail.
I'm using the parameter --maxage 10
But no new mail is added.
I deleted the parameter and it's working, but this way it takes longer
than necessary.
Anyone else using it?
[reply]
[top]
[»]
Re: I'm having problems with --maxage
by tobiasly - Dec 1st 2007 11:37:40
> syncing with gmail works (correct dates)
> and all mail is transferred. Now I have
> a daily cronjob to transfer all new
> mail.
Sorry I can't speak to the --maxage parameter as I'm not that far yet, but
I have a general imapsync question... when doing continuous syncs this way,
does it sync deletes as well? (i.e. if you delete from one account does it
delete from the other, or will it copy it again on the next sync?)
[reply]
[top]
[»]
Imapsync Help Needed in Flags
by Pentium - Nov 7th 2007 01:04:19
Hi,
I am facing one problem in the sync between openxchnage and kerio mail.
All are working good except the mails which have the client side flags are
not ´be able to copied in the kerio IMAP. I mean if any of the email
is been marked as "Important" and usually shown in REDis not be
able to get copied to my kerio server. I will really appreciate the help
does any body has any clue about it??
[reply]
[top]
[»]
Syncing with gmail
by Travis E. Brown - Oct 31st 2007 04:41:14
I tried using 223 to sync with gmail but the times on the messages were all
set to the sync time. I tried again using 233 and it worked great (with
the --syncinternaldates).
[reply]
[top]
[»]
Re: Syncing with gmail
by fratertje - Nov 1st 2007 20:25:02
> I tried using 223 to sync with gmail but
> the times on the messages were all set
> to the sync time. I tried again using
> 233 and it worked great (with the
> --syncinternaldates).
I didn't see any difference using --syncinternaldates.
The dates in webmail gmail are still the moment of syncing. The dates are
correct when you IMAP to your gmail-account.
Can you verify that webmail-dates are correct?
I would love to have that.
[reply]
[top]
[»]
Re: Syncing with gmail
by fratertje - Nov 1st 2007 20:54:49
>
> % I tried using 223 to sync with gmail
> but
> % the times on the messages were all
> set
> % to the sync time. I tried again
> using
> % 233 and it worked great (with the
> % --syncinternaldates).
>
>
> I didn't see any difference using
> --syncinternaldates.
> The dates in webmail gmail are still the
> moment of syncing. The dates are correct
> when you IMAP to your gmail-account.
>
> Can you verify that webmail-dates are
> correct?
> I would love to have that.
I am using 1.233 (October 30th)
[reply]
[top]
[»]
Re: Syncing with gmail
by fratertje - Nov 1st 2007 21:46:37
I'm using Mdaemon 9.5.6 and want to sync with gmail. After the transfer to
gmail, the dates of the mails are wrong in gmail's webinterface, but right
in gmail's imap.
however, some mails do have a correct date. These mails are mails that
have been copied to the folder using outlook (I mean on the mdaemon
account).
I'm now doing some test with a specific folder. The only mail that had a
proper date in that folder now returns an error:
+ NO msg #22 [LTmDuWDQ2IwsNDf3SS+Zzw:3502] in INBOX/Beurden
+ Copying msg #22:3502 to folder INBOX/Beurden
flags from : [\Seen \Answered]["02-Feb-2007 22:15:50 +0100"]
Copied msg id [22] to folder INBOX/Beurden msg id
[Mail::IMAPClient=HASH(0x8963f2c)]
+ NO msg #23 [sy46wq8DNA8czQj3RVPhkQ:1451] in INBOX/Beurden
+ Copying msg #23:1451 to folder INBOX/Beurden
flags from : [\Seen]["23-Sep-2006 23:23:16 +0100"]
79 NO Unable to append message to folder (Failure)
at /usr/bin/imapsync line 1192
Couldn't append msg #23 (Subject:[mailtest]) to folder INBOX/Beurden: 79
NO Unable to append message to folder (Failure)
[reply]
[top]
[»]
Re: Syncing with gmail
by Lowell Alleman - Nov 2nd 2007 07:35:10
>
> % I tried using 223 to sync with gmail
>
> I didn't see any difference using
> --syncinternaldates.
> The dates in webmail gmail are still the
> moment of syncing. The dates are correct
> when you IMAP to your gmail-account.
>
> Can you verify that webmail-dates are
> correct?
> I would love to have that.
I ran into the same problem, but I figured out why.
Hopefully, this will be helpful to you or possibly to
others...
My issue was that I had previously tried
transferring my emails using Thunderbid (which
does not preserve the message timestamps when
viewed from the web interface). Then I tried
using imapsync with --syncinternaldates (importing
into a different folder) but the dates were still not
preserved. Based on my observations, here is
what happened: Gmail recognized that I was
importing the same messages; so it just ended up
adding a new label (folder) to the existing mesage,
so effectively it just kept the first import date. I
had to go in an wipe out all references to the
imported message first. (I've been feeding my
emails to two different accounts: one is gmail the
other is my own IMAP server, and now I am trying
to merge them together, so it's pretty complex...
Oh, and I also have a bunch of filters setup which
get triggered during the IMAP copy which may or
may not be a good thing depending on your
situation.... it certainly made undoing my first
import a pain! I had to do some fancy label
trickery...)
So the bottom line is this: If per chance, you
tried a different tool first, then: clean out ALL
traces of the first import, and then try using
imapsync with --syncinternaldates. (Oh, and
make sure you remove the emails from your trash
as well.)
FYI. I'm using version 1.182 (default for Ubuntu
7.04), so I don't think you need the latest version
to make this work.
[reply]
[top]
[»]
Re: Syncing with gmail
by fratertje - Nov 2nd 2007 23:50:00
>
> %
> % % I tried using 223 to sync with
> gmail
>
> %
> % I didn't see any difference using
> % --syncinternaldates.
> % The dates in webmail gmail are still
> the
> % moment of syncing. The dates are
> correct
> % when you IMAP to your gmail-account.
> %
> % Can you verify that webmail-dates are
> % correct?
> % I would love to have that.
>
>
> I ran into the same problem, but I
> figured out why.
> Hopefully, this will be helpful to you
> or possibly to
> others...
>
> My issue was that I had previously tried
>
> transferring my emails using Thunderbid
> (which
> does not preserve the message timestamps
> when
> viewed from the web interface). Then I
> tried
> using imapsync with --syncinternaldates
> (importing
> into a different folder) but the dates
> were still not
> preserved. Based on my observations,
> here is
> what happened: Gmail recognized that I
> was
> importing the same messages; so it just
> ended up
> adding a new label (folder) to the
> existing mesage,
> so effectively it just kept the first
> import date. I
> had to go in an wipe out all references
> to the
> imported message first. (I've been
> feeding my
> emails to two different accounts: one
> is gmail the
> other is my own IMAP server, and now I
> am trying
> to merge them together, so it's pretty
> complex...
> Oh, and I also have a bunch of filters
> setup which
> get triggered during the IMAP copy which
> may or
> may not be a good thing depending on
> your
> situation.... it certainly made undoing
> my first
> import a pain! I had to do some fancy
> label
> trickery...)
>
> So the bottom line is this: If per
> chance, you
> tried a different tool first, then:
> clean out ALL
> traces of the first import, and then try
> using
> imapsync with --syncinternaldates. (Oh,
> and
> make sure you remove the emails from
> your trash
> as well.)
>
> FYI. I'm using version 1.182 (default
> for Ubuntu
> 7.04), so I don't think you need the
> latest version
> to make this work.
I do think you're right to say that it's Gmail's fault. The dates aren't
even the sync-dates anymore, but the first time a transfer was
successfull...
But I really don't know what to do anymore to get gmail to don't
recorgnise the mail......
First off, I always deleted the target-folfer before any copy
[reply]
[top]
[»]
Re: Syncing with gmail
by fratertje - Nov 3rd 2007 03:19:41
Apparently I didn't delete the iMAP in Gmail. Google calls it labels and if
I delete the label the mails will stay in gmail.
They "iMap" is then gone.. which makes you think the mails are deleted
too...
The first time I ran it without --syncinternaldates....
All, very confusing...
[reply]
[top]
[»]
10GB Mails just synced
by jrobln - Oct 25th 2007 01:45:14
We just synced over 10GB Mails between two servers at one of our customers.
No flaws, no crash, everything runs perfect and smoothly. Great Programm.
[reply]
[top]
[»]
Just doing 21G migration...
by Marcin Orlowski - Sep 8th 2007 16:16:41
Just doing 21G migration using imapsync. So far it goes nicely. Would still
love to be able to make it even less verbose that it is in default mode.
Kind of total-size progressbar would be perfect. Thanks anyway ;)
[reply]
[top]
[»]
love this program
by KWabbles - Sep 4th 2007 06:16:08
Using it to run automated syncs on a backend Open-Xchange server with a
frontend courier mail server.
Thanks guys.
(ps - also used it to migrate this business from msexchange by enabling
IMAP in exchange and using imapsync to pull it all over)
[reply]
[top]
[»]
message status flags
by ahancock - Jul 2nd 2007 08:58:04
I wonder how to not have every message show up as unread
on the new server...
Also, is there a way to not-sync messages marked for deletion?
[reply]
[top]
[»]
IMAP mail FLAGS
by Chris - May 24th 2007 14:02:22
Hey people,
I am new to imapsync and it has helped me a lot during huge
migrations.
I am having a problem though and I would like your comments if
possible.
I am running imapsync now to keep two imap servers in sync.
This is how it is setup. All e-mails are coming to the main server which
has all the mailboxes. Then another server in a different location which
has the same mailboxes is using imapsync to get the e-mails there.
The users are using the second server to read their mail.
The problem:
When a user is deleting an e-mail imapsync is bring it back because on the
main server it still exists.
Now I need to keep the e-mails on both servers so I cannot use
--delete.
I thought maybe when imapsync is accessing the e-mails on the main server
to flag them [Seen] and imapsync would have an option like not to download
the same e-mail again unless it is flagged [Unseen]
Is there such a thing??????
Thanks
[reply]
[top]
[»]
Re: IMAP mail FLAGS
by Anthony Rasat - Jun 18th 2007 11:30:17
> Hey people,
>
> I am new to imapsync and it has helped
> me a lot during huge migrations.
>
> I am having a problem though and I would
> like your comments if possible.
>
> I am running imapsync now to keep two
> imap servers in sync.
>
> This is how it is setup. All e-mails
> are coming to the main server which has
> all the mailboxes. Then another server
> in a different location which has the
> same mailboxes is using imapsync to get
> the e-mails there.
> The users are using the second server to
> read their mail.
>
> The problem:
>
> When a user is deleting an e-mail
> imapsync is bring it back because on the
> main server it still exists.
> Now I need to keep the e-mails on both
> servers so I cannot use --delete.
>
> I thought maybe when imapsync is
> accessing the e-mails on the main server
> to flag them [Seen] and imapsync would
> have an option like not to download the
> same e-mail again unless it is flagged
> [Unseen]
>
> Is there such a thing??????
>
> Thanks
Sounds like you need a web-based IMAP client replacing the second
server.
Perhaps you should try Roundcube or the good 'ol Squirrelmail?
-- Regards,
A.
[reply]
[top]
[»]
Building imapsync
by Anthony Rasat - May 4th 2007 06:49:06
I noticed several posts regarding perl dependency
problem. So, just to aid those lost souls out there,
here is a script that would download and
automatically build imapsync and its dependencies.
This scripts is shamelessly copied from Zimbra mail
community wiki
(http://wiki.zimbra.com/index.php?title=User_Migration#script_to_download_and_build_imapsync_and_all_of_the_required_packages).
I have change imapsync download URL which
previously showed a dead link. Copy-and-paste this
script to a file, eg. imapsyncbuilder.sh then run "sh
imapsyncbuilder.sh" as root.
#!/bin/bash
#
#CopyLeft 2006 Steve Fink
#stevef-at-ublug.org
#
#This script will get all of
#the necessary packages to
#build imapsync 1.182 except OpenSSL
#OpenSSL & it's development libraries are
#required and OpenSSL is usually installed
#already so check and get the matching libraries
#
#you have to run this script as root
#or under sudo so it can do all the installs
#
#I don't recommend doing the extended tests
#they mostly fail anyway but imapsync still works
mkdir imapsync
cd imapsync
#
wget
http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/Parse-RecDescent-1.94.tar.gz
tar xvfpz Parse-RecDescent-1.94.tar.gz
rm Parse-RecDescent-1.94.tar.gz
cd Parse-RecDescent-1.94/
perl Makefile.PL
make
make install
#
cd ..
wget
http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-MD5-2.33.tar.gz
tar xvfpz Digest-MD5-2.33.tar.gz
rm Digest-MD5-2.33.tar.gz
cd Digest-MD5-2.33/
perl Makefile.PL
make
make install
#
cd ..
wget
http://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/TermReadKey-2.30.tar.gz
tar xvfpz TermReadKey-2.30.tar.gz
rm TermReadKey-2.30.tar.gz
cd TermReadKey-2.30/
perl Makefile.PL
make
make install
#
cd ..
wget
http://search.cpan.org/CPAN/authors/id/A/AS/ASPA/IO-Socket-SSL-0.81.tar.gz
tar xvfpz IO-Socket-SSL-0.81.tar.gz
rm IO-Socket-SSL-0.81.tar.gz
cd IO-Socket-SSL-0.81/
perl Makefile.PL
make
make install
#
cd ..
wget
http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Net_SSLeay.pm-1.30.tar.gz
tar xvfpz Net_SSLeay.pm-1.30.tar.gz
rm Net_SSLeay.pm-1.30.tar.gz
cd Net_SSLeay.pm-1.30/
./Makefile.PL -t
make install
#
cd ..
wget
http://search.cpan.org/CPAN/authors/id/D/DJ/DJKERNEN/Mail-IMAPClient-2.2.9.tar.gz
tar xvfpz Mail-IMAPClient-2.2.9.tar.gz
rm Mail-IMAPClient-2.2.9.tar.gz
cd Mail-IMAPClient-2.2.9/
perl Makefile.PL
make
make test
make install
#
cd ..
wget
http://gd.tuwien.ac.at/opsys/linux/gentoo/distfiles/imapsync-1.182.tgz
tar xvfpz imapsync-1.182.tgz
rm imapsync-1.182.tgz
cd imapsync-1.182/
perl -c imapsync
make install
#
cd ..
cd ..
rm -Rf imapsync/
-- Regards,
A.
[reply]
[top]
[»]
dates on mailing list emails are wrong
by dig - Apr 10th 2007 15:50:45
Everything seems to be working fine except mailing list emails. The date
on these emails show up as the date of transfer even with the
--syncinternaldates switch. Any suggestions on how to fix or get around
this? TIA
[reply]
[top]
[»]
Invalid mailbox name when source contains target seperator.
by Jan - Apr 7th 2007 15:48:15
This is a great script! I am migrating from uw imap to Cyrus. I have a
folder on UW that contains a dot in its name. The dot is the folder
seperator in Cyrus. For some reason the script implements a sub called
separator_invert() that changes the dot into a forward slash to create the
name of the target folder. The to folder thus gets an illegal name. Eg
"Gebr. Bot" becomes "Gebr/ Bot". The message is "Couldn't create
[INBOX.Mijn mappen.Gebr/ Bot]5095 NO Invalid mailbox name". Can/should
this be fixed?
[reply]
[top]
[»]
Password!
by Michael - Apr 5th 2007 09:54:08
I should mention that I have since changed the password in my post! :)
[reply]
[top]
[»]
Script Hanging...
by Michael - Apr 5th 2007 08:09:43
Hi guys,
I have been running the script for the last 30 mins here and it does not
seem to be doing anything..
Here is the output so far:
Could anyone advise if there is something I can do as I do not want to
leave it all day if it is doing nothing!! Thanks..
C:\usr\eg\imapsync>perl imapsync --host1 mail.blastbeat.org --user1
michael@bla
stbeat.org --password1 mickoc --host2 mail.emailsrvr.com --user2
michael@blastbe
at.org --password2 mickoc --noauthmd5
$RCSfile: imapsync,v $ $Revision: 1.217 $ $Date: 2007/03/06 13:12:23
$
Mail::IMAPClient version used here is 2.2.9
Command line used :
imapsync --host1 mail.blastbeat.org --user1 michael@blastbeat.org
--password1 mi
ckoc --host2 mail.emailsrvr.com --user2 michael@blastbeat.org --password2
mickoc
--noauthmd5
will try to use LOGIN authentication on host1
will try to use LOGIN authentication on host2
From imap server [mail.blastbeat.org] port [143] user
[michael@blastbeat.org]
To imap server [mail.emailsrvr.com] port [143] user
[michael@blastbeat.org]
Mail::IMAPClient not using Fast_IO; not available on this platform at
imapsync l
ine 643
Banner : * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUB
JECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS]
Courier-IMAP rea
dy. Copyright 1998-2004 Double Precision, Inc. See COPYING for
distribution inf
ormation.
Host mail.blastbeat.org says it has NO CAPABILITY for AUTHENTICATE
LOGIN
Success login on [mail.blastbeat.org] with user [michael@blastbeat.org]
auth [LO
GIN]
Mail::IMAPClient not using Fast_IO; not available on this platform at
imapsync l
ine 643
Banner : * OK [CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES
MULTIAPPEND U
NSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS QUOTA STARTTLS
AUTH=PLA
IN] Server ready director2.r2.iad.emailsrvr.com
Host mail.emailsrvr.com says it has NO CAPABILITY for AUTHENTICATE
LOGIN
Success login on [mail.emailsrvr.com] with user [michael@blastbeat.org]
auth [LO
GIN]
From capability : QUOTA STARTTLS NAMESPACE IDLE THREAD=ORDEREDSUBJECT ACL
SORT U
IDPLUS CHILDREN ACL2=UNION IMAP4REV1 THREAD=REFERENCES
To capability : QUOTA STARTTLS NAMESPACE MULTIAPPEND SASL-IR AUTH=PLAIN
IDLE L
OGIN-REFERRALS UNSELECT LITERAL+ SORT CHILDREN IMAP4REV1
THREAD=REFERENCES
From state Authenticated
To state Authenticated
From separator and prefix : [.][INBOX.]
To separator and prefix : [.][INBOX.]
++++ Calculating sizes ++++
From Folder [INBOX] Size: 231645500 Messages:
2244
From Folder [INBOX.Drafts] Size: 0 Messages:
0
From Folder [INBOX.Sent] Size: 24849324 Messages:
115
From Folder [INBOX.Trash] Size: 4595 Messages:
1
From Folder [INBOX.archived_mail] Size: 741548138 Messages:
7031
Total size: 998047557
Total messages: 9391
Time : 116 s
++++ Calculating sizes ++++
To Folder [INBOX] Size: 30456975 Messages:
340
To Folder [INBOX.Drafts] Size: 0 Messages:
0
To Folder [INBOX.Sent] Size: 770 Messages:
1
To Folder [INBOX.Trash] Size: 0 Messages:
0
To Folder [INBOX.archived_mail] Size: 0 Messages:
0
Total size: 30457745
Total messages: 341
Time : 6 s
++++ Listing folders ++++
From folders list : [INBOX] [INBOX.Drafts] [INBOX.Sent] [INBOX.Trash]
[INBOX.arc
hived_mail]
To folders list : [INBOX] [INBOX.Drafts] [INBOX.Sent] [INBOX.Trash]
[INBOX.arc
hived_mail]
++++ Looping on each folder ++++
From Folder [INBOX]
To Folder [INBOX]
++++ From [INBOX] Parse 1 ++++
++++ To [INBOX] Parse 1 ++++
++++ Verifying [INBOX] -> [INBOX] ++++
+ NO msg #7337 [xkhgP1qm0U12KGKbE8qrvA:2596] in INBOX
+ Copying msg #7337:2596 to folder INBOX
flags from : [\Seen][]
[reply]
[top]
[»]
Re: Script Hanging...
by Ilja2141 - Jul 18th 2007 00:33:27
I had the same problem on WinXP and I didn't find any solution.
It works OK on linux, so I'm running it on a virtual machine with
Debian...
[reply]
[top]
[»]
Having problems with dots either in user names and folder names
by Budy - Mar 21st 2007 02:13:36
I am trying to use imapsync to sync between an Oracle mail server and cyrus
on a CentOS 4.4 box. First thing is that I have to name user slightly
different due to the fact that the imapd does not use the unixhierarchysep:
yes directive that prevents me from using a dot in the mailbox name.
Secons thing is, that imapsync won't sync folders that contain dots in
their names as well. It seems that dots in imapsync are treated as
seperators? What is really weird is, that if I enable 'unixhierarchysep:
yes' in the imapd.conf file I do get all the data synced but I still cannot
generate "account" mailboxes with dots that can be used.
This results in the following "workflow":
- start imapd with 'unixhierarchysep: yes' disabled and create the user's
mailboxes
- restart imapd with 'unixhierarchysep: yes' enabled and have imapsync
transfer all the messages
Does anybody has a tipp how to solve this?
Thanks,
Budy
[reply]
[top]
[»]
Re: Having problems with dots either in user names and folder names
by Budy - Mar 22nd 2007 13:47:11
Hi,
seems that I had a little blackout when messing around with Cyrus and I
finally ended up with clearing up Cyrus files and folders and have the
whole thing started over.
The only error was when setting up the initial mailbox for the users. When
using the unixhierachsep option one has to create the user account
mailboxes like this:
cm user/foo.bar
Afterwards ImapSync just went smoothly with my test account and synced all
e-mails from my Oracle Mail Server that is included in Oracle's
Collaboration Suite.
Cheers,
Budy
[reply]
[top]
[»]
I am convinced
by Chris - Mar 20th 2007 04:42:53
I am convinced that this works.
What I want to do is to transfer accounts (all accounts) from exchange
2000 to postfix /courier-imap.
The problem is that I don't have all the passwords of the users on
Exchange.
I know I can do an Ldap transfer (which I will) but after that I need to
transfer the mailboxes for 300 users to Linux.
Any advice will be appreciated.
Chris
[reply]
[top]
[»]
Is this fixable
by daniel - Mar 8th 2007 15:44:41
It works fine until I run it on mailboxes larger than 1G. This error is
happenning on Freebsd at the point after it finishes statistics. The
transfer is from a courier imap to MS Exchange 2003. Here is a snippet of
output at the beginning of errors:
From Folder [INBOX.escrow-com] Size: 0 Messages:
0
From Folder [INBOX.fernandez_ent] Size: 31688 Messages:
1
From Folder [INBOX.green] Size: 0 Messages:
0
From Folder [INBOX.henry lue] Size: 0 Messages:
0
From Folder [INBOX.kelkor] Size: 0 Messages:
0
From Folder [INBOX.legal matters] Size: 192012 Messages:
1
From Folder [INBOX.mail your check] Size: 0 Messages:
0
From Folder [INBOX.merchants] Size: 31880175 Messages:
433
From Folder [INBOX.panama reporting] Size: 0 Messages:
0
From Folder [INBOX.payments] Size: 0 Messages:
0
From Folder [INBOX.paymentsonvanclaptop] Size: 0 Messages:
0
From Folder [INBOX.sdrowssap] Size: 1516361 Messages:
34
From Folder [INBOX.searchengines] Size: 0 Messages:
0
From Folder [INBOX.segpay] Size: 0 Messages:
0
From Folder [INBOX.verotel] Size: 0 Messages:
0
From Folder [INBOX.yahoo] Size: 0 Messages:
0
Total size: 1023297344
Total messages: 9334
Time : 2102 s
++++ Calculating sizes ++++
To Folder [123billing] does not exist yet
To Folder [2000_charge] Not connected at
/usr/bin/imapsync line 836
Error sending '17 STATUS 2000_charge (MESSAGES)' to IMAP: at
/usr/bin/imapsync line 836
does not exist yet
To Folder [AD] Not connected at
/usr/bin/imapsync line 836
Error sending '18 STATUS AD (MESSAGES)' to IMAP: at /usr/bin/imapsync
line 836
does not exist yet
To Folder [AVPS] Not connected at
/usr/bin/imapsync line 836
Error sending '19 STATUS AVPS (MESSAGES)' to IMAP: at /usr/bin/imapsync
line 836
does not exist yet
To Folder [AVPS/avps legal] Not connected at
/usr/bin/imapsync line 836
Error sending '20 STATUS "AVPS/avps legal" (MESSAGES)' to IMAP:
at /usr/bin/imapsync line 836
does not exist yet
To Folder [Accusupport] Not connected at
/usr/bin/imapsync line 836
Error sending '21 STATUS Accusupport (MESSAGES)' to IMAP: at
/usr/bin/imapsync line 836
does not exist yet
To Folder [BC companies] Not connected at
/usr/bin/imapsync line 836
Error sending '22 STATUS "BC companies" (MESSAGES)' to IMAP: at
/usr/bin/imapsync line 836
does not exist yet
To Folder [BCEA] Not connected at
/usr/bin/imapsync line 836
Error sending '23 STATUS BCEA (MESSAGES)' to IMAP: at /usr/bin/imapsync
line 836
does not exist yet
Thanks,
Daniel
[reply]
[top]
[»]
magic tool
by xplo - Feb 16th 2007 02:07:29
While several commercial tool vendors claimed they have the holy
migration-grail, we ended up finding it here and only here.. in imapsync.
Works very well even on big imap accounts with several hundreds of
thousands of individual mails each, as long as the servers behave as
they're supposed to. (Someone at IBM should reread the IMAP and MIME
rfcs.)
Thank you for this invaluable tool.
[reply]
[top]
[»]
Works fine - with a minor bug
by Kevin Thorpe - Jan 24th 2007 03:56:34
Works just fine Cyrus-IMAP => Scalix 11. 10 users, 4Gb mailstore (with
lots of stacked folders).
Minor bug, flags are not set correctly on the first pass. A second pass
sorts this out though so not a big deal.
[reply]
[top]
[»]
imapsync error
by nb - Dec 29th 2006 20:13:55
When I run imapsync I get the following:
$RCSfile: imapsync,v $ $Revision: 1.182 $ $Date: 2006/08/01 23:07:42
$
Mail::IMAPClient version used here is 2.2.9
will try to use CRAM-MD5 authentication on host1
will try to use CRAM-MD5 authentication on host2
From imap server [maccentricsolutions.com] port [143] user
[nbirnbaum@maccentricsolutions.com]
To imap server [mail.maccentricsolutions.com] port [143] user
[noam]
Banner : * OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS
AUTH=LOGIN] [64.128.82.97] IMAP4rev1 2004.357-cpanel at Fri, 29 Dec 2006
20:05:59 -0800 (PST)
maccentricsolutions.com: no support for AUTHENTICATE CRAM-MD5, using
LOGIN
Banner : * OK mail.maccentricsolutions.com Cyrus IMAP4 v2.2.12-OS X 10.4.8
server ready
Undefined subroutine &main:: called at
/opt/local/lib/perl5/vendor_perl/5.8.8/Mail/IMAPClient.pm line 3490.
Any suggestions?
[reply]
[top]
[»]
Re: imapsync error
by Mads Jakobsen - Jan 12th 2007 04:24:31
> When I run imapsync I get the
> following:
>
> $RCSfile: imapsync,v $ $Revision: 1.182
> $ $Date: 2006/08/01 23:07:42 $
> Mail::IMAPClient version used here is
> 2.2.9
> will try to use CRAM-MD5 authentication
> on host1
> will try to use CRAM-MD5 authentication
> on host2
> From imap server
> [maccentricsolutions.com] port [143]
> user
> [nbirnbaum@maccentricsolutions.com]
> To imap server
> [mail.maccentricsolutions.com] port
> [143] user [noam]
> Banner : * OK [CAPABILITY IMAP4REV1
> LITERAL+ SASL-IR LOGIN-REFERRALS
> AUTH=LOGIN] [64.128.82.97] IMAP4rev1
> 2004.357-cpanel at Fri, 29 Dec 2006
> 20:05:59 -0800 (PST)
> maccentricsolutions.com: no support for
> AUTHENTICATE CRAM-MD5, using LOGIN
> Banner : * OK
> mail.maccentricsolutions.com Cyrus IMAP4
> v2.2.12-OS X 10.4.8 server ready
> Undefined subroutine &main:: called
> at
> /opt/local/lib/perl5/vendor_perl/5.8.8/Mail/IMAPClient.pm
> line 3490.
>
>
> Any suggestions?
I have the same problem on my FC5 box running:
imapsync 1.201
Perl v.5.8.8,
IMAPClient v. 2.2.9 (installed using cpan)
Digest::MD5 v. 2.3.6 (installed using cpan)
I am using authmec plain for both servers
Any ideas as to what the problem might be?
[reply]
[top]
[»]
Re: imapsync error
by diadian - Feb 8th 2007 09:56:08
Hi,
I'm having the same problem as above. I would appreciate any help.
I've updated perl using RPM.
I've installed imapclient using cpan.
According to cpan, Mail::IMAPClient is up to date (2.2.9).
I'm using Whitebox EL 3.0.
perl-Digest-SHA1-2.01-15.1
perl-DateManip-5.42a-0.rhel3
perl-libwww-perl-5.65-6
perl-Time-HiRes-1.38-3
mod_perl-1.99_09-10.ent
perl-HTML-Parser-3.26-17
perl-XML-Parser-2.31-15
perl-libxml-enno-1.02-29
perl-Net-DNS-0.31-3.1
perl-DBI-1.32-9
perl-CPAN-1.61-89.10
newt-perl-1.08-4
perl-Parse-Yapp-1.05-30
perl-libxml-perl-0.07-28
perl-XML-Grove-0.46alpha-25
perl-Digest-HMAC-1.01-11.1
perl-5.8.0-94.EL3
perl-URI-1.21-7
perl-XML-Twig-3.09-3
perl-SGMLSpm-1.03ii-11
perl-Filter-1.29-3
perl-HTML-Tagset-3.03-28
perl-XML-Encoding-1.01-23
perl-CGI-2.81-89.10
The command I'm using is:
imapsync --dry --host1 mail.sample.com --host2 mail.outsourcedserver.net
--user1 ed --password1 password --user2 ed@sample.com --password2 password
--authmech1 login
The output of the command:
$RCSfile: imapsync,v $ $Revision: 1.209 $ $Date: 2007/02/02 02:06:50 $
Mail::IMAPClient version used here is 2.2.9
will try to use login authentication on host1
will try to use CRAM-MD5 authentication on host2
From imap server [mail.sample.com] port [143] user [ed]
To imap server [mail.outsourcedserver.net] port [143] user
[ed@sample.com]
Banner : * OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS
STARTTLS AUTH=LOGIN] mx.sample.com IMAP4rev1 2004.357 at Thu, 8 Feb 2007
09:47:51 -0800 (PST)
Host mail.sample.com says it has CAPABILITY for AUTHENTICATE login
Use of uninitialized value in subroutine entry at
/usr/lib/perl5/site_perl/5.8.0/Mail/IMAPClient.pm line 3490.
Undefined subroutine &main:: called at
/usr/lib/perl5/site_perl/5.8.0/Mail/IMAPClient.pm line 3490.
Thanks for your help in advance.
[reply]
[top]
[»]
Re: imapsync error
by tpyro - Feb 19th 2007 07:03:33
> Host mail.sample.com says it has
> CAPABILITY for AUTHENTICATE login
> Use of uninitialized value in subroutine
> entry at
> /usr/lib/perl5/site_perl/5.8.0/Mail/IMAPClient.pm
> line 3490.
> Undefined subroutine &main:: called at
> /usr/lib/perl5/site_perl/5.8.0/Mail/IMAPClient.pm
> line 3490.
>
> Thanks for your help in advance.
I got the same error and it turned out that I needed to install the
HMAC_MD5.perl module from CPAN. I had originally installed imapsync from
macports so I assumed that all dependencies had been taken care of.
sudo /opt/local/bin/perl -MCPAN -e 'install Digest::HMAC_MD5'
This module is actually described as optional in the INSTALL document but
it seems that the functionality is used by default.
[reply]
[top]
[»]
Re: imapsync error
by Michael Fuchs - Feb 22nd 2007 09:15:01
I'm had the same problem.
I tried plain, login, digest-md5, cram-md5.
Once I tried LOGIN instead of login, it worked :)
Mike
> When I run imapsync I get the
> following:
>
> $RCSfile: imapsync,v $ $Revision: 1.182
> $ $Date: 2006/08/01 23:07:42 $
> Mail::IMAPClient version used here is
> 2.2.9
> will try to use CRAM-MD5 authentication
> on host1
> will try to use CRAM-MD5 authentication
> on host2
> From imap server
> [maccentricsolutions.com] port [143]
> user
> [nbirnbaum@maccentricsolutions.com]
> To imap server
> [mail.maccentricsolutions.com] port
> [143] user [noam]
> Banner : * OK [CAPABILITY IMAP4REV1
> LITERAL+ SASL-IR LOGIN-REFERRALS
> AUTH=LOGIN] [64.128.82.97] IMAP4rev1
> 2004.357-cpanel at Fri, 29 Dec 2006
> 20:05:59 -0800 (PST)
> maccentricsolutions.com: no support for
> AUTHENTICATE CRAM-MD5, using LOGIN
> Banner : * OK
> mail.maccentricsolutions.com Cyrus IMAP4
> v2.2.12-OS X 10.4.8 server ready
> Undefined subroutine &main:: called
> at
> /opt/local/lib/perl5/vendor_perl/5.8.8/Mail/IMAPClient.pm
> line 3490.
>
>
> Any suggestions?
[reply]
[top]
[»]
performance estimates
by karixmatix - Dec 19th 2006 06:09:10
Going thru the comment histories, I believe that imapsync has been used for
migrating giga bytes of mailboxes. Is there an estimate from real world
experience on how much time it took for say 1 GB of mailbox(es) to be
migrated from one messaging server to another.
Thanks,
ks
[reply]
[top]
[»]
Something off here....
by Talamar - Nov 30th 2006 07:18:57
$RCSfile: imapsync,v $ $Revision: 1.190 $ $Date: 2006/11/11 00:13:15 $
Mail::IMAPClient version used here is 2.2.9
will try to use login authentication on host1
will try to use login authentication on host2
From imap server [www.smsbusinessmedia.com] port [143] user [kjuhasz]
To imap server [www.smsbusinessmedia.com] port [143] user
[shawnee@smsbusinessmedia.com]
From connection
Read: * OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS AUTH=LOGIN]
alsmithsplace.com IMAP4rev1 2003.338 at Thu, 30 Nov 2006 10:18:01 -0500
(EST)
Connect: Received this from readline: 0/OUTPUT/* OK [CAPABILITY IMAP4REV1
LOGIN-REFERRALS AUTH=LOGIN] alsmithsplace.com IMAP4rev1 2003.338 at Thu, 30
Nov 2006 10:18:01 -0500 (EST)
Banner : * OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS AUTH=LOGIN]
alsmithsplace.com IMAP4rev1 2003.338 at Thu, 30 Nov 2006 10:18:01 -0500
(EST)
Sending: 1 CAPABILITY
Sent 14 bytes
Read: * CAPABILITY IMAP4REV1 IDLE NAMESPACE MAILBOX-REFERRALS BINARY
UNSELECT SCAN SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND
LOGIN-REFERRALS AUTH=LOGIN
1 OK CAPABILITY completed
Sending: 2 AUTHENTICATE login
Sent 22 bytes
Read: + VXNlciBOYW1lAA==
Use of uninitialized value in subroutine entry at
/usr/local/lib/perl5/site_perl/5.8.7/Mail/IMAPClient.pm line 3490.
Undefined subroutine &main:: called at
/usr/local/lib/perl5/site_perl/5.8.7/Mail/IMAPClient.pm line 3490.
[reply]
[top]
[»]
subfolder hierarchy is not working
by arunav - Nov 15th 2006 05:02:22
I have two problems
1. It seems the folder hierarchy is not maintained while mail transfer so
all sub folders of folders become sub folder of Inbox. Also no mails in
subfolders are transfered.
2. Use of uninitialized value in ref-to-glob cast at
/usr/lib/perl5/site_perl/5.8.5/Mail/IMAPClient.pm line 1431.
Couldn't append msg #113 (Subject:[FW: Formelt tilbud til) to folder
Test\Test 1\Test 2: Error sending '6446 APPEND {18}
Test\Test 1\Test 2 (\Seen) {18718}
' to IMAP: Bad file descriptor
There are lot of these errors.
Any help is appreciated.
[reply]
[top]
[»]
Reduced Windows Compatibility
by Tashfeen Bhimdi - Nov 4th 2006 22:27:29
Is imapsync is slowly weaning away from Windows compatibility? ActivePerl
doesn't offer a module for IO::Socket::SSL, so no Perl + SSL + Imapsync
possible without using stunnel (which works perfectly with the script
btw).
BUT you have to manually comment out the Use SSL line in the script. Not
a big deal, but in these newer versions Cram-MD5 authentication is required
otherwise the script won't work. I have access to 5 different IMAP servers
and none of them support Cram-MD5 and PLAIN auth is only supported if using
SSL within imapsync (stunnel doesn't count).
So now I had to search for the "exit(1)" line and comment that
out too.
So future versions, please make it so that:
1) Cram-MD5 isn't required or Auth PLAIN works in non-SSL mode (don't
force security on the user, since we can use stunnel which imapsync can't
detect)
2) SSL isn't required to run the script when not using the
"--ssl" command-line argument (like I said, no SSL module
available)
[reply]
[top]
[»]
A wonderful tool
by Russ Smith - Oct 18th 2006 03:16:26
Fantastic tool and surprisingly easy to use, even for an idiot like
me!
Simple but effective.
[reply]
[top]
[»]
IMHO, best IMAP sync tool
by Antoniu-George SAVU - Oct 14th 2006 07:17:22
I've been trying a lot of IMAP sync tools freely available but your's by
far the most complete and fully functional IMAP migration tool.
I've succesfuly migrated my 1GB + mailbox from a Cyrus-IMAP base IMAP
server to a Courier-IMAP server without any problems.
Thank you for your great work !
[reply]
[top]
[»]
missuse of imapsync?
by Susanne Wenz - Sep 18th 2006 09:07:16
Hello!
I'd like to use imapsync to move old (>14 days) mails from my remote
imap-mailbox on the internet to my local imap-mailbox. There they should
stay eternal. I deleted and expunged them on the remote server to save
space and found them deleted on my local server.
Is there a possibility to do that or is it a missuse of the program. I
know,it's called imap_sync_:-)
Thank you.
Susanne
[reply]
[top]
[»]
Re: missuse of imapsync?
by daashag - Oct 12th 2006 03:21:00
> Hello!
>
> I'd like to use imapsync to move old
> (>14 days) mails from my remote
> imap-mailbox on the internet to my local
> imap-mailbox. There they should stay
> eternal. I deleted and expunged them on
> the remote server to save space and
> found them deleted on my local server.
>
> Is there a possibility to do that or is
> it a missuse of the program. I know,it's
> called imap_sync_:-)
>
> Thank you.
>
> Susanne
You can just use an email client, (thunderbird will work) to connect to
your imap sever then use the work offline feature. That will create a copy
of the emails locally for you.
[reply]
[top]
[»]
BAD syntax error
by souperman - Sep 12th 2006 15:00:00
I keep getting the following error when trying to sync a mail box.
Error trying to append string: 2100 BAD syntax error
Has anyone else had this problem?
[reply]
[top]
[»]
imapsync is a great help
by Jackobli - Sep 12th 2006 03:40:41
Had to migrate from cyrus 2.0.16 to 2.2.12. I was unable to do the database
(Berkeley to Berkeley Skiplist) migration as mentioned in some howtos.
With imapsync I avoided all that stuff and copied about 2000 messages from
the old to the new mailserver. No problems did show up.
Great! Thank you very much. I did rate a 10.
[reply]
[top]
[»]
great tool
by daashag - Sep 3rd 2006 03:41:44
Have a question? In the script to migrate multiple mailboxes, how do I
tell it what host and source to connect to. Thanks
[reply]
[top]
[»]
Great software
by Aparzev GmbH - Aug 27th 2006 05:59:01
We moved tons of messages from Communigate to Courier.IMAP with it.
[reply]
[top]
[»]
Fantastic!
by Cristian T. Moecke - Aug 16th 2006 13:39:14
That was just EXACTLY what I needed. I am making a big server migration,
and had no easy way to migrate emails. THANKS A LOT for this nice piece of
software. The work that would take some weeks was done in a couple of days.
[reply]
[top]
[»]
Thank you!
by uberneen - Jul 23rd 2006 13:54:10
This is truly a wonderful tool and it works great.
You've save me a lot of time and trouble by writing this and I can't
express how much I appreciate your efforts.
Vince~
[reply]
[top]
[»]
ssleay and openssl install
by bobdeb - May 17th 2006 19:03:30
thanks for the tool.
it is working very well.
7GB of email and 100's of users moved.
if this helps others; during the 'make install' perl reported it couldn't
find IO::Socket::SSL
cpan had an install question on the install of
IO::Socket::SSL
part of the prereq is openssl ... then comes the question:
----
checking for OpenSSL?-0.9.6j or 0.9.7b or newer...
I could not find your OpenSSL? in `INSTALLDIRS=site'
Please provide OpenSSL?-0.9.6j or
OpenSSL?-0.9.7b installation directory (get from
http://www.openssl.org/ if you don't have it; please note that
SSLeay? is no longer supported, see README) (C-c to abort):
----
one needs to type in:
/usr
I have a debian sarge (3.1) system.
openssl had previously been installed.
[reply]
[top]
[»]
It's works!!!
by silvio reis - May 5th 2006 15:53:06
Hi,
I'd used imapsync to migrate from a linux system (Conectiva Linux 10) to
Microsoft Exchange 2003 (on SBS2003) and everything was ok.
The most amazing thing (to me) is that I run the imapsync with ActivePerl
on Windows 2003 with no errors (well, I cheated, you need to comment the
Use IO::Socket::SSL line on imapsync script).
Last tip: Use ActivePerl Perl Package Manager to download and install the
Mail-IMAPClient package.
Thanks for this excelent tool.
[reply]
[top]
[»]
Worked for three accounts now, not so much
by topher M - Apr 26th 2006 12:49:41
On my Ubuntu/Postfix/Courier server I had great success, and even began to
celebrate my eventual triumph ... then:
cntl() on unopened filehandle GEN0 at /usr/share/perl5/Mail/IMAPClient.pm
line 70.
fcntl() on unopened filehandle GEN0 at /usr/share/perl5/Mail/IMAPClient.pm
line 80.
any help out there?
Google didn't find much related to info.
[reply]
[top]
[»]
Re: Worked for three accounts now, not so much
by lrahm - May 2nd 2006 06:20:10
> On my Ubuntu/Postfix/Courier server I
> had great success, and even began to
> celebrate my eventual triumph ... then:
>
> cntl() on unopened filehandle GEN0 at
> /usr/share/perl5/Mail/IMAPClient.pm line
> 70.
> fcntl() on unopened filehandle GEN0 at
> /usr/share/perl5/Mail/IMAPClient.pm line
> 80.
>
>
> any help out there?
>
> Google didn't find much related to info.
I'm getting the same errors.
From Redhat to Ubuntu 5.10 Breezy
From Sendmail to Postfix/Courier
$RCSfile: imapsync,v $ $Revision: 1.125 $ $Date: 2005/04/22 01:12:18
$
Mail::IMAPClient version used here is 2.2.9 auth md5 : 1
From imap server [mail.test1.org] port [143] user [user@test1.org]
To imap server [mail.test2.org] port [143] user [user@test2.org]
Auth CRAM-MD5 supported by IMAPClient 2.2.9
fcntl() on closed filehandle GEN0 at /usr/share/perl5/Mail/IMAPClient.pm
line 70.
fcntl() on closed filehandle GEN0 at /usr/share/perl5/Mail/IMAPClient.pm
line 80.
But have not been able to move any accounts.
[reply]
[top]
[»]
Re: Worked for three accounts now, not so much
by Belunet - Oct 4th 2007 08:45:15
I successfully corrected the problem with the use of arg --ssl1 --ssl2
i hope this can help you
[reply]
[top]
[»]
invalid date format
by gui - Apr 19th 2006 01:39:20
Hi All
Many of my mails are not geting transferred.
I keep getting this kind of invalid date format errors:
+ NO msg #7127 [KdHkAApz5QXJ+a597PN1IA:28639] in INBOX
+ Copying msg #7127:28639 to folder INBOX
flags from : [][""]
Couldn't append msg #7127 (Subject:[0]) to folder INBOX: Error trying to
append string: 122 BAD parse error: invalid date format
This is the command i used:
/usr/local/bin/imapsync --host1
mail.abc.com --user1 gary --password1 abc
--host2 fx053.abc.com --user2 gary --password2
abc --subscribed --subscribe --folder INBOX
--syncinternaldates
Can anybody help?
Thank you very much in anticipation.
[reply]
[top]
[»]
Great Program
by Kurt - Apr 5th 2006 09:12:12
This is a Great program, however I keep getting errors similar to this when
attempting to transfer certain emails:
+ NO msg #274 [tK9tpS6l/DIUGOzNI3nlcg:11632663] in INBOX
+ Copying msg #274:11632663 to folder INBOX
flags from : [\Seen]["28-Mar-2006 15:48:31 -0600"]
Couldn't append msg #274 (Subject:[Festival Percussion]) to folder INBOX:
Error trying to append string: 490 BAD parse error: request too long
"Request too long" it doesn't make any sense why... perhaps you
can figure it out.
[reply]
[top]
[»]
Re: Great Program
by Shane - Apr 25th 2006 14:13:29
I get the same problem. I even tried --skipsize, but had no luck.
> This is a Great program, however I keep
> getting errors similar to this when
> attempting to transfer certain emails:
>
> + NO msg #274
> [tK9tpS6l/DIUGOzNI3nlcg:11632663] in
> INBOX
> + Copying msg #274:11632663 to folder
> INBOX
> flags from : [\Seen]["28-Mar-2006
> 15:48:31 -0600"]
> Couldn't append msg #274
> (Subject:[Festival Percussion]) to
> folder INBOX: Error trying to append
> string: 490 BAD parse error: request too
> long
>
> "Request too long" it doesn't
> make any sense why... perhaps you can
> figure it out.
[reply]
[top]
[»]
Re: Great Program
by S Douglass - May 25th 2006 13:22:38
I ran into that same error, and was able to make it go away by increasing
the maximum message size on host2. I think host2's maximum message size has
to be >= the largest message you're trying to migrate.
> I get the same problem. I even tried
> --skipsize, but had no luck.
>
>
>
> % This is a Great program, however I
> keep
> % getting errors similar to this when
> % attempting to transfer certain
> emails:
> %
> % + NO msg #274
> % [tK9tpS6l/DIUGOzNI3nlcg:11632663] in
> % INBOX
> % + Copying msg #274:11632663 to folder
> % INBOX
> % flags from :
> [\Seen]["28-Mar-2006
> % 15:48:31 -0600"]
> % Couldn't append msg #274
> % (Subject:[Festival Percussion]) to
> % folder INBOX: Error trying to append
> % string: 490 BAD parse error: request
> too
> % long
> %
> % "Request too long" it
> doesn't
> % make any sense why... perhaps you can
> % figure it out.
>
>
>
[reply]
[top]
[»]
saved my day :-)
by walter neyder - Mar 25th 2006 14:42:03
Saved me hours in migrating from an old cyrus- to our courier-mailserver.
Thanks for this great tool.
[reply]
[top]
[»]
Worked like a charm
by Jens Gonska - Sep 6th 2005 07:34:42
I used imapsync to migrate several Gigabyte of berkley style Mailboxes
(from a badly misconfigured) uw-imapd to a fresh cyrus installation on
another host.
The --regextrans2 switch did, what no other migration tool could handle.
Even subfolders were created on-the-fly!
Thank you VERY MUCH for this superb tool.
[reply]
[top]
[»]
Script terminates: Out of memory
by superhenne - Jul 7th 2005 03:31:48
First of all, thanks for a great tool.
But, unfortunately I encounter problems when transferring some hundreds of
mails with large attachments (1 to 15 MB). The script breaks with this
message:
"Out of memory during "large" request for 33558528 bytes,
total sbrk() is 507238400 bytes at
/usr/local/lib/perl5/site_perl/5.8.7/Mail/IMAPClient.pm line
3249."
Can i tweak my system or is this a bug in the script?
thanks, kind regards
superhenne
[reply]
[top]
[»]
Re: Script terminates: Out of memory
by superhenne - Jul 8th 2005 09:09:41
> But, unfortunately I encounter problems
> when transferring some hundreds of mails
> with large attachments (1 to 15 MB). The
> script breaks with this message:
> "Out of memory during
> "large" request for 33558528
> bytes, total sbrk() is 507238400 bytes
> at ...
so i increased the kern.maxdsiz value to 1GB - now the script runs some
more time before it breaks with the "out of error" message. i restart it,
transfer some messages, and it breaks again.
[reply]
[top]
[»]
INBOX.Sent to INBOX
by leenix66 - Jun 30th 2005 11:44:42
Hi Everybody,
How can I sync INBOX.Sent, INBOX.Drafts and INBOX.* to just INBOX on my
new mail server?
Thanks,
Joel
[reply]
[top]
[»]
Re: INBOX.Sent to INBOX
by subbu - Mar 10th 2006 08:48:21
> Hi Everybody,
>
> How can I sync INBOX.Sent, INBOX.Drafts
> and INBOX.* to just INBOX on my new mail
> server?
>
> Thanks,
>
> Joel
Hi,
I would like to move emails from InBox to a sub-folder called , say
"2005-InBox" based on the date ( Like all emails received in the Year 2005
should be moved to the folder called "2005-InBox" ) using the imapsync
tool. I tested the tool and it is really good to migrate from one account
to other account or from one server to other email server but using the
same tool, I would like to move emails in InBox of an account to a
sub-folder. ( INBOX.2005-INBOX ). Really appreciate if some one can let me
know the way to establish at server level. Thanks for your help in
advance.
Thanks,
Subbu
[reply]
[top]
[»]
SASL Auth Proxy
by John Amodeo - Jun 2nd 2005 14:19:17
Imapsync looks promising, but I can't find a way to use the Cyrus/SASL
admin proxy feature to authenticate as the super user but act on behalf of
a normal user. This feature would be incredibly useful so replication
could be done without the need to know user passwords. Any ideas?
Info about SASL proxy can be found here:
You can proxy as another user automatically with the cyrus user
imtest -t "" -a cyrus -u tc2154 host.
You give the cyrus password for authentication and then are authorized as
tc2154.
If you want to use an account besides cyrus for authentication set these
in imapd.conf
proxy_authname: proxyname
proxy_password: password
Now you could do
imtest -t "" -a proxyname -u tc2154 host.
and give the proxyname's password
It seems as if the client needs to support proxy. In the previous case,
the client is imtest.
UW Mailutil also supports proxy - but not replication (which makes
itundesirable for server migrations)
[reply]
[top]
[»]
Re: SASL Auth Proxy
by Kevin Baker - Sep 7th 2005 14:23:35
So did you get this working? I am in the same position... right now I am
using known password database, which is rather insecure. This sort of
feature would open up a lot of possibilites, mainly for me somewhat
realtime backups using this app.
> Imapsync looks promising, but I can't
> find a way to use the Cyrus/SASL admin
> proxy feature to authenticate as the
> super user but act on behalf of a normal
> user. This feature would be incredibly
> useful so replication could be done
> without the need to know user passwords.
> Any ideas?
>
> Info about SASL proxy can be found
> here:
>
> You can proxy as another user
> automatically with the cyrus user
>
> imtest -t "" -a cyrus -u
> tc2154 host.
>
> You give the cyrus password for
> authentication and then are authorized
> as tc2154.
>
> If you want to use an account besides
> cyrus for authentication set these in
> imapd.conf
>
> proxy_authname: proxyname
> proxy_password: password
>
> Now you could do
>
> imtest -t "" -a proxyname -u
> tc2154 host.
> and give the proxyname's password
>
> It seems as if the client needs to
> support proxy. In the previous case,
> the client is imtest.
>
> UW Mailutil also supports proxy - but
> not replication (which makes
> itundesirable for server migrations)
>
-- Kevin Baker
Mission Vi Inc.
http://www.missionvi.com
|