Topic: External User Creation via PHP-script (need help)
==== Required information ====
- iRedMail version : 0.9.2
- Linux/BSD distribution name and version: Ubuntu 14.02
- Store mail accounts in which backend : MySql
- Web server : Apache
- Manage mail accounts with iRedAdmin-Pro? Free edition
====
Hello,
At first sorry for my bad english.
i have installed IRedMail 0.9.2 on a Fresh Ubuntu system. And all works fine.
But i am trying to create mail-accounts by the registration on ma Website.
Whit a php-Script i insert a new user into the Mailbox - Table an into Aliases.
I think the Problem is the Password hash.
my password string in PHP is:
$hash = "{SSHA512}" . base64_encode(hash('sha512', $_user_pass_1 . $salt) . $salt);
the Salt ($salt) is an MD5 hash from users Password ($_user_pass_1) .
After the mysqli Query is done, in IredMail admin Panne the new Account ist visiblle and active, but if i try to conect vie thunderbird i get WRONG USER OR PASSWORD.
the Default pass scheme in IRedmail is SSHA512
Can someone help?
Thanks
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.