The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  ВХОД  слежка  RSS
"Postfix + ldap (Active directory)"
Вариант для распечатки  
Пред. тема | След. тема 
Форумы OpenNET: Виртуальная конференция (Public)
Изначальное сообщение [Проследить за развитием треда]

"Postfix + ldap (Active directory)"  
Сообщение от MoHaX email(??) on 05-Сен-06, 14:43 
Читал много документации, но не работает, видимо туплю. Вообщем ситуация следующая: надо проверять существование пользователей в exchange для домена domain.ru Внутренний домен domain.local
Сделал следующее:
1. Поставил из портов postfix (с галочкой openldap)
2. В main.cf добавил следующее:
virtual_mailbox_maps=ldap:/usr/local/etc/postfix/ldap.cf
virtuall_mailbox_domains = domen.ru
virtual_transport = hash:/usr/local/etc/postfix/transport

3. Содержимое /usr/local/etc/postfix/ldap.cf
search_base = DC=domen,DC=local
server_host = 192.168.1.250
server_port = 3268
query_filter = proxyAddresses=smtp:%s
result_format = %s
result_attribute = canonicalName
special_result_attribute =
scope = sub
bind = yes
binddn = user@domen.main
bindpw = qwerty
domain = domen.main
debuglevel = 1

4. Содежимое /usr/local/etc/postfix/transport
domain.ru   smtp:[192.168.1.252] # Тут exchange крутиться

Сделал postmap /usr/local/etc/postfix/ldap.cf
Сделал postmap /usr/local/etc/postfix/transport
postfix reload

При отправке почты postfix говорит, что нет такого адреса, при чем судя по логам AD postfix к ней и не обращается. Хотя ldapsearch -h 192.168.1.250 -p 3268 -s sub -b dc=domen,dc=main -D user@domen.main -w qwerty -d0 proxyAddresses=smtp:user@domen.ru
все находит.
В чём я туплю?

Правка | Высказать мнение | Ответить | Cообщить модератору | Наверх

 Оглавление

Сообщения по теме [Сортировка по времени, UBB]


1. "Postfix + ldap (Active directory)"  
Сообщение от jonatan (ok) on 05-Сен-06, 15:19 
>3. Содержимое /usr/local/etc/postfix/ldap.cf
>search_base = DC=domen,DC=local
>server_host = 192.168.1.250
>server_port = 3268
>query_filter = proxyAddresses=smtp:%s
лучше
query_filter = (&(proxyAddresses=smtp:%s)(|(objectClass=user)(objectClass=group)(objectClass=contact)(objectClass=publicFolder)))
>result_format = %s
>result_attribute = canonicalName
>special_result_attribute =
>scope = sub
>bind = yes
>binddn = user@domen.main
>bindpw = qwerty
>domain = domen.main
domain = domen.ru
>debuglevel = 1

>Сделал postmap /usr/local/etc/postfix/ldap.cf
>Сделал postmap /usr/local/etc/postfix/transport
Для ldap postmap делать не нужно

Правка | Высказать мнение | Ответить | Cообщить модератору | Наверх

