[opensuse] Moving Cyrus IMAP mail files
The recent post on the best imap has made me ask the question, how do/should I move my Cyrus Imap files from one server to another. I'll need to be upgrading my suse 10.0 server to 10.3 soon, and I've never had to move my existing mail before. I haven't decided if I'll change boxes, or just do a new install on a different partition on the same box, but in any case will be a clean new install of 10.3 (assuming I can get my graphics issues worked out). If I don't change boxes, I won't be able to have both installs running at the same time, so how do I move the files, or more specifically, which files do I move? Many thanks, Jim F -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Jim Flanagan wrote:
The recent post on the best imap has made me ask the question, how do/should I move my Cyrus Imap files from one server to another. I'll need to be upgrading my suse 10.0 server to 10.3 soon, and I've never had to move my existing mail before. I haven't decided if I'll change boxes, or just do a new install on a different partition on the same box, but in any case will be a clean new install of 10.3 (assuming I can get my graphics issues worked out).
If I don't change boxes, I won't be able to have both installs running at the same time, so how do I move the files, or more specifically, which files do I move?
Many thanks,
Jim F One method is to copy your mail to local folders in an email client and then copy them back to the imap server.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
James Knott wrote:
Jim Flanagan wrote:
The recent post on the best imap has made me ask the question, how do/should I move my Cyrus Imap files from one server to another. I'll need to be upgrading my suse 10.0 server to 10.3 soon, and I've never had to move my existing mail before. I haven't decided if I'll change boxes, or just do a new install on a different partition on the same box, but in any case will be a clean new install of 10.3 (assuming I can get my graphics issues worked out).
If I don't change boxes, I won't be able to have both installs running at the same time, so how do I move the files, or more specifically, which files do I move?
Many thanks,
Jim F
One method is to copy your mail to local folders in an email client and then copy them back to the imap server.
The general idea is to copy the mailbox files and directory structure over, dump the databases on the old server and import them on the new server. I have successfully done this a few times. Let me know if you need more detailed help. Regards, -- --Moby They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Jim Flanagan wrote:
The recent post on the best imap has made me ask the question, how do/should I move my Cyrus Imap files from one server to another. I'll need to be upgrading my suse 10.0 server to 10.3 soon, and I've never had to move my existing mail before. I haven't decided if I'll change boxes, or just do a new install on a different partition on the same box, but in any case will be a clean new install of 10.3 (assuming I can get my graphics issues worked out).
If the only server application is Cyrus then you might as well export the cyrus databases, make a clean install and then restore and import the cyrus databases. On the other hand, I just upgraded from 10.0 to 10.3, and the Cyrus/Postfix/Amavis/saslauthd combination was upgraded perfectly.
If I don't change boxes, I won't be able to have both installs running at the same time, so how do I move the files, or more specifically, which files do I move?
/etc/cyrus.conf /etc/imapd.conf /etc/sasl2/ /etc/pam.d/* (common*, login, imap, sieve, smtp) /etc/sysconfig/saslauthd /var/lib/imap (where the databases are) /var/lib/sieve (where the compiled sieve scripts are stored) /var/spool/imap (where the actual mailboxes are) /usr/lib/sasl2/ (cyrus sasl libs for authentication mechanisms) I think it is easier to update the installation. -- Sandy List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Sandy Drobic wrote:
Jim Flanagan wrote:
The recent post on the best imap has made me ask the question, how do/should I move my Cyrus Imap files from one server to another. I'll need to be upgrading my suse 10.0 server to 10.3 soon, and I've never had to move my existing mail before. I haven't decided if I'll change boxes, or just do a new install on a different partition on the same box, but in any case will be a clean new install of 10.3 (assuming I can get my graphics issues worked out).
If the only server application is Cyrus then you might as well export the cyrus databases, make a clean install and then restore and import the cyrus databases.
On the other hand, I just upgraded from 10.0 to 10.3, and the Cyrus/Postfix/Amavis/saslauthd combination was upgraded perfectly.
If I don't change boxes, I won't be able to have both installs running at the same time, so how do I move the files, or more specifically, which files do I move?
/etc/cyrus.conf /etc/imapd.conf /etc/sasl2/ /etc/pam.d/* (common*, login, imap, sieve, smtp) /etc/sysconfig/saslauthd /var/lib/imap (where the databases are) /var/lib/sieve (where the compiled sieve scripts are stored) /var/spool/imap (where the actual mailboxes are) /usr/lib/sasl2/ (cyrus sasl libs for authentication mechanisms)
I think it is easier to update the installation.
Thanks for the advice Sandy. I have never tried an upgrade due to many recommendations on this list. But I know opensuse has put a lot of effort into that. I may try it, it would save a lot of work. I guess its worth a try, I can always do a clean if that does not work. I never did get saslauthd working on my 10.0 install, but would very much like to use that on 10.3. Can you point me to a good reference for that? Many thanks, Jim F -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Jim Flanagan wrote:
I think it is easier to update the installation.
Thanks for the advice Sandy. I have never tried an upgrade due to many recommendations on this list. But I know opensuse has put a lot of effort into that. I may try it, it would save a lot of work. I guess its worth a try, I can always do a clean if that does not work.
Backup your data, then try to update the installation. If it doesn't work you can do a clean install. Though I would advise you do dump the data of your databases to textfiles. export_cyrus.sh #------------------------------- # export mailboxes.db su - cyrus -c 'ctl_mboxlist -d >/var/lib/imap/mailboxes.txt' # export seen databases one line): # (check your format! see 'man imapd.conf' for details) su - cyrus -c 'for seenfile in `find /var/lib/imap/user -name \*.seen`; do /usr/lib/cyrus/bin/cvt_cyrusdb $seenfile skiplist ${seenfile%seen}txt flat; done' # export deliver.db (check your format! see 'man imapd.conf' for details): su - cyrus -c '/usr/lib/cyrus/bin/cvt_cyrusdb /var/lib/imap/deliver.db berkeley-nosync /var/lib/imap/deliver.txt flat' #------------------------------- import_cyrus.sh #------------------------------- # Delete old databases rm /var/lib/imap/db/* rm /var/lib/imap/tls_sessions.db rm /var/lib/imap/mailboxes.db rm /var/lib/imap/deliver.db find /var/lib/imap/ -type f -name *.seen | xargs rm # import mailboxes.db su - cyrus -c 'ctl_mboxlist -u </var/lib/imap/mailboxes.txt' # import seen databases (eine Zeile): su - cyrus -c 'for txtfile in `find /var/lib/imap/user -name \*.txt`; do /usr/lib/cyrus/bin/cvt_cyrusdb $txtfile flat ${txtfile%txt}seen skiplist; done' # import deliver.db: su - cyrus -c '/usr/lib/cyrus/bin/cvt_cyrusdb /var/lib/imap/deliver.txt flat /var/lib/imap/deliver.db berkeley-nosync' #------------------------------- These scripts work for me on an Opensuse system,test them at your own risk. (^-^)
I never did get saslauthd working on my 10.0 install, but would very much like to use that on 10.3. Can you point me to a good reference for that?
Unfortunately, the documentation for cyrus sasl in general and saslauthd particularly can only be called miserable. :-( What you need to know is that all services that want to use saslauthd need access to the socket of saslauthd. The allowed auth mechs are plain text only, which means PLAIN and LOGIN. You should take care that all applications know about this limitation. Even the path where saslauthd is looking for config files are not clearly documented. It seems as if Opensuse 10.3 is starting to move the files to /etc/sasl2, before the files for SMTP was placed in the same directory as the auth mechs (in /usr/lib/sasl2). You will have to conquer it step-for-step, I'm afraid. :-/ -- Sandy List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Sandy Drobic wrote:
Jim Flanagan wrote:
I think it is easier to update the installation.
Thanks for the advice Sandy. I have never tried an upgrade due to many recommendations on this list. But I know opensuse has put a lot of effort into that. I may try it, it would save a lot of work. I guess its worth a try, I can always do a clean if that does not work.
Backup your data, then try to update the installation. If it doesn't work you can do a clean install. Though I would advise you do dump the data of your databases to textfiles.
export_cyrus.sh #------------------------------- # export mailboxes.db su - cyrus -c 'ctl_mboxlist -d >/var/lib/imap/mailboxes.txt' # export seen databases one line): # (check your format! see 'man imapd.conf' for details) su - cyrus -c 'for seenfile in `find /var/lib/imap/user -name \*.seen`; do /usr/lib/cyrus/bin/cvt_cyrusdb $seenfile skiplist ${seenfile%seen}txt flat; done' # export deliver.db (check your format! see 'man imapd.conf' for details): su - cyrus -c '/usr/lib/cyrus/bin/cvt_cyrusdb /var/lib/imap/deliver.db berkeley-nosync /var/lib/imap/deliver.txt flat' #-------------------------------
import_cyrus.sh #------------------------------- # Delete old databases rm /var/lib/imap/db/* rm /var/lib/imap/tls_sessions.db rm /var/lib/imap/mailboxes.db rm /var/lib/imap/deliver.db find /var/lib/imap/ -type f -name *.seen | xargs rm
# import mailboxes.db su - cyrus -c 'ctl_mboxlist -u </var/lib/imap/mailboxes.txt' # import seen databases (eine Zeile): su - cyrus -c 'for txtfile in `find /var/lib/imap/user -name \*.txt`; do /usr/lib/cyrus/bin/cvt_cyrusdb $txtfile flat ${txtfile%txt}seen skiplist; done' # import deliver.db: su - cyrus -c '/usr/lib/cyrus/bin/cvt_cyrusdb /var/lib/imap/deliver.txt flat /var/lib/imap/deliver.db berkeley-nosync' #-------------------------------
These scripts work for me on an Opensuse system,test them at your own risk. (^-^)
I never did get saslauthd working on my 10.0 install, but would very much like to use that on 10.3. Can you point me to a good reference for that?
Unfortunately, the documentation for cyrus sasl in general and saslauthd particularly can only be called miserable. :-(
What you need to know is that all services that want to use saslauthd need access to the socket of saslauthd. The allowed auth mechs are plain text only, which means PLAIN and LOGIN. You should take care that all applications know about this limitation.
Even the path where saslauthd is looking for config files are not clearly documented. It seems as if Opensuse 10.3 is starting to move the files to /etc/sasl2, before the files for SMTP was placed in the same directory as the auth mechs (in /usr/lib/sasl2).
You will have to conquer it step-for-step, I'm afraid. :-/
Thanks Sandy, Jim F -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 10/16/2007 08:07 PM, Jim Flanagan wrote:
I never did get saslauthd working on my 10.0 install, but would very much like to use that on 10.3. Can you point me to a good reference for that?
On 10.2 (and successfully updated to 10.3), all I needed to do was Yast sysconfig editor and set POSTFIX_SMTP_AUTH_SERVER to yes and start saslauthd via runlevel editor. Couldn't have been easier. -- Joe Morris Registered Linux user 231871 running openSUSE 10.3 x86_64 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
James Knott
-
Jim Flanagan
-
Joe Morris (NTM)
-
Moby
-
Sandy Drobic