Knowledgebase

Find answer in our article collection



Portal Home > Knowledgebase > cPanel Questions > How to DNS Blacklist with Exim?


How to DNS Blacklist with Exim?




Edit the file /etc/exim4/conf.d/main/02_exim4-config_options and insert the following after the very last line.

# Added TODAYS-DATE by YOURNAME
# Spamhaus RBL zen.spamhaus.org CHECK_RCPT_IP_DNSBLS = zen.spamhaus.org

Edit the file /etc/exim4/conf.d/acl/30_exim4-config_check_rcpt. Search for CHECK_RCPT_IP_DNSBLS acl and change the word "warn" to "deny" as shown below:

# Check against classic DNS "black" lists (DNSBLs) which list
# sender IP addresses
.ifdef CHECK_RCPT_IP_DNSBLS
deny
message = 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)
dnslists = CHECK_RCPT_IP_DNSBLS
.endif

Restart Exim so that our configuration changes take effect:

/etc/init.d/exim4 restart





Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
How do I mount a ISO images without burning to CD/DVD? (Views: 4258)
How do I reset my MySQL root password? (Views: 4107)
How do I install csf firewall ? (Views: 4232)
Can you manage my server ? (Views: 4268)
Can i use my server for selling webhosting ? (Views: 4298)

Powered by WHMCompleteSolution

QuatroVPS working with this vendors

Socialize

  • Facebook
  • Twitter
  • Linkedin
  • Google+
  • Youtube

Virtual servers for everyone