Exim+Courier-imap+Ldap беда с папками пользаков.

EXIM, sendmail, postfix, Dovecot и прочие. Решение проблем связанных с работой электронной почты

Модератор: xM

Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
Аватара пользователя
kapa6ac
мл. сержант
Сообщения: 146
Зарегистрирован: 2007-09-19 10:33:02

Exim+Courier-imap+Ldap беда с папками пользаков.

Непрочитанное сообщение kapa6ac » 2007-09-24 8:38:54

Доброго дня.
Ситуевина такова - настроил Exim и Courier на аутентификацию через Ldap. Вроде как авторизация пашет, но папки пользаков не создаются (/var/spool/mail/[uid_пользака]). Создаю руками, даю на нее права - отглюк начинает ругаться, что не може получить папку "Входящие", ее действительно там нет. Создаю "Входящие" + даю права - результат не меняется.
Подскажите в чем грабли?

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2460 рублей (8 CPU, 8Gb RAM, 2x500Gb HDD, RAID 3ware 9750):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

Аватара пользователя
Alex Keda
стреляли...
Сообщения: 35068
Зарегистрирован: 2004-10-18 14:25:19
Откуда: Made in USSR
Контактная информация:

Re: Exim+Courier-imap+Ldap беда с папками пользаков.

Непрочитанное сообщение Alex Keda » 2007-09-24 8:43:18

в логах что
Убей их всех! Бог потом рассортирует...

Аватара пользователя
kapa6ac
мл. сержант
Сообщения: 146
Зарегистрирован: 2007-09-19 10:33:02

Re: Exim+Courier-imap+Ldap беда с папками пользаков.

Непрочитанное сообщение kapa6ac » 2007-09-24 8:49:58

debug.log

Код: Выделить всё

Sep 24 09:47:36 LDAP imapd-ssl: Connection, ip=[197.197.197.222]
Sep 24 09:47:37 LDAP authdaemond: received auth request, service=imap, authtype=login
Sep 24 09:47:37 LDAP authdaemond: authldap: trying this module
Sep 24 09:47:37 LDAP authdaemond: selected ldap protocol version 3
Sep 24 09:47:37 LDAP authdaemond: binding to LDAP server as DN 'cn=Manager,dc=textiles,dc=ru', password 'gfhfpbn'
Sep 24 09:47:37 LDAP slapd[583]: conn=33 fd=17 ACCEPT from IP=::1 56628 (IP=:: 389)
Sep 24 09:47:37 LDAP slapd[583]: conn=33 op=0 BIND dn="cn=Manager,dc=textiles,dc=ru" method=128
Sep 24 09:47:37 LDAP slapd[583]: conn=33 op=0 BIND dn="cn=Manager,dc=textiles,dc=ru" mech=SIMPLE ssf=0
Sep 24 09:47:37 LDAP slapd[583]: conn=33 op=0 RESULT tag=97 err=0 text=
Sep 24 09:47:37 LDAP authdaemond: using search filter: (&(objectClass=gosaMailAccount)(uid=balakleyskiy))
Sep 24 09:47:37 LDAP slapd[583]: conn=33 op=1 SRCH base="ou=People,dc=textiles,dc=ru" scope=2 deref=0 filter="(&(objectClass=gosaMailAccount)(uid=balakleyski
y))"
Sep 24 09:47:37 LDAP slapd[583]: conn=33 op=1 SRCH attr=uid homeDirectory uid uaerPassword userPassword uid gosaMailQuota
Sep 24 09:47:37 LDAP slapd[583]: <= bdb_equality_candidates: (uid) index_param failed (18)
Sep 24 09:47:37 LDAP authdaemond: one entry returned, DN: cn=.................. ........................,ou=people,dc=textiles,dc=ru
Sep 24 09:47:37 LDAP slapd[583]: conn=33 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
Sep 24 09:47:37 LDAP authdaemond: raw ldap entry returned:
Sep 24 09:47:37 LDAP authdaemond: | uid: balakleyskiy
Sep 24 09:47:37 LDAP authdaemond: | gosaMailQuota: 0
Sep 24 09:47:37 LDAP authdaemond: | userPassword: {CRYPT}81MfPWcReFJ9I
Sep 24 09:47:37 LDAP authdaemond: | homeDirectory: /home/balakleyskiy
Sep 24 09:47:37 LDAP authdaemond: authldaplib: sysusername=<null>, sysuserid=26, sysgroupid=26, homedir=/var/spool/mail/balakleyskiy, address=balakleyskiy, f
ullname=balakleyskiy, maildir=/home/balakleyskiy, quota=0, options=<null>
Sep 24 09:47:37 LDAP authdaemond: authldaplib: clearpasswd=<null>, passwd={CRYPT}81MfPWcReFJ9I
Sep 24 09:47:37 LDAP authdaemond: rebinding with DN 'cn=.................. ........................,ou=people,dc=textiles,dc=ru' to validate password
Sep 24 09:47:37 LDAP slapd[583]: conn=34 fd=19 ACCEPT from IP=::1 56629 (IP=:: 389)
Sep 24 09:47:37 LDAP slapd[583]: conn=34 op=0 BIND dn="cn=пM-^Pп?п?п?яM-^Aп?пҐпЄяM-^@ пM-^Qп?п?п?п?п?п?п?яM-^Aп?п?п?,ou=people,dc=textiles,dc=ru" method=128
Sep 24 09:47:37 LDAP slapd[583]: conn=34 op=0 BIND dn="cn=пM-^Pп?п?п?яM-^Aп?пҐпЄяM-^@ пM-^Qп?п?п?п?п?п?п?яM-^Aп?п?п?,ou=people,dc=textiles,dc=ru" mech=SIMPLE
 ssf=0
