|
Running Joe's j-chkmail |
This script has the usual behavior of scripts placed inside this directory. So it has answers to the following options :
/etc/init.d/jchkmail start - start j-chkmail
/etc/init.d/jchkmail stop - stop j-chkmail
/etc/init.d/jchkmail restart - stop and start j-chkmail
/etc/init.d/jchkmail reload - reload j-chkmail configuration files
/etc/init.d/jchkmail dumpstats - dump internal counters
/etc/init.d/jchkmail clearstats - reset internal counters
restart, reload, dumpstats and clearstats are
options added to help sending signals to j-chkmail daemon.
In fact, there is one real "configuration file" (j-chkmail.cf), where you'll define global filter behavior enable filtering options, and other "data files" where you'll define data needed by some options.
Complete description of configuration options are found here.
Syntax :
# KIND NETWORK NETMASK
# Everything after a "#" is considered as comments
LOCAL 127.0.0.1 255.255.255.255
#
DOMAIN 199.199.199.0 255.255.255.0
LOCAL 192.168.0.0 255.255.0.0
FRIEND 212.198.2.0 255.255.255.0
You shall note the first line defining the mail server itself.
# Comments
<XFILE>
Replacement XFILE Message
</XFILE>
<POLICY>
Replacement POLICY Message (User defined external scanner)
</POLICY>
<VIRUS>
Replacement VIRUS Message
</VIRUS>
The following variables may be inserted in the replacement message.
They will be replaced by their values.
martins@calloway:~> /usr/sbin/j-chkmail -h
Usage : j-chkmail options
Joe's j-chkmail v1.3
Compiled at Sep 30 2002 12:15:42
-p : socket
inet:2000@localhost
local:/var/sock
-i : 2000 (AF_INET)
-u : /var/sock (AF_UNIX)
-d : inet domain
-h : help
-c : configuration file
-l : log level
-v : version / runtime configuration
-vv : version / compile time configuration
-t tablename, where tablename choosen between :
host_access | user_access | users | networks | classw | regex
Joe's j-chkmail v1.3 - Copyright Ecole des Mines de Paris - (C) 2002
martins@calloway:~>
martins@calloway:~ /usr/bin/j-printstats -h
Usage : j-printstats options
j-printstats -a | -p | -g
-p : print running process j-chkmail counters
-g : print j-chkmail counters from last reset
-a : print both counters
j-printstats -t[td]
-t : throttle data (summary)
-tt : throttle data (detail)
-d : resolve IP addresses
j-printstats -r[rdc]
-r : dns resolve data (summary)
-rr : dns resolve data (detail)
-d : resolve IP addresses
-c : data presented in cumulative mode (default : histogram)
Joe's j-chkmail v1.3 - Copyright Ecole des Mines de Paris - (C) 2002
Compiled at Sep 30 2002 12:15:41
martins@calloway:~>
martins@calloway:~> /usr/bin/j-scanfile -h
Usage : j-scanfile [-h] [-c] [-v] file file file...
Joe's j-chkmail v1.3
Compiled at Sep 30 2002 12:15:39
-h : help
-c : configuration file
-v : verbose
Joe's j-chkmail v1.3 - Copyright Ecole des Mines de Paris - (C) 2002
martins@calloway:~>