>main.cf в студию ;) smtpd_reject_unlisted_sender = yes
disable_vrfy_command = yes
smtpd_helo_required = yes
smtp_always_send_ehlo = yes
smtpd_hard_error_limit = 8
smtpd_sasl_auth_enable = yes
smtpd_sasl_application_name = smtpd
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
ldapmap_search_base = dc=my, dc=domain
ldapmap_server_host = 192.168.0.100
ldapmap_server_port = 3268
ldap_timeout = 60
ldapmap_query_filter = (&(proxyAddresses=smtp:%s)(|(objectClass=user)(objectClass=group)(objectClass=contact)))
ldapmap_result_filter = %s
ldapmap_result_attribute = canonicalName
ldapmap_special_result_attribute =
ldapmap_scope = sub
ldapmap_bind = yes
ldapmap_bind_dn = user@my.domain
ldapmap_bind_pw = 111111
ldapmap_cache = no
ldapmap_dereference = 0
ldapmap_domain = domain.ru
ldapmap_debuglevel = 0
virtual_mailbox_maps = ldap:ldapmap
virtual_transport = hash:/usr/local/etc/postfix/virtual_transport
transport_maps = hash:/usr/local/etc/postfix/virtual_transport
virtual_mailbox_domains = domain.ru
virtual_mailbox_base = /var/spool/mail
message_size_limit = 10485760
virtual_gid_maps = static:1981
virtual_uid_maps = static:1981
virtual_minimum_gid = 1000
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
content_filter = smtp-amavis:[127.0.0.1]:10024
Я обрезал стандартную часть main.cf
Вот еще smtpd.conf
pwcheck_method: saslauthd
mech_list: plain login
И еще saslauthd.conf
ldap_servers: ldap://192.168.0.100
ldap_bind_dn: CN=User, CN=Users, DC=my, DC=domain
ldap_bind_pw: 111111
ldap_version: 3
ldap_search_base: dc=my, dc=domain
ldap_filter: (sAMAccountName=%u)