Upgrade/iRedMail/0.8.6-hotfixes

From iRedMail
Jump to: navigation, search

Contents


Important notes: These hotfixes are applicable to users who

  • upgraded iRedMail from old versions to 0.8.6 BEFORE Jan 8, 2014, or
  • downloaded and installed iRedMail-0.8.6 BEFORE Jan 8, 2014.

OpenLDAP backend special

Remove backup mx detection in Postfix query. It's added in iRedMail-0.8.6 and it's wrong, we have to revert it.

  • Open Postfix LDAP query file /etc/postfix/ldap/transport_maps_domain.cf (Linux and OpenBSD) or /usr/local/etc/postfix/ldap/transport_maps_domain.cf (FreeBSD), find its query_filter = parameter. It should looks like below:
File: /etc/postfix/ldap/transport_maps_domain.cf
query_filter    = (&(objectClass=mailDomain)(accountStatus=active)(enabledService=mail)(!(domainBackupMX=yes))(|(domainName=%s)(domainAliasName=%s)))
  • Please update it to below one:
File: /etc/postfix/ldap/transport_maps_domain.cf
query_filter    = (&(objectClass=mailDomain)(|(domainName=%s)(domainAliasName=%s))(accountStatus=active)(enabledService=mail))
  • Restart Postfix service is required:
Terminal:
# ---- On Linux
# /etc/init.d/postfix restart

# ---- On OpenBSD
# /etc/rc.d/postfix restart

# ---- On FreeBSD
# /usr/local/etc/rc.d/postfix restart

MySQL backend special

Remove backup mx detection in Postfix query. It's added in iRedMail-0.8.6 and it's wrong, we have to revert it.

  • Open Postfix MySQL query file /etc/postfix/mysql/transport_maps_domain.cf (Linux and OpenBSD) or /usr/local/etc/postfix/mysql/transport_maps_domain.cf (FreeBSD), find its query = parameter. It should looks like below:
File: /etc/postfix/mysql/transport_maps_domain.cf
query       = SELECT transport FROM domain WHERE domain='%s' AND active=1 AND backupmx=0
  • Please update it to below one:
File: /etc/postfix/mysql/transport_maps_domain.cf
query       = SELECT transport FROM domain WHERE domain='%s' AND active=1
  • Restart Postfix service is required:
Terminal:
# ---- On Linux
# /etc/init.d/postfix restart

# ---- On OpenBSD
# /etc/rc.d/postfix restart

# ---- On FreeBSD
# /usr/local/etc/rc.d/postfix restart

PostgreSQL backend special

Remove backup mx detection in Postfix query. It's added in iRedMail-0.8.6 and it's wrong, we have to revert it.

  • Open Postfix PostgreSQL query file /etc/postfix/pgsql/transport_maps_domain.cf (Linux and OpenBSD) or /usr/local/etc/postfix/pgsql/transport_maps_domain.cf (FreeBSD), find its query = parameter. It should looks like below:
File: /etc/postfix/pgsql/transport_maps_domain.cf
query       = SELECT transport FROM domain WHERE domain='%s' AND active=1 AND backupmx=0
  • Please update it to below one:
File: /etc/postfix/pgsql/transport_maps_domain.cf
query       = SELECT transport FROM domain WHERE domain='%s' AND active=1
  • Restart Postfix service is required:
Terminal:
# ---- On Linux
# /etc/init.d/postfix restart

# ---- On OpenBSD
# /etc/rc.d/postfix restart

# ---- On FreeBSD
# /usr/local/etc/rc.d/postfix restart
Personal tools