How can I move the user information (ie email addresses, domains, passwords, aliases)? The passwords are stored currently as an MD5 hash. I can export this information in any format.
*) Check SQL structure used by iRedMail: https://bitbucket.org/zhb/iredmail/src/ … mail.mysql
*) Check shell script shipped by iRedMail, used to create mail user: https://bitbucket.org/zhb/iredmail/src/ … ser_SQL.sh
*) You can copy MD5 password hashes to SQL column `mailbox.password` directly.
How can I import these into iRedmail - is there a quick way of doing it?
*) Convert mail users to correct SQL records, then import them.
*) iRedMail stores maildir path in 3 SQL columns in table `vmail.mailbox`: storagebasedirectory, storagenode, maildir. concatenate them then you get the final maildir path. For example:
storagebasedirectory=/var/vmail
storagenode=vmail1
maildir=domain.ltd/username
# Use SQL function CONCAT() to get the final maildir path.
# This is how we used them in iRedMail by default.
#SELECT CONCAT(storagebasedirectory, '/', storagenode, '/', maildir) ...