[exim] Blackhole messages from pre-defined domains

Inizio della pagina
Delete this message
Reply to this message
Autore: J&T Group
Data:  
To: Exim-users
Oggetto: [exim] Blackhole messages from pre-defined domains
Hello everyone,

I was hoping someone might be able to help me with this one. I have followed this guide on setting up a list of blocked domains on our WHM system: https://www.hostingmatters.co.uk/support/help-guides/86-server-management <https://www.hostingmatters.co.uk/support/help-guides/86-server-management>

Ideally I would like to blackhole the messages rather than send a reply stating that the sender’s address is blocked. To do this, I changed the code from:
# Inserted to block domains access
# Local from blacklist: /etc/eximblacklist
reject_domains:
driver = redirect
# RBL Blacklist incoming hosts
domains = +eximblacklist
allow_fail
data = :fail: Connection rejected: $domain is manually blacklisted.

To this code:

# Inserted to block domains access
# Local from blacklist: /etc/eximblacklist
reject_domains:
driver = redirect
# RBL Blacklist incoming hosts
domains = +eximblacklist
allow_fail
data = :blackhole:

However, when I did this, the rules stopped working and messages from blocked domains were allowed through.

Can someone help me modify the code so that instead of a sender receiving a return message, their messages are just blackholed instead?

Kind regards


James