Configuration POP et IMAP
Configuration de base
Package Gentoo: courier-imap courier-authlib
Serveur POP & IMAP
Il est nécessaire de choisir une méthode d'authentification, ici ce sera LDAP.
<licode file=/etc/courier-imap/pop3d> POP3DSTART=YES MAILDIR=Maildir MAILDIRPATH=Maildir </licode>
<licode file=/etc/courier-imap/imapd> MAILDIR=Maildir MAILDIRPATH=Maildir
- NAME: MAXPERIP:0
- Maximum number of connections to accept from the same IP address
MAXPERIP=20 </licode>
# mkpop3dcert # mkimapdcert #/etc/init.d/courier-pop3d start #/etc/init.d/courier-imap start
Authentification LDAP
Dans /etc/courier/authlib (courier >= 4.0)
<licode file=/etc/courier/authlib/authdaemond.conf> AUTHDAEMOND="authdaemond.ldap" </licode>
<licode file=/etc/courier/authlib/authdaemonrc> authmodulelist="authldap authpam" </licode>
<licode file=/etc/courier/authlib/authldaprc> LDAP_URI ldap://ldap.livois.com LDAP_PROTOCOL_VERSION 3 LDAP_BASEDN dc=livois,dc=com LDAP_AUTHBIND 1 LDAP_MAIL mail LDAP_GLOB_UID vmail LDAP_GLOB_GID vmail LDAP_HOMEDIR homeDirectory LDAP_MAILDIR mailbox LDAP_CRYPTPW userPassword LDAP_FILTER (objectClass=VirtualMailAccount)(accountActive=TRUE)(delete=FALSE) </licode>
#/etc/init.d/courier-authlib start