Topic: Password and maildir migration.
==== Provide required information ====
- iRedMail version and backend (LDAP/MySQL/PGSQL): iRedMail-0.8.0 and iRedAdmin-Pro v1.7.2 (LDAP)
- Linux/BSD distribution name and version: Scientific Linux 6.2
- Any related log? Log is helpful for troubleshooting.
====
Hi,
I am upgrading our existing mail server to an iRedMail solution. At the moment I have a FreeBSD machine running Postfix/Dovecot/MySQL/etc/etc with PostfixAdmin as the Postfix management tool. Passwords are encrypted with the standard internal PostfixAdmin "md5crypt" routine, which appears to be salted md5 of some description.
Here is a sample password, both encrypted and in plain text as pulled from the MySQL database with phpMyAdmin:
Plain text: test
Encrypted: $1$68ea415b$tgGUY0f5zygJ6elSKH7Yx1
Is there an easy way to migrate the existing passwords to a new LDAP based iRedMail installation?
So far I have tried using phpLDAPadmin to change the password field of a user. I have pasted the encrypted password and tried both the md5 and md5crypt tags but updating and then trying the "Check password" tool hasn't made a match.
The second query I have isn't essential, but it would make my life much easier. Existing maildirs are structured like this:
Username: finch@testfinch.com
Maildir base: /mail/maildirs
finch@testfinch.com's maildir location looks like this: /mail/maildirs/testfinch.com/finch@testfinch.com. Another user, test@testfinch.com would have the maildir /mail/maildirs/testfinch.com/test@testfinch.com, and so on.
Keeping a similar maildir structure would allow a simple rsync to move all the existing maildirs to the new server. How do I go about changing the default maildir format for iRedmail, whilst ensuring that all facets of the suite will work properly?
Any assistance with the two above queries will be very much appreciated :)
Thanks,
Finch!
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.