Sep 24 09:47:37 LDAP slapd[583]: conn=34 op=0 RESULT tag=97 err=0 text=
Sep 24 09:47:37 LDAP authdaemond: authentication bind successful
Sep 24 09:47:39 LDAP imapd-ssl: Unexpected SSL connection shutdown.
Sep 24 09:47:39 LDAP imapd-ssl: Connection, ip=[197.197.197.222]
Sep 24 09:47:39 LDAP authdaemond: received auth request, service=imap, authtype=login
Sep 24 09:47:39 LDAP authdaemond: authldap: trying this module
Sep 24 09:47:39 LDAP authdaemond: selected ldap protocol version 3
Sep 24 09:47:39 LDAP authdaemond: binding to LDAP server as DN 'cn=Manager,dc=textiles,dc=ru', password 'gfhfpbn'
Sep 24 09:47:39 LDAP slapd[583]: conn=35 fd=20 ACCEPT from IP=::1 56630 (IP=:: 389)
Sep 24 09:47:39 LDAP slapd[583]: conn=35 op=0 BIND dn="cn=Manager,dc=textiles,dc=ru" method=128
Sep 24 09:47:39 LDAP slapd[583]: conn=35 op=0 BIND dn="cn=Manager,dc=textiles,dc=ru" mech=SIMPLE ssf=0
Sep 24 09:47:39 LDAP slapd[583]: conn=35 op=0 RESULT tag=97 err=0 text=
Sep 24 09:47:39 LDAP authdaemond: using search filter: (&(objectClass=gosaMailAccount)(uid=balakleyskiy))
Sep 24 09:47:39 LDAP slapd[583]: conn=35 op=1 SRCH base="ou=People,dc=textiles,dc=ru" scope=2 deref=0 filter="(&(objectClass=gosaMailAccount)(uid=balakleyski
y))"
Sep 24 09:47:39 LDAP slapd[583]: conn=35 op=1 SRCH attr=uid homeDirectory uid uaerPassword userPassword uid gosaMailQuota
Sep 24 09:47:39 LDAP slapd[583]: <= bdb_equality_candidates: (uid) index_param failed (18)
Sep 24 09:47:39 LDAP authdaemond: one entry returned, DN: cn=.................. ........................,ou=people,dc=textiles,dc=ru
Sep 24 09:47:39 LDAP slapd[583]: conn=35 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
Sep 24 09:47:39 LDAP authdaemond: raw ldap entry returned:
Sep 24 09:47:39 LDAP authdaemond: | uid: balakleyskiy
Sep 24 09:47:39 LDAP authdaemond: | gosaMailQuota: 0
Sep 24 09:47:39 LDAP authdaemond: | userPassword: {CRYPT}81MfPWcReFJ9I
Sep 24 09:47:39 LDAP authdaemond: | homeDirectory: /home/balakleyskiy
Sep 24 09:47:39 LDAP authdaemond: authldaplib: sysusername=<null>, sysuserid=26, sysgroupid=26, homedir=/var/spool/mail/balakleyskiy, address=balakleyskiy, f
ullname=balakleyskiy, maildir=/home/balakleyskiy, quota=0, options=<null>
Sep 24 09:47:39 LDAP authdaemond: authldaplib: clearpasswd=<null>, passwd={CRYPT}81MfPWcReFJ9I
Sep 24 09:47:39 LDAP authdaemond: rebinding with DN 'cn=.................. ........................,ou=people,dc=textiles,dc=ru' to validate password
Sep 24 09:47:39 LDAP slapd[583]: conn=36 fd=21 ACCEPT from IP=::1 56631 (IP=:: 389)
Sep 24 09:47:39 LDAP slapd[583]: conn=36 op=0 BIND dn="cn=пM-^Pп?п?п?яM-^Aп?пҐпЄяM-^@ пM-^Qп?п?п?п?п?п?п?яM-^Aп?п?п?,ou=people,dc=textiles,dc=ru" method=128
Sep 24 09:47:39 LDAP slapd[583]: conn=36 op=0 BIND dn="cn=пM-^Pп?п?п?яM-^Aп?пҐпЄяM-^@ пM-^Qп?п?п?п?п?п?п?яM-^Aп?п?п?,ou=people,dc=textiles,dc=ru" mech=SIMPLE
 ssf=0