2. "Postfix + ldap (Active directory)"  
Сообщение от MoHaX email(??) on 07-Сен-06, 14:01 
Чего-то так тоже не хотит, вот логи:
-----
Sep  7 17:50:52 bsdproxy sendmail[980]: k879oqdp000980: from=stalker, size=492, class=0, nrcpts=1, msgid=<200609070950.k879oqdp000980@bsdproxy.domain.local >, relay=root@localhost
Sep  7 17:50:52 bsdproxy postfix/smtpd[981]: connect from localhost.domain.local [127.0.0.1]
Sep  7 17:50:52 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_create
Sep  7 17:50:52 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_url_parse_ext(ldap://192.168.1.250:3268)
Sep  7 17:50:52 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_sasl_bind
Sep  7 17:50:52 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_send_initial_request
Sep  7 17:50:52 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_new_connection 1 1 0
Sep  7 17:50:52 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_int_open_connection
Sep  7 17:50:52 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_connect_to_host: TCP 192.168.1.250:3268
Sep  7 17:50:52 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_new_socket: 13
Sep  7 17:50:52 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_prepare_socket: 13
Sep  7 17:50:52 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_connect_to_host: Trying 192.168.1.250:3268
Sep  7 17:50:52 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_connect_timeout: fd: 13 tm: 10 async: 0
Sep  7 17:50:52 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_ndelay_on: 13
Sep  7 17:50:52 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_is_sock_ready: 13
Sep  7 17:50:52 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_ndelay_off: 13
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_open_defconn: successful
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_send_server_request
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ber_scanf fmt ({it) ber:
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ber_scanf fmt ({i) ber:
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ber_flush: 14 bytes to sd 13
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_result ld 0x8092a00 msgid 1
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_chkResponseList ld 0x8092a00 msgid 1 all 1
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_chkResponseList returns ld 0x8092a00 NULL
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: wait4msg ld 0x8092a00 msgid 1 (timeout 10000000 usec)
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: wait4msg continue ld 0x8092a00 msgid 1 all 1
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_chkResponseList ld 0x8092a00 msgid 1 all 1
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_chkResponseList returns ld 0x8092a00 NULL
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_int_select
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: read1msg: ld 0x8092a00 msgid 1 all 1
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ber_get_next
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ber_get_next: tag 0x30 len 16 contents:
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: read1msg: ld 0x8092a00 msgid 1 message type bind
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: read1msg: ld 0x8092a00 0 new referrals
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: read1msg:  mark request completed, ld 0x8092a00 msgid 1
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: request done: ld 0x8092a00 msgid 1
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: res_errno: 0, res_error: <>, res_matched: <>
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_free_request (origid 1, msgid 1)
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_free_connection 0 1
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_free_connection: refcnt 1
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_parse_sasl_bind_result
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ber_scanf fmt ({eaa) ber:
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_msgfree
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_search_ext
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: put_filter: "(&(proxyAddresses=smtp:user@domain.ru)(|(objectClass=user)(objectClass=group)(objectClass=contact)(objectClass=publicFolder)))"
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: put_filter: AND
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: put_filter_list "(proxyAddresses=smtp:user@domain.ru)(|(objectClass=user)(objectClass=group)(objectClass=contact)(objectClass=publicFolder))"
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: put_filter: "(proxyAddresses=smtp:user@domain.ru)"
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: put_filter: simple
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: put_simple_filter: "proxyAddresses=smtp:user@domain.ru"
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: put_filter: "(|(objectClass=user)(objectClass=group)(objectClass=contact)(objectClass=publicFolder))"
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: put_filter: OR
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: put_filter_list "(objectClass=user)(objectClass=group)(objectClass=contact)(objectClass=publicFolder)"
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: put_filter: "(objectClass=user)"
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: put_filter: simple
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: put_simple_filter: "objectClass=user"
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: put_filter: "(objectClass=group)"
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: put_filter: simple
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: put_simple_filter: "objectClass=group"
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: put_filter: "(objectClass=contact)"
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: put_filter: simple
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: put_simple_filter: "objectClass=contact"
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: put_filter: "(objectClass=publicFolder)"
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: put_filter: simple
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: put_simple_filter: "objectClass=publicFolder"
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_send_initial_request
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_send_server_request
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ber_scanf fmt ({it) ber:
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ber_scanf fmt ({) ber:
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ber_flush: 211 bytes to sd 13
Sep  7 17:50:53 bsdproxy sendmail[980]: k879oqdp000980: to=user@domain.ru, ctladdr=stalker (1001/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30492, relay=[127.0.0.1] [127.0.0.1], dsn=4.3.0, stat=Deferred: 451 4.3.0 <user@domain.ru>: Temporary lookup failure
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_result ld 0x8092a00 msgid 2
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_chkResponseList ld 0x8092a00 msgid 2 all 1
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_chkResponseList returns ld 0x8092a00 NULL
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: wait4msg ld 0x8092a00 msgid 2 (timeout 10000000 usec)
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: wait4msg continue ld 0x8092a00 msgid 2 all 1
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_chkResponseList ld 0x8092a00 msgid 2 all 1
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_chkResponseList returns ld 0x8092a00 NULL
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_int_select
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: read1msg: ld 0x8092a00 msgid 2 all 1
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ber_get_next
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ber_get_next: tag 0x30 len 167 contents:
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: read1msg: ld 0x8092a00 msgid 2 message type search-result
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: read1msg: ld 0x8092a00 0 new referrals
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: read1msg:  mark request completed, ld 0x8092a00 msgid 2
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: request done: ld 0x8092a00 msgid 2
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: res_errno: 0, res_error: <>, res_matched: <>
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_free_request (origid 2, msgid 2)
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_free_connection 0 1
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_free_connection: refcnt 1
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_parse_result
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ber_scanf fmt ({iaa) ber:
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ber_scanf fmt (}) ber:
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_err2string
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: warning: dict_ldap_lookup: Search error 1: Operations error
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_free_connection 1 1
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_send_unbind
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ber_flush: 7 bytes to sd 13
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_free_connection: actually freed
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: dict_ldap_debug: ldap_msgfree
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: NOQUEUE: reject: RCPT from localhost.domain.local[127.0.0.1]: 451 4.3.0 <user@domain.ru>: Temporary lookup failure; from=<stalker@bsdproxy.domain.local> to=<user@domain.ru> proto=ESMTP helo=<bsdproxy.domain.local>
Sep  7 17:50:53 bsdproxy postfix/cleanup[984]: 0706A6D9C40: message-id=<20060907095053.0706A6D9C40@newbsd.domain.local>
Sep  7 17:50:53 bsdproxy postfix/qmgr[950]: 0706A6D9C40: from=<double-bounce@newbsd.vankor>, size=963, nrcpt=1 (queue active)
Sep  7 17:50:53 bsdproxy postfix/smtpd[981]: disconnect from localhost.vankor.rn.ru[127.0.0.1]
Sep  7 17:50:53 bsdproxy postfix/local[985]: 0706A6D9C40: to=<root@newbsd.domain.local>, orig_to=<postmaster>, relay=local, delay=0.03, delays=0.02/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Sep  7 17:50:53 bsdproxy postfix/qmgr[950]: 0706A6D9C40: removed
----


Правка | Высказать мнение | Ответить | Cообщить модератору | Наверх

Архив | Удалить

Индекс форумов | Темы | Пред. тема | След. тема
Оцените тред (1=ужас, 5=супер)? [ 1 | 2 | 3 | 4 | 5 ] [Рекомендовать для помещения в FAQ]




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2025 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру