Hello Friends,
I am a new bee to exim and need some help from the experts. Following is my
Exim conf, I want to add RBL checks at SMTP Level. Please let me know what
lines should be added where?
Thanks in Advance.
######################################################################
# ACL CONFIGURATION #
# Specifies access control lists for incoming SMTP mail #
######################################################################
begin acl
acl_check_conn:
accept hosts = * : 127.0.0.1
acl_check_rcpt:
accept hosts = :
deny domains = +local_domains
local_parts = ^[.] : ^.*[@%!/|]
deny domains = !+local_domains
local_parts = ^[./|] : ^.*[@%!] : ^.*/\\.\\./
deny hosts = HOSTBLACKLIST
message = blacklisted host: $sender_host_address
deny senders = SENDERBLACKLIST
message = blacklisted sender: $sender_address
require verify = sender
deny domains = +domains_to_callout
!verify = recipient/callout=10s,defer_ok
defer
message = $sender_host_address is not yet authorized to
deliver \
mail from <$sender_address> to <
$local_part@$domain>. \
Please try later.
log_message = greylisted.
!spf = pass
!senders = :
!hosts = : +relay_from_hosts : \
${if exists
{/usr/mailserver/etc/greylistd/whitelist-hosts}\
{/usr/mailserver/etc/greylistd/whitelist-hosts}{}} : \
${if exists
{/var/mailserver/spool/greylistd/whitelist-hosts}\
{/var/mailserver/spool/greylistd/whitelist-hosts}{}}
domains = +domains_to_greylist
!sender_domains = +domains_to_avoid_greylist
condition =
${readsocket{/var/mailserver/run/greylistd/socket}\
{--grey \
$sender_host_address \
$sender_address \
$local_part@$domain}\<$local_part@$domain%7D\>
{5s}{}{false}}
accept domains = +relay_to_domains
endpass
verify = recipient
accept hosts = +relay_from_hosts
accept authenticated = *
deny message = relay not permitted