Sep 24 09:47:39 LDAP slapd[583]: conn=36 op=0 RESULT tag=97 err=0 text=
Sep 24 09:47:39 LDAP authdaemond: authentication bind successful
Sep 24 09:47:39 LDAP imapd-ssl: Unexpected SSL connection shutdown.
maillog

Код: Выделить всё

Sep 24 09:47:36 LDAP imapd-ssl: Connection, ip=[197.197.197.222]
Sep 24 09:47:37 LDAP authdaemond: received auth request, service=imap, authtype=login
Sep 24 09:47:37 LDAP authdaemond: authldap: trying this module
Sep 24 09:47:37 LDAP authdaemond: selected ldap protocol version 3
Sep 24 09:47:37 LDAP authdaemond: binding to LDAP server as DN 'cn=Manager,dc=textiles,dc=ru', password 'gfhfpbn'
Sep 24 09:47:37 LDAP authdaemond: using search filter: (&(objectClass=gosaMailAccount)(uid=balakleyskiy))
Sep 24 09:47:37 LDAP authdaemond: one entry returned, DN: cn=.................. ........................,ou=people,dc=textiles,dc=ru
Sep 24 09:47:37 LDAP authdaemond: raw ldap entry returned:
Sep 24 09:47:37 LDAP authdaemond: | uid: balakleyskiy
Sep 24 09:47:37 LDAP authdaemond: | gosaMailQuota: 0
Sep 24 09:47:37 LDAP authdaemond: | userPassword: {CRYPT}81MfPWcReFJ9I
Sep 24 09:47:37 LDAP authdaemond: | homeDirectory: /home/balakleyskiy
Sep 24 09:47:37 LDAP authdaemond: authldaplib: sysusername=<null>, sysuserid=26, sysgroupid=26, homedir=/var/spool/mail/balakleyskiy, address=balakleyskiy, f
ullname=balakleyskiy, maildir=/home/balakleyskiy, quota=0, options=<null>
Sep 24 09:47:37 LDAP authdaemond: authldaplib: clearpasswd=<null>, passwd={CRYPT}81MfPWcReFJ9I
Sep 24 09:47:37 LDAP authdaemond: rebinding with DN 'cn=.................. ........................,ou=people,dc=textiles,dc=ru' to validate password
Sep 24 09:47:37 LDAP authdaemond: authentication bind successful
Sep 24 09:47:37 LDAP authdaemond: Authenticated: sysusername=<null>, sysuserid=26, sysgroupid=26, homedir=/var/spool/mail/balakleyskiy, address=balakleyskiy,
 fullname=balakleyskiy, maildir=/home/balakleyskiy, quota=0, options=<null>
