Re: [SM-USERS] how to backup and restore abook files for squirrelmail?
stilobix wrote: > > Hi all, > > I'm running a squirelmail server on an old freeBSD server and I decided to > virtualized it. > > My mail server is working fine, the webmail is also working. However I did > not find the way to get back the address book for my users. I found out > that the .pref and .abook files are stored in a folder depending on a > hash. They are in a subfolder named for 0 to 9 and a to f. > > /.../webmail/data/0 > /.../webmail/data/1 > /...l/webmail/data/2 > /.../webmail/data/3 > /.../webmail/data/4 > ... > ... > /.../webmail/data/d > /.../webmail/data/e > /.../webmail/data/f > > So I decided to rsync the files from my old server to the new one. When I > logged in with my account, I could not get my address book back and a new > .pref and .abook files were created in a different folder. > > How can I import them from the old server to the new one? > > Thank you for your help. > Check '4. General Options' -> '3. Directory Hash Level' configuration option in your new SquirrelMail setup. Your old setup had non-default setting. I suspect that your new setup has different value (not equal to 1) or your user login names changed. You should also check data directory setting in your new setup. If directory hash settings and login names are exactly the same, which PHP versions and OSes are used in both setups? -- Tomas -- View this message in context: http://old.nabble.com/how-to-backup-and-restore-abook-files-for-squirrelmail--tp33043674p33051400.html Sent from the squirrelmail-users mailing list archive at Nabble.com. -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox - squirrelmail-users mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: squirrelmail-users@lists.sourceforge.net List archives: http://news.gmane.org/gmane.mail.squirrelmail.user List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
Re: [SM-USERS] how to backup and restore abook files for squirrelmail?
stilobix wrote: > > > > Tomas Kuliavas wrote: >> >> >> stilobix wrote: >>> >>> Hi all, >>> >>> I'm running a squirelmail server on an old freeBSD server and I decided >>> to virtualized it. >>> >>> My mail server is working fine, the webmail is also working. However I >>> did not find the way to get back the address book for my users. I found >>> out that the .pref and .abook files are stored in a folder depending on >>> a hash. They are in a subfolder named for 0 to 9 and a to f. >>> >>> /.../webmail/data/0 >>> /.../webmail/data/1 >>> /...l/webmail/data/2 >>> /.../webmail/data/3 >>> /.../webmail/data/4 >>> ... >>> ... >>> /.../webmail/data/d >>> /.../webmail/data/e >>> /.../webmail/data/f >>> >>> So I decided to rsync the files from my old server to the new one. When >>> I logged in with my account, I could not get my address book back and a >>> new .pref and .abook files were created in a different folder. >>> >>> How can I import them from the old server to the new one? >>> >>> Thank you for your help. >>> >> Check '4. General Options' -> '3. Directory Hash Level' configuration >> option in your new SquirrelMail setup. Your old setup had non-default >> setting. I suspect that your new setup has different value (not equal to >> 1) or your user login names changed. You should also check data directory >> setting in your new setup. >> >> If directory hash settings and login names are exactly the same, which >> PHP versions and OSes are used in both setups? >> >> -- >> Tomas >> > > Hi, thanks for your answer! > > I'm using FreeBSD on both servers, the new one is up to date 8.2 and the > old one is running version 6.2 > > I checked the directory hash level and it is set to 1 on both of them and > the login names are exactly the same. I really do not know why the new > system is not using the existing .abook files instead of creating a new > one. > If directory hash level is the same, then checksum calculation function started producing different results on new setup. Is FreeBSD 8.2 on amd64 platform? Are you using same SquirrelMail version as on FreeBSD 6.2? Have you checked, if you have same issue in current stable SquirrelMail version? -- Tomas -- View this message in context: http://old.nabble.com/how-to-backup-and-restore-abook-files-for-squirrelmail--tp33043674p33052532.html Sent from the squirrelmail-users mailing list archive at Nabble.com. -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox - squirrelmail-users mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: squirrelmail-users@lists.sourceforge.net List archives: http://news.gmane.org/gmane.mail.squirrelmail.user List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
Re: [SM-USERS] how to backup and restore abook files for squirrelmail?
stilobix wrote: > > yes amd64 > > How do squirrelmail does checksum calculation? based on what? the hostname > is different, the new server is amd64 and the old one i386, then > everything is the same. I rebuilt the server exactly like it was. > > To be honnest I am new to squirrelmail so I did a "rsync -a" from the old > server to the new one. I read documentations and wikis on the official > website. And I do not understand why squirrelmail is not using the .abook > files (backup) instead of creating new ones. > Everything is working fine except the address book. Well it is working but > I can not get the backup back in the webmail interface. > > I might go a fresh install of squirrelmail with an up to date version. > > SquirrelMail uses PHP crc32 function to calculate checksum of username. Newer versions have fix for 64bit systems. You said that files are created in different directory. It means that crc32 result is different on new system. FreeBSD 6.2 is probably 32bit x86. crc32 result is integer value. 32bit integer size differs from 64bit integer. SquirrelMail does not scan entire hashed tree for matching user data files. It checks only root data directory and directories defined in hash. If hash gives $data_dir/a/b/c/d/ hash directories for your username, SquirrelMail won't look up in $data_dir/b/c/d/e/ Patch is in http://squirrelmail.svn.sourceforge.net/viewvc/squirrelmail/trunk/squirrelmail/functions/prefs.php?r1=12714&r2=13403. Although PHP manual comments have different code variation for that. -- View this message in context: http://old.nabble.com/how-to-backup-and-restore-abook-files-for-squirrelmail--tp33043674p33052688.html Sent from the squirrelmail-users mailing list archive at Nabble.com. -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox - squirrelmail-users mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: squirrelmail-users@lists.sourceforge.net List archives: http://news.gmane.org/gmane.mail.squirrelmail.user List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users