I've searched around, and I'm not finding anything specific related to my problem. Hopefully someone might have some insight as to what's going on here. It's obvious that it's a permissions issue of wherever it's trying to write the temp files, but I can't figure out where this is happening.
I'm trying to migrate my mail from a qmail/courier setup. After fighting with the imapsync syntax to get logged in to both servers, it shows me all the folders/number of messages it's going to transfer, then fails when it tries to actually copy a message. The syntax I'm using for imapsync is:
It should be noted that I had to run this as the zimbra user. When run as root, it fails to connect to the zimbra server via SSL for some reason.
/usr/bin/imapsync --buffersize 8192000 --nosyncacls --subscribe --syncinternaldates --host1 OLDHOST --user1 OLDUSER --passfile1 PASSFILE --authmech1 CRAM-MD5 --host2 ZIMBRAHOST--user2 NEWUSER --passfile2 PASSFILE --noauthmd5 --ssl2
The relevant error info is below:
++++ Looping on each folder ++++
From Folder [INBOX]
To Folder [INBOX]
Subscribing to folder INBOX on destination server
++++ From [INBOX] Parse 1 ++++
++++ To [INBOX] Parse 1 ++++
++++ Verifying [INBOX] -> [INBOX] ++++
+ NO msg #12221 [RbCofTaXRMXjfivhwvcPPw:4778] in INBOX
+ Copying msg #12221:4778 to folder INBOX
Unable to open tmp_imapsync_8093: Permission denied at /usr/bin/imapsync line 1143
error [tmp_imapsync_8093]: No such file or directory at /usr/bin/imapsync line 1495.