Exim custom filter

izghitu

Verified User
Joined
Apr 15, 2007
Messages
10
Hi,

I am trying to add a custom Exim ACL that would check incoming messages and block them based on the FROM "Friendly Name" but I do not know where exactly I can add the custom ACL so it works and takes effect.

The ACL i want to add is this:
acl_check_data:
# Blacklist if friendly name matches any patterns.
drop
condition = ${if match{$h_from:}lsearch{/etc/virtual/blacklist_from}}
message = Blacklisted.
log_message = Blacklisted nasty.

I tried to add it to /etc/exim.acl_check_message.pre.conf but the result was that absolutely all messages were blocked.

Please advise
 
Hi,

When I put that there I get a bounce:
550 Administrative prohibition

And the exim mainlog says:
incomplete transaction (QUIT)

Is there perhaps something wrong with my ACL? Please advise
 
Back
Top