Sep 24 09:47:37 LDAP authdaemond: Authenticated: clearpasswd=1q2w3e4r, passwd={CRYPT}81MfPWcReFJ9I
Sep 24 09:47:37 LDAP imapd-ssl: LOGIN, user=balakleyskiy, ip=[197.197.197.222], protocol=IMAP
Sep 24 09:47:39 LDAP imapd-ssl: Unexpected SSL connection shutdown.
Sep 24 09:47:39 LDAP imapd-ssl: LOGOUT, user=balakleyskiy, ip=[197.197.197.222], headers=0, body=0, rcvd=86, sent=209, time=2, starttls=1
Sep 24 09:47:39 LDAP imapd-ssl: Connection, ip=[197.197.197.222]
Sep 24 09:47:39 LDAP authdaemond: received auth request, service=imap, authtype=login
Sep 24 09:47:39 LDAP authdaemond: authldap: trying this module
Sep 24 09:47:39 LDAP authdaemond: selected ldap protocol version 3
Sep 24 09:47:39 LDAP authdaemond: binding to LDAP server as DN 'cn=Manager,dc=textiles,dc=ru', password 'gfhfpbn'
Sep 24 09:47:39 LDAP authdaemond: using search filter: (&(objectClass=gosaMailAccount)(uid=balakleyskiy))
Sep 24 09:47:39 LDAP authdaemond: one entry returned, DN: cn=.................. ........................,ou=people,dc=textiles,dc=ru
Sep 24 09:47:39 LDAP authdaemond: raw ldap entry returned:
Sep 24 09:47:39 LDAP authdaemond: | uid: balakleyskiy
Sep 24 09:47:39 LDAP authdaemond: | gosaMailQuota: 0
Sep 24 09:47:39 LDAP authdaemond: | userPassword: {CRYPT}81MfPWcReFJ9I
Sep 24 09:47:39 LDAP authdaemond: | homeDirectory: /home/balakleyskiy
Sep 24 09:47:39 LDAP authdaemond: authldaplib: sysusername=<null>, sysuserid=26, sysgroupid=26, homedir=/var/spool/mail/balakleyskiy, address=balakleyskiy, f
ullname=balakleyskiy, maildir=/home/balakleyskiy, quota=0, options=<null>
Sep 24 09:47:39 LDAP authdaemond: authldaplib: clearpasswd=<null>, passwd={CRYPT}81MfPWcReFJ9I
Sep 24 09:47:39 LDAP authdaemond: rebinding with DN 'cn=.................. ........................,ou=people,dc=textiles,dc=ru' to validate password
Sep 24 09:47:39 LDAP authdaemond: authentication bind successful
Sep 24 09:47:39 LDAP authdaemond: Authenticated: sysusername=<null>, sysuserid=26, sysgroupid=26, homedir=/var/spool/mail/balakleyskiy, address=balakleyskiy,
 fullname=balakleyskiy, maildir=/home/balakleyskiy, quota=0, options=<null>
Sep 24 09:47:39 LDAP authdaemond: Authenticated: clearpasswd=1q2w3e4r, passwd={CRYPT}81MfPWcReFJ9I
Sep 24 09:47:39 LDAP imapd-ssl: LOGIN, user=balakleyskiy, ip=[197.197.197.222], protocol=IMAP
Sep 24 09:47:39 LDAP imapd-ssl: Unexpected SSL connection shutdown.
Sep 24 09:47:39 LDAP imapd-ssl: LOGOUT, user=balakleyskiy, ip=[197.197.197.222], headers=0, body=0, rcvd=68, sent=216, time=0, starttls=1

