(ОС: Debian 5.0)
Backend Mysql (база Postfixadmin'а):
/etc/dovecot/dovecot-sql.conf:
driver = mysql
connect = host=127.0.0.1 dbname=postfixadmin user=postfixadmin password=secret
default_pass_scheme = PLAIN-MD5
password_query = SELECT username as user, password FROM mailbox WHERE username = ‘%u’ and active=’1′
user_query = SELECT maildir, 3000 AS uid, 3000 AS gid FROM mailbox WHERE username = ‘%u’ and active=’1′
Backend Openldap:
/etc/dovecot/dovecot-ldap.conf:
hosts = 172.16.0.10
dn = cn=dovecot,ou=daemons,dc=dream,dc=lan
dnpass = dovecot_password
auth_bind = no
ldap_version = 3
base = ou=users, dc=dream, dc=lan
scope = subtree
user_attrs = homeDirectory=home
user_filter = (&(objectClass=posixAccount)(mail=%u)(description=*mailbox enable*))
pass_attrs = mail=user,userPassword=password
pass_filter = (&(objectClass=posixAccount)(mail=%u)(description=*mailbox enable*))
default_pass_scheme = SSHA
user_global_uid = 3000
user_global_gid = 3000
Backend Mysql (база Postfixadmin'а):
/etc/dovecot/dovecot-sql.conf:
driver = mysql
connect = host=127.0.0.1 dbname=postfixadmin user=postfixadmin password=secret
default_pass_scheme = PLAIN-MD5
password_query = SELECT username as user, password FROM mailbox WHERE username = ‘%u’ and active=’1′
user_query = SELECT maildir, 3000 AS uid, 3000 AS gid FROM mailbox WHERE username = ‘%u’ and active=’1′
Backend Openldap:
/etc/dovecot/dovecot-ldap.conf:
hosts = 172.16.0.10
dn = cn=dovecot,ou=daemons,dc=dream,dc=lan
dnpass = dovecot_password
auth_bind = no
ldap_version = 3
base = ou=users, dc=dream, dc=lan
scope = subtree
user_attrs = homeDirectory=home
user_filter = (&(objectClass=posixAccount)(mail=%u)(description=*mailbox enable*))
pass_attrs = mail=user,userPassword=password
pass_filter = (&(objectClass=posixAccount)(mail=%u)(description=*mailbox enable*))
default_pass_scheme = SSHA
user_global_uid = 3000
user_global_gid = 3000
Комментариев нет:
Отправить комментарий