0

How can I change exim4.conf for CHECK_RCPT_IP_DNSBLS

Jester 10 years ago updated 10 years ago 2
I'm trying to set up exim4 to deny instead of warn if a sender_host_address is listed in dns blacklist:
If this isn't possible through AjentiV's user interface, where does ajenti store the script that generates the config?

.ifdef CHECK_RCPT_IP_DNSBLS
  warn
    dnslists = CHECK_RCPT_IP_DNSBLS
    add_header = X-Warning: $sender_host_address is listed at $dnslist_domain ($dnslist_value: $dnslist_text)
    log_message = $sender_host_address is listed at $dnslist_domain ($dnslist_value: $dnslist_text)
  .endif


  .ifdef CHECK_RCPT_DOMAIN_DNSBLS
  warn
    !senders = ${if exists{CONFDIR/local_domain_dnsbl_whitelist}\
                    {CONFDIR/local_domain_dnsbl_whitelist}\
                    {}}
    dnslists = CHECK_RCPT_DOMAIN_DNSBLS
    add_header = X-Warning: $sender_address_domain is listed at $dnslist_domain ($dnslist_value: $dnslist_text)
    log_message = $sender_address_domain is listed at $dnslist_domain ($dnslist_value: $dnslist_text)
  .endif


  accept


For those who care, I was able to find out where ajenti-v-mail stores the template where they build the exim4.conf file from.

In my debian installation it was found in this file:
/var/lib/ajenti/plugins/vh-mail/templates.py
Make sure you restart Ajenti service after editing the templates.py!