My favorites | Sign in
Logo
                
Search
for
Updated Jun 24, 2009 by michaelbibby
Labels: Featured
Upgrade_032_040  
Upgrade Guide: 0.32 => 0.4.0

WARNING: This page is still being worked on, please do NOT apply it to your server now.

Fixed

Incorrect Correct
debug_level debuglevel

You can use this command to correct them automatic:
# perl -pi -e 's#(.*)debug_level(.*)#${1}debuglevel${2}#' /etc/postfix/ldap_*

Components Update and Migration

Postfix

TODO: OpenLDAP

In iRedMail 0.4.0+, LDAP schema was changed, several attributes were merged:

OLD NEW Comment
enableMailService: yes enabledService: mail
enableSMTP: yes enabledService: smtp
enablePOP3: yes enabledService: pop3
enableIMAP: yes enabledService: imap
enableDELIVER: yes enabledService: deliver
enableFTPService: yes enabledService: ftp This attribute is not used yet.
enableIMService: yes enabledService: im This attribute is not used yet.

Step-by-Step migration tutorial:

  1. Export all users via:
  2. Change attributes and values:
  3. # perl -pi -e 's#enableMailService: yes#enabledService: mail#' all.ldif
    # perl -pi -e 's#enableSMTP: yes#enabledService: smtp#' all.ldif
    # perl -pi -e 's#enablePOP3: yes#enabledService: pop3#' all.ldif
    # perl -pi -e 's#enableIMAP: yes#enabledService: imap#' all.ldif
    # perl -pi -e 's#enableDELIVER: yes#enabledService: deliver#' all.ldif
    # perl -pi -e 's#enableFTPService: yes#enabledService: ftp#' all.ldif
    # perl -pi -e 's#enableIMService: yes#enabledService: im#' all.ldif
  4. Delete all entries:
  5. ##### Dump all dn of virtual domains and users. #####
    # ldapsearch -x \
        -b 'o=domains,dc=iredmail,dc=org' \
        -s sub \
        -D 'cn=Manager,dc=iredmail,dc=org' \
        -W \
        "(|(objectClass=mailUser)(objectClass=mailDomain))" dn | \
        grep '^dn:' | awk '{print $2}' | grep -v '^domainName' | sort -r > dn.del.list
    
    ##### WARNING: Be sure you have a valid LDIF copy. #####
    # ldapdelete -x -D 'cn=Manager,dc=iredmail,dc=org' -W -f dn.del.list
  6. Use schema file in iRedMail-0.4.0 (samples/iredmail.schema) to replace old file:
  7. # cp -f iRedMail-0.4.0/samples/iredmail.schema /etc/openldap/schema/
  8. Restart ldap service:
  9. # /etc/init.d/ldap restart
  10. Re-import LDIF data:
  11. # ldapadd -x -D 'cn=Manager,dc=iredmail,dc=org' -W -f all.ldif
  12. Change ldap search filter in all ldap enabled service:

Apache

phpLDAPadmin

TODO: Roundcube webmail

Roundcube webmail was upgrade to 0.2-stable.

TODO:

Hosted by Google Code