User Tools

Site Tools


qmail-ldapwithdovecotondebian

qmail-ldap With Dovecot 2 on Ubuntu

Reference: http://wiki2.dovecot.org/AuthDatabase/LDAP

aptitude install dovecot-imapd dovecot-pop3d dovecot-ldap

/etc/dovecot/conf.d/10-auth.conf:

...
!include auth-ldap.conf.ext
..

/etc/dovecot/conf.d/10-mail.conf:

...
mail_uid = 200
mail_gid = 200
...
first_valid_uid = 200
...

/etc/dovecot/dovecot-ldap.conf.ext:

hosts = localhost

auth_bind = yes

base = ou=qmail, o=mrzesty

user_attrs = =home=/var/qmail/maildirs/%{ldap:mailMessageStore}

user_filter = (&(objectClass=qmailUser)(uid=%u))

pass_attrs = =home=/var/qmail/maildirs/%{ldap:mailMessageStore}

pass_filter = (&(objectClass=qmailUser)(uid=%u))

Fail2ban

Activate fail2ban to block brute force attacks.

<link idref=“44”></link>

qmail-ldapwithdovecotondebian.txt · Last modified: 2020/02/13 22:55 (external edit)

free spam filter