Filtering posts based on Path: contents.
rra at stanford.edu
Wed May 19 01:01:11 UTC 2010
Grant Taylor <gtaylor at riverviewtech.net> writes:
> How do I configure INN to reject messages that contain a host in the
> Path: header?
The site named "ME" is special. There must be exactly one such entry,
and it should be the first entry in the file. If the "ME" entry has an
exclusion sub-field, incoming articles are rejected completely if any
of the names specified in that exclusion sub-field appear in their
Path: headers. [...]
An "exclusion subfield" is the part following a slash after the site name
in the newsfeeds syntax:
The /exclude,exclude part is the exclusion subfield.
So, in short, add that Path entry after the / in the ME entry in your
newsfeeds file (and then ctlinnd reload newsfeeds).
> Note that there are multiple systems in the Path: header from the problem
> ""site so I'd like to simply filter based on <domain>.<tld> where the
> Path: header will contain <machine>.<domain>.<tld>.
...I'm afraid there's no support for this. INN doesn't support wildcard
matching on Path headers. For this, you'd probably be best off using an
Russ Allbery (rra at stanford.edu) <http://www.eyrie.org/~eagle/>
Please send questions to the list rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
More information about the inn-workers