Комрады,
Не могу догадаться каким образом приучить courier-imap использовать Maildir`ы не в домашней директории пользователя, а в /var/spool/mail/.
стоит связка EXIM+Sasl+courier-imap, авторизация идет через Active Directory.
Конфиг:
sirius courier-imap # cat pop3d
PIDFILE=/var/run/pop3d.pid
MAXDAEMONS=100
MAXPERIP=4
POP3AUTH="LOGIN"
POP3AUTH_ORIG="PLAIN LOGIN"
POP3AUTH_TLS=""
POP3AUTH_TLS_ORIG="LOGIN PLAIN"
POP3_PROXY=0
PORT=110
ADDRESS=0
TCPDOPTS="-nodnslookup -noidentlookup"
LOGGEROPTS="-name=pop3d"
MAILDIRPATH=/var/lib/mail
# Hardwire a value for ${MAILDIR}
MAILDIR=
# Put any program for ${PRERUN} here
PRERUN=
# Put any program for ${LOGINRUN} here
# this is for relay-ctrl-allow in 4*
LOGINRUN=
Лог:
May 27 20:10:34 sirius authdaemond: received auth request, service=pop3, authtype=login
May 27 20:10:34 sirius authdaemond: authldap: trying this module
May 27 20:10:34 sirius authdaemond: selected ldap protocol version 3
May 27 20:10:34 sirius authdaemond: binding to LDAP server as DN 'cn=exim,cn=Users,dc=domain,dc=com', password '*********'
May 27 20:10:34 sirius authdaemond: using search filter: (&(objectCategory=person)(objectClass=user)(sAMAccountName=polukeew))
May 27 20:10:34 sirius authdaemond: one entry returned, DN: CN=.................. ................,OU=TaberAdmins,DC=domain,DC=com
May 27 20:10:34 sirius authdaemond: raw ldap entry returned:
May 27 20:10:34 sirius authdaemond: | cn: .................. ................
May 27 20:10:34 sirius authdaemond: | sAMAccountName: polukeew
May 27 20:10:34 sirius authdaemond: authldaplib: sysusername=, sysuserid=8, sysgroupid=12, homedir=, address=polukeew, fullname=�\222лади�\201лав �\237ол�\203кеев, maildir=, quota=, options=
May 27 20:10:34 sirius authdaemond: authldaplib: clearpasswd=, passwd=
May 27 20:10:34 sirius authdaemond: rebinding with DN 'CN=.................. ................,OU=TaberAdmins,DC=taber,DC=ru' to validate password
May 27 20:10:34 sirius authdaemond: authentication bind successful
May 27 20:10:34 sirius pop3d: polukeew: chdir() failed!!
May 27 20:10:34 sirius authdaemond: Authenticated: sysusername=, sysuserid=8, sysgroupid=12, homedir=, address=polukeew, fullname=�\222лади�\201лав �\237ол�\203кеев, maildir=, quota=, options=
May 27 20:10:34 sirius pop3d: error: No such file or directory
May 27 20:10:34 sirius authdaemond: Authenticated: clearpasswd=***************, passwd=
May 27 20:10:34 sirius pop3d: LOGIN FAILED, user=polukeew, ip=[10.1.1.49]
May 27 20:10:34 sirius pop3d: authentication error: No such file or directory
>>>