Manpage of dhf-test
Section: User Manual (1)
Updated: 15 SEP 2007
Return to Main Contents
dhf-test - Test module for dyn-host-filter
dhf-test [ -a | -d | -l ] [ -f <
> ] [ -t <
> ] | -h | -v ]
is a stand-alone application used to test the functionality of dyn-host-filter.
It parses the configuration file (usually
) and loads all rules, default actions and reply (SMTP) codes in the same way dyn-host-filter does.
dhf-test can then be used to compare a user-specified entry against rules or simply display them along with the default actions and reply codes.
This enables the user to test certain rules (for both syntax and efficiency) before letting dyn-host-filter use them "for real".
- -a, --list-all
Lists default actions, reply (SMTP) codes and rules (same as
- -d, --list-defaults
Lists the default actions and reply (SMTP) codes loaded from the configuration file.
- -l, --list
Lists all the rules loaded from the configuration file. The output will have the following format: action -> regexp
- -f config-file, --file
Use the alternate
instead of the default
- -t entry, --test
Runs a test
through the rules. The result is then displayed through standard output (stdout).
A "normal" result will consist of the
itself, the action that will be performed on it
(pass/block) and the reply (SMTP) code (should the
- -h, --help
Displays a short help-message.
- -v, --version
Displays the version of
The default configuration file. See
for further details.
dyn-host-filter Copyright (C) 2006, 2007 Simeon Simeonov
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
None so far.
- SEE ALSO
This document was created by
using the manual pages.
Time: 17:40:49 GMT, September 15, 2007