Download VPOP3 User Guide - Paul Smith Computer Services
Transcript
VPOP3 – Your email post office Creating an External Router External Router Examples Virus check incoming message attachments How to Virus Check Incoming Attachments You can make VPOP3 check downloaded messages for viruses by using an External Router program. This is a program, batch file or script which is run whenever a message is downloaded from your ISP using the POP3 protocol. We have described here an example of how you would set up an external router to use McAfee VirusScan to scan all incoming message attachments. You could modify this if you wanted to use another virus scanner - but note that the virus scanner must be able to be run from the command line to check specific files or directories and should return different result codes depending on whether a virus is detected or not (a lot of modern virus scanners are not capable of being controlled from the command line, so check first!) This example assumes the following directory structure: c:\Windows (Windows 95) c:\Program Files\McAfee\VirusScan\scan.exe c:\Program Files\VPOP3\VPOP3.EXE c:\Program Files\VPOP3\vscan.bat c:\Program Files\VPOP3\VScan\unmime.exe c:\Program Files\VPOP3\VScan\uud.exe c:\Program Files\VPOP3\Vscan\Files\ (In the VPOP3\VScan directory, you will need two utilities called unmime and uud. We obtained these from a shareware toolset called ESS-Code 7.5 for DOS.) In the VPOP3 Extensions window define the External Router to be: c:\windows\command.com /c vscan.bat (If you are running Windows NT, use c:\winnt\cmd.exe instead of command.com). VSCAN.BAT Listing @echo off REM Make sure the required directories exist if not exist vscan\files\*.* md vscan\files REM Change to the temporary files directory because unmime and uud REM unpack to the current directory cd vscan\files REM Unpack all mime & uuencoded attachments ..\unmime ..\..\routing.dat >nul ..\uud ..\..\routing.dat >nul REM Change back to the VPOP3 directory cd ..\.. REM Do Scan “c:\program files\mcafee\virusscan\scan” vscan\files\*.* /all /nobeep /noexpire /nomem >nul REM McAfee VirusScan returns a result code of 0 if there are no viruses or Page 192 User Manual v 1.3.0 May 1999