Аватара пользователя
kapa6ac
мл. сержант
Сообщения: 146
Зарегистрирован: 2007-09-19 10:33:02

Re: Exim+Courier-imap+Ldap беда с папками пользаков.

Непрочитанное сообщение kapa6ac » 2007-09-25 8:01:05

Народ умоляю помогите.
Переход с виндов на юникса дается с трудом, а почтовик нужно к 10му октября запустить.

Аватара пользователя
Alex Keda
стреляли...
Сообщения: 35068
Зарегистрирован: 2004-10-18 14:25:19
Откуда: Made in USSR
Контактная информация:

Re: Exim+Courier-imap+Ldap беда с папками пользаков.

Непрочитанное сообщение Alex Keda » 2007-09-25 12:37:10

конфиг давай.
нету телепатов..
почему всё клещами надо тянуть?
Убей их всех! Бог потом рассортирует...

Аватара пользователя
kapa6ac
мл. сержант
Сообщения: 146
Зарегистрирован: 2007-09-19 10:33:02

Re: Exim+Courier-imap+Ldap беда с папками пользаков.

Непрочитанное сообщение kapa6ac » 2007-09-25 13:07:17

/usr/loca/etc/exim/configure

Код: Выделить всё

domainlist local_domains = textiles.ru : okteks.ru
domainlist relay_to_domains = textiles.ru : okteks.ru
hostlist   relay_from_hosts = localhost
ldap_default_servers = 197.197.197.8::389
LDAP_AUTH = user="cn=mail,ou=People,dc=textiles,dc=ru" pass="cdjqcndj"
acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = acl_check_data
exim_user = mailnull
exim_group = mail
never_users = root
host_lookup = *
rfc1413_hosts = *
rfc1413_query_timeout = 5s
timeout_frozen_after = 7d
begin acl
accept  hosts = :
  deny    message       = Restricted characters in address
          domains       = +local_domains
          local_parts   = ^[.] : ^.*[@%!/|]
  deny    message       = Restricted characters in address
          domains       = !+local_domains
          local_parts   = ^[./|] : ^.*[@%!] : ^.*/\\.\\./
  accept  local_parts   = postmaster
          domains       = +local_domains
  require verify        = sender
  accept  hosts         = +relay_from_hosts
          control       = submission
  accept  authenticated = *
          control       = submission
  require message = relay not permitted
          domains = +local_domains : +relay_domains
  require verify = recipient
  accept
acl_check_data:

  # Deny if the message contains a virus. Before enabling this check, you
  # must install a virus scanner and set the av_scanner option above.
  #
  # deny    malware    = *
  #         message    = This message contains a virus ($malware_name).

  # Add headers to a message if it is judged to be spam. Before enabling this,
  # you must install SpamAssassin. You may also need to set the spamd_address
  # option above.
  #
  # warn    spam       = nobody
  #         add_header = X-Spam_score: $spam_score\n\
  #                      X-Spam_score_int: $spam_score_int\n\
  #                      X-Spam_bar: $spam_bar\n\
  #                      X-Spam_report: $spam_report

  # Accept the message.

  accept
begin routers
dnslookup:
  driver = dnslookup
  domains = ! +local_domains
  transport = remote_smtp
  ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
  no_more
system_ali1ases:
  driver = redirect
  allow_fail
  allow_defer
  data = ${lookup ldapm{LDAP_AUTH ldap:///ou=People,dc=textiles,dc=ru?mail?sub(&(objectClass=gosaMailAccount)\
        (mail=${quote_ldap:$local_part}$\
        {quote_ldap:@}${quote_ldap:$domain}))}
ldapuser:
    driver = accept
    condition = ${if eq{}{${lookup ldapdn{LDAP_AUTH \
                ldap:///ou=People,dc=textiles,dc=ru??sub?(&(objectClass=gosaMailAccount) \
                (mail=${quote_ldap:$local_part}${quote_ldap:@}$ \
                {quote_ldap:$domain}))}}}{no}{yes}}
    transport = ldap_delivery
