Jorey Bump" wrote:
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.
On current mail server I have:
[r...@mail ~]# file /etc/sasldb2
/etc/sasldb2: Berkeley DB (Hash, version 8, native byte-order)
on new mail server I have:
[r...@mail ~]# file /etc/sasldb2
/etc/sasldb2: Berkeley DB (Hash, version 9, native byte-order)
..the version is different, this is can be a problem ?
Thanks in advance.
------
Salvatore.
----- Original Message -----
From: "Jorey Bump" <l...@joreybump.com>
To: "Sasa" <s...@shoponweb.it>
Cc: "Postfix users" <postfix-users@postfix.org>
Sent: Friday, March 13, 2009 4:12 PM
Subject: Re: Export User
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.