
Here is my solution with gnu unixtools and blat command line mailer.
blat: http://www.interlog.com/~tcharron/blat.html
unixtools: http://unxutils.sourceforge.net/ (native, non cygwin)

The following batch file is a modifed version of the one that tstephens
posted on the mercury@bama.ua.edu mailing list.

Due to 3 parameters that are passed to it and expanded in the policies,
it may very well be that it only runs under winnt/win2k/winxp.
Under win95 you'll need to shorten paths as much as possible.

Remember to modify the variables in fprot.bat to your own needs.

If you want to use sender notification you'll also need to insert your
mailserver address and postmaster address in the notification template
(non-delivery.txt). Additionally you MUST rename non-delivery.smp to
non-delivery.txt. Otherwise sender notification is disabled!

You may want to keep sender notification disabled since most viruses forge
sender addresses nowadays. The choice is up to you.

If active - the result file gets attached to the sender notification.

The sender address is extracted from return-path (first return-path in
message). You NEED the mercuryS module for this.

Note:
If you use mercuryD then you cannot notify, but you CAN still use this
for scanning. Just don't rename non-delivery.smp.

Set the policy action to "Forward to local user" ("save to file and
notify local user" should work to). Parameters for the batch file are as
follows: ~X ~R ~S
Set the type of task to: "Run a program  using a sentinel file".

Have fun. Feel free to ask.

Feb 2004
Robinton (robinton@alahele.de)

--
GINSBERG'S THEOREMS:    1.YOU CAN'T WIN.
                        2.YOU CAN'T BREAK EVEN.
                        3.YOU CAN'T EVEN QUIT THE GAME.
