Dear folks,

I have a Postfix mail server and I want to perform SMTP authentication
mail client with user/pass from a LDAP server, over TLS.

In Postfix's main.cf I have this:

ldapvirtualmap_server_host = 192.168.0.9
ldapvirtualmap_server_port = 389
ldapvirtualmap_bind = no
ldapvirtualmap_search_base = ou=people,dc=alejandro,dc=com,dc=ar
ldapvirtualmap_query_filter =
(&(mail=%s)(!(quota=-1))(objectClass=CourierMailAccount))
ldapvirtualmap_result_attribute = mailbox

smtp_tls_security_level = may
smtpd_tls_security_level = may
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/courier/smtpd.cert
smtpd_tls_key_file = /etc/courier/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

What are the SMTP AUTH lines in order to perform the SMTP authentication
against LDAP, in order to authenticate people when they want to send
mails ???

Special thanks.

Alejandro

Reply via email to