gro555 wrote:
I also tried to use two queries files, but then I faced new problem, because it worked for postfix configuration, but not for dovecot.
You can use this style in Dovecot too. For example:
#
# Original settings
#
userdb {
args = /etc/dovecot/dovecot-mysql.conf
driver = ldap
}
passdb {
args = /etc/dovecot/dovecot-mysql.conf
driver = ldap
}
Just add more userdb and passdb for another OU like below:
# For users under ou=Employees
userdb {
args = /etc/dovecot/dovecot-mysql-employees.conf
driver = ldap
}
passdb {
args = /etc/dovecot/dovecot-mysql-employees.conf
driver = ldap
}
# For users under ou=Parttime
userdb {
args = /etc/dovecot/dovecot-mysql-parttime.conf
driver = ldap
}
passdb {
args = /etc/dovecot/dovecot-mysql-parttime.conf
driver = ldap
}