[Exim] A wish for $host_match

Top Page
Delete this message
Reply to this message
Author: Christian Balzer
Date:  
To: exim-users
Subject: [Exim] A wish for $host_match
Hello... (Philip ;),

With Exim 4 there seems to be no way to get the match result into a
variable if comparing against a hostlist (as opposed to $domain_data
with domainlists).

An example speaks more than a 1000 words, from an
"exim -v -bh 66.157.69.251" session:

---
check hosts = /etc/exim/rejecthosts
host in "/etc/exim/rejecthosts"? yes (matched "^adsl-.*\.bellsouth.net$" in
/etc/exim/rejecthosts)
---
I'd love to have the result of that string after "matched" in the variable
from the subject (or $1 to keep things simple) during ACL time, so I
could return a message like:

---
550-Your host is locally blacklisted (matches "^adsl-.*\.bellsouth.net$"),
550 please contact postmaster@???
---

Regards,

Christian Balzer
--
Christian Balzer        Network Engineer        Engineering
chibi@???       Global OnLine Japan/Exodus Communications K.K.
http://www.gol.com/