Post.Office & Virex

Post.Office Tips & Tricks: Index | Virex Script Instructions

Use the configurator below to create the optimized script for your server.
You can also download the generic script which you should edit by hand.

Option Value Comments
General Scanning Options
Script Path standard name and location of the script. This should only be changed if you know what you're doing as you will also have to change /etc/crontab
Virex Scanning turn the virex command line scanner on or off
Virus List Scanning uses grep to scan for common virus names using the virus.list file
MIME Attachments uses grep to scan for unwelcome MIME attachment suffixes
UUencode Attachments uses grep to scan for unwelcome UUencode attachment suffixes
Rewrite Subjects rewrites the subject line with a warning for .exe, .zip, .dll, .com, .shs. The subjects will be prepended with [Careful: Attachment]
Debug Logging provides more information in the log file such as the result of each test performed and the message file size.
Daily Log Roll appends the current date to the log file and thereby providing a simple log rolling facility
Virex Options
Location of vscanx location of the Virex command line scanner (vscanx). Usually this is the correct path unless your system is really different.
vscanx Parameters command line parameters for vscanx. Don't change them if you are not absolutely sure. These are the best settings for a full scan. More information is available on the McAfee site and in the Virex documentation.
Use munpack uses munpack to extract attachments from messages before scanning with vscanx.
Location of munpack normally you will install munpack in /usr/local/bin/
Maximum File Size Maximum file size (in bytes) to scan -- to prevent scanning really large attachements with virex and/or munpack. Common virus file sizes are less than 350000 bytes.
Mailbox Directory
Tell the virexscript which directory to scan. The auto-detect option will check your Post.Office ( /etc/post.office.conf ) configuration to find out where the mailbox directory is. Usually you should keep it at auto-detect.
Other Options
Log Files This is the log file where all the activity will be stored.
Quarantine Folder The quarantine folder is used by the MIME and UUencode scanning options. Messages that contain unwelcome attachments are moved to this directory. This directory must exist. If you follow the install instructions for the script, then this will work correctly.
Virus List This list contains common attachment file names used by viruses. Newer viruses use random attachment names and cannot be effectively moved with this system.
Exclude Accounts list any accounts which should not be scanned by the script, different accounts must be separated by "|". This can be useful if you copy e-mails through an SMTP filters to a local account, e.g. messages caught by SpamAssassin are forwarded to a local account for further manual investigation... Put a dummy account into this line if you don't want to use the feature -- i.e. when you leave this empty, the script won't work correctly.

 


Please support the development of these scripts through PayPal. Thank you.


Copyright by Jochen "Joe" Savelberg - © 2003-2004 -- Last Modified: 09/02/2012