Quantcast
Channel: iRedMail
Viewing all articles
Browse latest Browse all 47943

Transfer user account (MySQL)

$
0
0

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
======== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend : MySQL
- Linux/BSD distribution name and version: CentOS 6.4 64bit
- Related log if you're reporting an issue:
====

Hello,

I have a question about user account migration.

I have a 5-years old mail server (postfix+courier) using MySQL to store virtual user account. When I create a new account on the server I need do a SQL INSERT like this:
INSERT INTO  `mail`.(`email` ,`name` ,`password` ,`quota` ,`time_stamp`)
VALUES ('zzz@zzz.com',  'zzz', ENCRYPT(  '12345' ) ,  '524288000', CURRENT_TIMESTAMP)

Now I want to use iRedMail to build a new server. I installed iRedMail 0.8.5 and it works fine. Now I need to test moving all the user accounts from the old server to new iRedMail server.

Here is my question: The password field on my old server is using MySQL's ENCRYPT function to encrypt the password. So how can I transfer the user account safely to the iRedMail? I am not a programmer, but when I tried look at the code I saw that it seems iRedMail encrypt the password through python script and then save the password as plain text into the table vamil.mailbox. 

Many thanks in advance.


Viewing all articles
Browse latest Browse all 47943

Trending Articles