PDA

View Full Version : Create an email with crypt password


bakon
10-27-2009, 07:29 PM
If we want to create an email account we can do it with:
http://127.0.0.1/manager/ispmgr?out=xml&func=email.edit&sok=yes&domain=DOMAIN&name=NAME&passwd=PASSWORD&confirm=PASSWORD&quota=QUOTA

Doc: http://ispsystem.com/docs/isp-lite-en-devel/index.html

But if we want to create an email and we have the passwords crypted how could we do it?
So we have, for example, the password of the user encrypted with MD5, how could we create it?

GakcaT
10-28-2009, 07:19 AM
I don't understand what do you wanna do. Explain in detail.

bakon
10-28-2009, 11:45 AM
Exim could store passwd of email users in 3 ways:
plain, sasl, md5 (crypted)

If we have it in md5 mode:
1) Will "ImportUser" (fnuction to migrate accounts between servers) work with no problem?
2) We have some servers with Ispmanager, and we are migrating accounts. Sometimes, ImportUser doesn't do it well, so we have to extract a list of "EMAIL,PASSWORD" to restore it at another server. We extract something like this in a file:
EMAIL1,PASSWORD1
EMAIL2,PASSWORD2
...
EMAILN,PASSWORDN

To restore, we use the API of Ispmanager, but we haven't seen that it could be posible to create an email user with crypted password, so something like this:
http://127.0.0.1/manager/ispmgr?out=xml&func=email.edit&sok=yes&domain=DOMAIN&name=NAME&passwd=PASSWORD&confirm=PASSWORD&quota=QUOTA&passwdmd5=YES
So we have added: "&passwdmd5=YES"

Could it be posible that feature to create an email with the crypted password.

I hope that now it is more detailed.
We wait for your news.

Thank you.