1

Topic: Hotfix for 0.6.0: Domain alias and shadow address don't work (LDAP)

This post is used to fix domain alias issue in iRedMail-0.6.0 and iRedOS-0.6.0. if it doesn't work for you, please post a new topic in General Technical Support forum.
========

Abstract

Mail can't be delivered to shadow address.

Affected versions
  • iRedMail-0.6.0

  • iRedOS-0.6.0

Steps to fix it
  • Modify dovecot-ldap.conf, change user_filter and pass_filter to below settings:

user_filter     = (&(objectClass=mailUser)(|(mail=%u)(&(enabledService=shadowaddress)(shadowAddress=%u)))(accountStatus=active)(enabledService=mail)(enabledService=%Ls%Lc))

pass_filter     = (&(objectClass=mailUser)(|(mail=%u)(&(enabledService=shadowaddress)(shadowAddress=%u)))(accountStatus=active)(enabledService=mail)(enabledService=%Ls%Lc))

Note: On RHEL/CentOS, it's /etc/dovecot-ldap.conf, On Debian/Ubuntu, it's /etc/dovecot/dovecot-ldap.conf, On FreeBSD, it's /usr/local/etc/dovecot-ldap.conf.

  • Restart dovecot service.

#
# ---- On RHEL/CENTOS/Debian/Ubuntu ----
#
# /etc/init.d/dovecot restart

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