Content-type: text/html Manpage of dhf-test

dhf-test

Section: User Manual (1)
Updated: 15 SEP 2007
Index Return to Main Contents
 

NAME

dhf-test - Test module for dyn-host-filter  

SYNOPSIS

dhf-test [ -a | -d | -l ] [ -f < config-file > ] [ -t < entry > ] | -h | -v ]  

DESCRIPTION

dhf-test is a stand-alone application used to test the functionality of dyn-host-filter. It parses the configuration file (usually /etc/dhf.conf ) 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".  

OPTIONS

-a, --list-all
Lists default actions, reply (SMTP) codes and rules (same as -d -l ).
-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 config-file instead of the default /etc/dhf.conf
-t entry, --test
Runs a test entry through the rules. The result is then displayed through standard output (stdout). A "normal" result will consist of the entry itself, the action that will be performed on it (pass/block) and the reply (SMTP) code (should the entry be blocked).
-h, --help
Displays a short help-message.
-v, --version
Displays the version of dhf-test.
 

FILES

/etc/dhf.conf
The default configuration file. See dhf.conf(5) for further details.
 

SEE ALSO

dyn-host-filter(1), dhf.conf(5)  

COPYRIGHT

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  

BUGS

None so far.  

AUTHORS

Simeon Simeonov


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
FILES
SEE ALSO
COPYRIGHT
BUGS
AUTHORS

This document was created by man2html, using the manual pages.
Time: 17:40:49 GMT, September 15, 2007