userforward:
  driver = redirect
  check_local_user
# local_part_suffix = +* : -*
# local_part_suffix_optional
  file = $home/.forward
# allow_filter
  no_verify
  no_expn
  check_ancestor
  file_transport = address_file
  pipe_transport = address_pipe
  reply_transport = address_reply
  condition = ${if exists{$home/.forward} {yes} {no} }

localuser:
  driver = accept
  check_local_user
# local_part_suffix = +* : -*
# local_part_suffix_optional
  transport = local_delivery
  cannot_route_message = Unknown user
begin transports


# This transport is used for delivering messages over SMTP connections.

remote_smtp:
  driver = smtp

ldap_delivery:
    driver = appendfile
    check_string = ""
    create_directory
    delivery_date_add
    directory = ${lookup ldap{LDAP_AUTH \
            ldap:///ou=People,dc=textiles,dc=ru?homeDirectory?sub? \
            (&(objectClass=gosaMailAccount) \
            mail=${quote_ldap:$local_part}${quote_ldap:@}$ \
            {quote_ldap:$domain}))}{/var/spool/mail/$value/}}
    directory_mode = 770
    envelope_to_add
    maildir_use_size_file
    group = mail
    maildir_format
    maildir_tag = ,S=$message_size
    message_prefix = ""
    message_suffix = ""
    mode = 0600
    quota =  ${lookup ldap{LDAP_AUTH \
           ldap:///ou=People,dc=textiles,dc=ru?gosaMailQuota? \
           sub?(&(objectClass=gosaMailAccount) \
           (mail=${quote_ldap:$local_part}$ \
           {quote_ldap:@}${quote_ldap:$domain}))}{$value}fail}
    quota_warn_message = "\
    To: $local_part@$domain\n\
    From: postmaster@$domain\n\
    Subject: Your maildir is going full\n\
    This message is automaticaly gnerated by your mail server.\n\
    This means, that your mailbox is 80% full. If you would \n\
    override this limit new mail would not be delivered to you!\n\n\
    Please, clean your mailbox."
    quota_warn_threshold = 80%
    return_path_add

address_pipe:
  driver = pipe
  return_output

address_file:
  driver = appendfile
  delivery_date_add
  envelope_to_add
  return_path_add

address_reply:
  driver = autoreply
begin retry
*                      *           F,2h,15m; G,16h,1h,1.5; F,4d,6h

begin rewrite

begin authenticators

