Active Mail Services

Vorwort

Konfiguration

Dovecot

/etc/dovecot/dovecot.conf
protocols = imap imaps
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/var/vmail/%d/%u
mail_uid = 150
mail_gid = 150
mail_privileged_group = mail
first_valid_uid = 150
last_valid_uid = 150
first_valid_gid = 150
last_valid_gid = 150
protocol imap {
}
protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
}
protocol managesieve {
}
auth_username_format = %Lu
auth_verbose = yes
auth_debug = yes
auth default {
  mechanisms = plain
  passdb pam {
  }
  passdb ldap {
    args = /etc/dovecot/dovecot-ldap.conf
  }
  userdb passwd {
  }
  userdb ldap {
    args = /etc/dovecot/dovecot-ldap.conf
  }
  user = root
}
dict {
}
plugin {
}
/etc/dovecot/dovecot-ldap.conf
auth_bind = yes
base = OU=Users,OU=Company,DC=example,DC=local
dn = CN=Dovecot,OU=Users,OU=Systems,OU=Company,DC=example,DC=local
dnpass = LDAPPASS
hosts = example.local
ldap_version = 3
pass_attrs = sAMAccountName=user
pass_filter = (&(ObjectClass=person)(sAMAccountName=%u))
user_filter = (&(ObjectClass=person)(sAMAccountName=%u))

Kommentare