![]() |
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 countersrestart, reload, dumpstats and clearstats are options added to help sending signals to j-chkmail daemon.
Syntax : DOMAIN my-domain.com Default : no default value
Syntax : J_HOSTNAME SYSTEM | SENDMAIL | myserver.mydomain.com Default : SYSTEMDeclaring SYSTEM tells sendmail to use value returned by gethostname system call. SENDMAIL tells j-chkmail to use value defined by $j macro at sendmail configuration file. Otherwise, j-chkmail will use declared value for this option.
Syntax : PRESENCE SHOW | HIDE Default : SHOW
Syntax : USER user Default : if not defined nor here, nor at configuration time, smmsp
Syntax : GROUP group Default : if not defined nor here, nor at configuration time, smmsp
Syntax SOCKET local:/var/tmp/j-chkmail.sock (UNIX socket) SOCKET inet:2000@hostname (INET socket)
Syntax INET_SOCK 2000
Syntax UNIX_SOCK /var/tmp/j-chkmail.sock
Syntax : WARN_SENDER YES | NO Default : YES
Syntax : WARN_RCPT YES | NO Default : YES
Syntax : J_SENDER SENDER | j-master@myserver.mydomain.com Default : SENDER
Syntax : LOG_FACILITY local5 Default : local5
Syntax : LOG_LEVEL 10 Default : 10
Syntax : STATS_INTERVAL 300 Default : 300
Syntax : LOG_ATTACHMENTS NO | YES Default : NO
Syntax (and default file) ERROR_MSG_FILE /etc/mail/j-error-msg
Syntax (and default file) CW_FILE /etc/mail/local-host-names or /etc/mail/sendmail.cw
Syntax (and default file) USERS_FILE /etc/mail/j-local-users
Syntax (and default file) NETS_FILE /etc/mail/j-nets
Syntax (and default file) SPOOLDIR /var/spool/jchkmail
Syntax (and default file) WORKDIR /var/jchkmail
Syntax (and default file) PID_FILE /var/jchkmail/j-chkmail.pid
Syntax (and default file) STATS_FILE /var/jchkmail/j-stats
Syntax (and default file) STATE_FILE /var/jchkmail/j-state
Syntax (and default file) XFILES_LOG /var/jchkmail/j-files
Syntax : XFILES OK | WARN | REJECT | DISCARD Default : OK
Syntax : FILE_EXT ext1 [ext2] [ext3] ...
Syntax : FILE_REGEX regex
Syntax : XFILE_SAVE_MSG YES | NO Default : NO
Syntax : AV_ACTION OK | WARN | REJECT | DISCARD Default : OK
Syntax : AV_PORT 2000
Syntax : AV_TYPE UVSCAN AV_PATH /usr/local/uvscan/uvscan AV_ARGS --mime --secure -rv --summary --noboot AV_TYPE SOPHOS AV_PATH /opt/sophos/bin/sweep AV_ARGS -nb -f -all -rec -ss -sc -archive AV_TYPE TREND AV_PATH /opt/trend/ISBASE/IScan.BASE/vscan AV_ARGS -a
Syntax : AV_SAVE_MSG YES | NO Default : NO
Syntax : CHECK_LOCAL_USERS YES | NO Default : NO
Syntax : CHECK_NB_RCPT YES | NO Default : NO
Syntax : MAX_RCPT_FROM_DOMAIN 200 Default : 200
Syntax : MAX_RCPT_FROM_LOCAL 200 Default : 200
Syntax : MAX_RCPT_FROM_FRIEND 1000 Default : 1000
Syntax : MAX_RCPT_FROM_OUTSIDE 10 Default : 10
Syntax : NO_TO_HEADERS OK | REJECT Default : OK
Syntax : NO_FROM_HEADERS OK | REJECT Default : OK
Syntax : CHECK_DOMAIN_ADDRESS OK | REJECT Default : OK
Syntax : KIND NETWORK NETMASK # Everything after a "#" is considered as comments 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
martins@calloway:~> /usr/sbin/j-chkmail -h Usage : j-chkmail options Joe's j-chkmail v1.1 Compiled at May 29 2002 14:11:57 -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 Joe's j-chkmail v1.1 - Copyright Ecole des Mines de Paris - (C) 2002 martins@calloway:~>