[KLUG Members] Postfix and ldap

John Holland john at zoner.org
Thu Mar 2 10:56:26 EST 2006


Because of both that issue and the performance issue of querying the
ldap server in real-time, I run the ldap queries from a python script
which builds a valid_user file. It is used as a recipient restriction:

smtpd_recipient_restrictions =
    reject_unauth_pipelining
    reject_non_fqdn_recipient
    reject_unknown_recipient_domain
    permit_mynetworks
    reject_unauth_destination
    check_recipient_access regexp:/usr/local/etc/postfix/regexp_access
    check_recipient_access hash:/usr/local/etc/postfix/invalid_user
    check_recipient_access hash:/usr/local/etc/postfix/valid_user
    reject


agencies_ad1 at sancharnet.in wrote:
> I am currently running postfix-2.0.16.
>
> I have configured postfix to query the ldap server to verify email addresses as
> follows:
>
> ldap-usermap_server_host=ws13nt.willscot.com, ws3nt.willscot.com
> ldap-usermap_search_base=dc=willscot, dc=com
> ldap-usermap_result_attribute=mail,proxyaddresses, othermailbox
> ldap-usermap_bind_dn=cn=Service Account,ou=Domain Admins,dc=willscot,dc=com
> ldap-usermap_version=3
> ldap-usermap_query_filter=proxyaddresses=smtp:%s
>
> #local_recipient_maps = hash:/etc/aliases,ldap:/etc/postfix/ldap-aliases.cf
> local_recipient_maps = hash:/etc/postfix/aliases,ldap:ldap-usermap
> unknown_local_recipient_reject_code = 450
>
>
> The problem is if the ldap servers are unavailable postfix rejects all email
> without queuing for retry. Is it possible to configure postfix to defer
> delivery of any email when the ldap servers are offline.
>
> Thanks
>
> Regards,
>
> Komal
>
> ----------------------------------------------------------------
> This message was sent using NWebmail, BSNL's Webmail Program
>
> _______________________________________________
> Members mailing list
> Members at kalamazoolinux.org
> 
>
>
>   




More information about the Members mailing list