Sasa wrote, at 03/13/2009 10:58 AM: > "Jorey Bump" wrote: > >> If you need to transfer your sasldb2 to a new machine, it will depend on >> the underlying database format/version used. In many cases, you can >> simply copy it. But, if the formats are incompatible, you may have to >> dump it to text, then recreate it on the new machine. > > yes, I want transfer sasldb2 users to another mail server, on my current > mail server I have: > > cyrus-sasl-2.1.21 > postfix-2.3.3 > > and for to create user I use: > > #saslpasswd2 -c -u mail.example.com -a smtpauth test > > On the new mail server I have: > > cyrus-sasl-2.1.22 > postfix-2.5.6 > > With this configuration can I simply copy sasldb2 file from current > server to new server ?
It seems highly probable. It's harmless to test it. In fact, you can run this command on both machines to verify the format: file /etc/sasldb2 If you don't have an sasldb2 on the new machine, just create one by adding an entry with saslpasswd2. If they're the same type, a simple copy should work. Of course, you could just go ahead and copy it and see if it works. Remember to make backups on both machines.
