Ray's Mail Filter - UtilitiesVersion 1.04/1.14 |
|
||
|
On this page:- Archiving Utility Analysis Utility Memory Monitoring Utility |
Other pages:- Home Page Installation Configuration Operation |
||
The utilities described here are not essential for running the filter, but may be found useful.
| Command | /usr/local/bin/mf-archive | |
| Description | A simple utility for organising the storage and disposal of rejected messages. | |
| Requirements | Rejected messages to be saved in WORK_DIR/rejects | |
| Input |
/usr/local/etc/mail-filter/mail-filter.conf WORK_DIR/rejects/* |
|
| Output |
WORK_DIR/mf-archive.log WORK_DIR/rejects/Arc* |
|
| Method |
On its first invocation, the utility creates a set of subdirectories
within WORK_DIR/rejects as follows:
WORK_DIR
|
rejects
|
+---------+---------+-------- - - - --------+
| | | |
Arc-yesterday | | |
Arc-2-days-ago | |
Arc-3-days-ago |
....... |
Arc-7-days-ago
Then, and on every subsequent invocation, it -
Deletes any files in Arc-7-days-ago; | |
| Recommended Use | Run once every 24 hours (e.g. as a "cron" job), at a time when the volume of mail traffic is likely to be low. | |
| Notes |
|
| Command | /usr/local/bin/mf-analyze |
| Description | Analyzes the previous day's rejected messages and produces a report showing the number of times each suspect text string1 caused a message to be rejected. |
| Requirements |
The utility requires:
|
| Input |
/usr/local/etc/mail-filter/mail-filter.conf WORK_DIR/rejects/Arc-yesterday/* |
| Output |
WORK_DIR/analysis/analysis.date |
| Method |
The filter program inserts
annotations
into the rejected messages, showing which suspect string pattern(s)
have caused them to be rejected. This utility -
|
| Recommended Use | Run once every 24 hours (e.g. as a "cron" job), after running the Archiving Utility. |
| Notes |
|
| Command | /usr/local/bin/mf-memory |
| Description | Records the filter's memory usage. |
| Requirements | None. |
| Input |
/usr/local/etc/mail-filter/mail-filter.conf |
| Output |
WORK_DIR/mf-memory.log |
| Method | Runs the Unix "ps" command and uses awk to extract the memory usage field. Appends the date and time and writes the data into a log file. |
| Recommended Use | Run as a background process as required. |
| Notes | The maximum size of the log file mf-memory.log is regulated by the MAX_LOG variable in the script (500 lines as supplied). |
Ray's Mail Filter Home Page
Installing the Filter
Configuring the Filter
Running the Filter