Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a Ubuntu Server with Exim4 MTA. Everything is running OK. I must integrate Spam Lists, in Exim4. How can I integrate Spam Lists with Exim4?

One of the Spam List i want to integrate is from Spamhaus.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Ok, I just figured out, how it can work.

Edit the file:

vim /etc/exim4/conf.d/main/02_exim4-config_options

Insert the following in bottom of the file:

# Spamhaus RBL zen.spamhaus.org
CHECK_RCPT_IP_DNSBLS = zen.spamhaus.org

Edit the file:

vim  /etc/exim4/conf.d/acl/30_exim4-config_check_rcpt

Search for:

CHECK_RCPT_IP_DNSBLS

Then change, "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

We must restart Exim:

/etc/init.d/exim4 restart

To test this configuration and see if the PBL blocking is working by sending an email (any email) to: nelson-pbl-test@crynwr.com

The system will answer, to tell if your server is correctly blocking PBL-listed IP addresses or not.

share|improve this answer
    
You can accept your own answer to show that it is the solution to future viewers of this question. –  hexafraction Jun 7 '12 at 23:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.