Is there a way to use a file containing a list of strings in a filter?
Something similar to "grep -f FILE"?  I would like to avoid the need to
rebuild a (string1|string2|...|stringn) construct in the failregex each time
the list is updated.  My list currently has 80 entries; I expect it to
continue to grow over time.

My use case is that I would like to match on exim4 deliveries to
":blackhole:".  Unfortunately the delivery lines in the exim4 log file that
show delivery to ":blackhole:" do not include the source IP address.  It is
straightforward for me to extract the list of usernames that are forwarded
to ":blackhole:" from /etc/aliases, which brings me back to the leading
paragraph.

I would, of course, be pleased to receive suggestions of alternative
approaches that would solve my problem.

Thanks,

K





_______________________________________________
Fail2ban-users mailing list
Fail2ban-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fail2ban-users

Reply via email to