[exim] greylistd with xim

Top Page
Delete this message
Reply to this message
Author: De Leeuw Guy
Date:  
To: exim-users
Subject: [exim] greylistd with xim
Hello

I try to link our ldap database, that content our contacts mail address,
with the greylist process for not greylist if the sender address are
available on this database.

I modify my configuration file :
/etc/exim4/conf.d/acl/30_exim4-config_check_rcpt
    message        = $sender_host_address is not yet authorized to deliver \
                     mail from <$sender_address> to <$local_part@$domain>. \
                     Please try later.
    log_message    = greylisted.
    !senders       = :
    !hosts         = : +relay_from_hosts : \
                     ${if exists {/etc/greylistd/whitelist-hosts}\
                                 {/etc/greylistd/whitelist-hosts}{}} : \
                     ${if exists {/var/lib/greylistd/whitelist-hosts}\
                                 {/var/lib/greylistd/whitelist-hosts}{}}
    !authenticated = *
    !acl           = acl_whitelist_local_deny
    domains        = +local_domains : +relay_to_domains
    verify         = recipient/callout=20s,use_sender,defer_ok
    condition      = ${readsocket{/var/run/greylistd/socket}\
                                 {--grey \
                                  $sender_host_address \
                                  $sender_address \
                                  $local_part@$domain}\
                                 {5s}{}{false}}



and replace the line !senders = : by
!senders = :\
                     ${lookup ldap {
ldap://ldap.eurofer.be/br=External,o=Eurofer,c=be?mail?one?(%26(mail=${sender_address}))
} }


It is sufficiant ?

Thanks in advance

Guy