On 09.10.2008 14:56, Павел Марченко wrote:

еще вопрос попутно пожно ли через самбу вытянуть из AD имена и фамилии юзеров

Вот некая подсказка, как тянуть не через Самбу, а через LDAP:

-------- Original Message --------
Subject: Re: Postfix relay to Exchange server
Date: Tue, 24 Jun 2008 23:07:02 -0400
From: Victor Duchovni <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
References: <[EMAIL PROTECTED]>

On Tue, Jun 24, 2008 at 11:43:37PM -0300, Alejandro Facultad wrote:

> Does it work or do I have to also add:
>
> relay_recipient_maps = hash:/etc/postfix/relay_recipients
>

main.cf
        parent_domain_matches_subdomains = smtpd_access_maps
        # Domain only, not sub-domains.
        relay_domains = example.com
        relay_recipient_maps = ldap:/etc/postfix/ad.cf

ad.cf:
        # Standard for querying Active Directory.
        version = 3
        query_filter = proxyAddresses=smtp:%s
        result_attribute = mail
        # Adjust these to match your site:
        domain = example.com
        server_host = ad1.example.com ad2.example.com
        bind_dn = query_user
        bind_pw = query_password
        search_base = dc=example, dc=com

If the query load is too high from dictionary attacks, deploy a dedicated
replica server for Postfix to query.

--
        Viktor.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Ответить