auth_plain:
    driver = plaintext
    public_name = PLAIN
    server_condition = ${if ldapauth{user=${lookup ldapdn{LDAP_AUTH ldap:///ou=People,dc=textiles,dc=ru?dn?sub(uid=$2)}} pass=$3 ldap://127.0.0.1/}{yes}{no}}
server_prompts = :
server_set_id = $2

##############  Auth OutLOOK   ########
auth_login:
    driver = plaintext
    public_name = LOGIN
    server_prompts = Username:: : Password::
    server_condition = ${if ldapauth{user=${lookup ldapdn{LDAP_AUTH ldap:///ou=People,dc=textiles,dc=ru?dn?sub(uid=$2)}} pass=$3 ldap://127.0.0.1/}{yes}{no}}

# ${lookup ldapdn{LDAP_AUTH \
#                   ldap:///ou=People,dc=textiles,dc=ru??sub? \
#                   (&(objectClass=gosaMailAccount)(mail=${quote_ldap:$1}) \
#                   (clearPassword=${quote_ldap:$2}))}{yes}{no}}

server_set_id = $2

##############  Auth The Bat  ######
auth_cram_md5:
  driver = cram_md5
    public_name = CRAM-MD5
#    server_condition = ${if ldapauth{user=${lookup ldapdn{LDAP_AUTH ldap:///ou=People,dc=textiles,dc=ru?dn?sub(uid=$2)}} pass=$3 ldap://127.0.0.1/}{yes}{no}
    server_secret = ${lookup ldap{LDAP_AUTH \
                    ldap:///ou=People,dc=textiles,dc=ru?userPassword?sub? \
                        (&(accountStatus=active)(uid=${quote_ldap:$1}) \
                                )}{$value}fail}
                                  server_set_id = $1


authdaemonrc

Код: Выделить всё

authmodulelist="authldap"
authmodulelistorig="authldap"
daemons=5
authdaemonvar=/var/run/authdaemond
subsystem=mail
DEBUG_LOGIN=2
DEFAULTOPTIONS="wbnodsn=1"
LOGGEROPTS=""

Код: Выделить всё

LDAP_URI                ldap://localhost/
LDAP_PROTOCOL_VERSION   3
LDAP_BASEDN             ou=People,dc=textiles,dc=ru
LDAP_BINDDN             cn=Manager,dc=textiles,dc=ru
LDAP_BINDPW             gfhfpbn
LDAP_TIMEOUT            5
LDAP_AUTHBIND           1
LDAP_MAIL               uid
LDAP_FILTER           (objectClass=gosaMailAccount)
LDAP_GLOB_UID           mailnull
LDAP_GLOB_GID           mailnull
LDAP_HOMEDIR            uid
LDAP_MAILROOT        /home
LDAP_MAILDIR            homeDirectory
LDAP_DEFAULTDELIVERY    defaultDelivery
LDAP_MAILDIRQUOTA       gosaMailQuota
LDAP_FULLNAME           uid
#LDAP_CLEARPW            userPassword
LDAP_CRYPTPW            userPassword
LDAP_DEREF              never
LDAP_TLS                0
LDAP_EMAILMAP_BASEDN    ou=People,dc=textiles,dc=ru

Аватара пользователя
Alex Keda
стреляли...
Сообщения: 35068
Зарегистрирован: 2004-10-18 14:25:19
Откуда: Made in USSR
Контактная информация:

Re: Exim+Courier-imap+Ldap беда с папками пользаков.

Непрочитанное сообщение Alex Keda » 2007-09-25 17:45:41

Код: Выделить всё

  data = ${lookup ldapm{LDAP_AUTH ldap:///ou=People,dc=textiles,dc=ru?mail?sub(&(objectClass=gosaMailAccount)\
        (mail=${quote_ldap:$local_part}$\
        {quote_ldap:@}${quote_ldap:$domain}))}
для начала убери все лишние пробелы в запросах - они разрешены в LDAP и поэтому идут как часть запроса.
я не видел имён почтовых ящиков с пробелами
и повторяющиеся куски кода вынеси в макросы.
Убей их всех! Бог потом рассортирует...

Аватара пользователя
kapa6ac
мл. сержант
Сообщения: 146
Зарегистрирован: 2007-09-19 10:33:02

Re: Exim+Courier-imap+Ldap беда с папками пользаков.

Непрочитанное сообщение kapa6ac » 2007-09-26 10:10:17

в конфиге я со скобками напортачил ((
но один фиг папка пользака не создается автоматом. Теперь новая песня в логах

Код: Выделить всё

imapd-ssl: Error reading ACLs for INBOX.bash_history: No such file or directory
сиё чудо как понимать. Гугль по этому вопросу молчит.

Аватара пользователя
Alex Keda
стреляли...
Сообщения: 35068
Зарегистрирован: 2004-10-18 14:25:19
Откуда: Made in USSR
Контактная информация:

Re: Exim+Courier-imap+Ldap беда с папками пользаков.

Непрочитанное сообщение Alex Keda » 2007-09-26 10:26:37

вот это не знаю.
я вообще уже второй год довекот юзаю, а цирроз-имап - в топку
Убей их всех! Бог потом рассортирует...

Аватара пользователя
kapa6ac
мл. сержант
Сообщения: 146
Зарегистрирован: 2007-09-19 10:33:02

Re: Exim+Courier-imap+Ldap беда с папками пользаков.

Непрочитанное сообщение kapa6ac » 2007-09-27 14:57:55

Тему в топку. Я сам пароноидальный кретин - навертел с правами вот и мучался.
Всем кто пытался помочь огромное спасибо :P