Unisar 1.24.1867 manual Server integration, Filter actions in KMail

Page 68

10

Using

BitDefender integration

BitDefender

 

#Save the standard-input to a temporay file cat > $TMPFILE

#Scan it with BitDefender, filter the output and echo the header if $BDSCAN $TMPFILE grep -q infected; then

echo "X-Virus-Flag: yes" else

echo "X-Virus-Flag: no"

fi

#Output the email and remove the temporary file

cat $TMPFILE rm $TMPFILE

# End of the script

Even more, you can customize by yourself this filter. You can add a convenient button on the toolbar, to call the filter on the highlighted message.

Filter actions in KMail

Due to the current KMail structure, the script is called in the Actions section on the filter. That means the only action the filter can do is to add a header stating the message is infected or not. It is up to you to add another filter to check for this header and to perform any desired action.

10.2. Server integration

BitDefender Antivirus Scanner for Unices can also be used to scan the email traffic passing through an email server. There are additional tools to integrate the server and the antivirus. These are just few examples of how to make a low-budget email scanner using BitDefender Antivirus Scanner for Unices.

68

Image 68
Contents Users Guide Users Guide As every cat owner knows, nobody owns a cat BitDefender Antivirus Scanner for Unices Table of Contents Uninstall Configuration file Testing BitDefenderReal life usage BitDefender integrationUpdates Frequently Asked Questions SupportProduct registration Best practicesBitDefender Antivirus Scanner for Unices Viii End User Software License Agreement End User Software License Agreement End User Software License Agreement Xii Typographical conventions PrefaceConventions used in this book Command AdmonitionsBook structure Request for Comments Description and features Description and features Why BitDefender? OverviewData Security Division Softwin Description Product features BitDefender Antivirus Scanner for UnicesKey Features Scanning mechanism More in the manualFeatures Installation Installation Hardware system requirements PrerequisitesSystem requirements Package naming convention Software system requirementsLinux convention Linux requirementsFreeBSD convention Installation Test the rpm and deb packages Package installationTest the package for integrity Test the self-extractable archive Test the FreeBSD tbz packageInstall the package Install the rpm packageInstall the deb package Install the self-extractable archiveAdditional parameters Installer Install the FreeBSD packageConfigures the quarantine directory Uninstall Uninstall the rpm packageUninstall the deb package Uninstall using the self-extractable archiveUninstall from the ports collection Uninstall the FreeBSD packageUninstall a package downloaded locally Using BitDefender Using BitDefender Configuration file System versus User configurationMore about triggered update Key DescriptionUsing07 BitDefender Regular users and quarantineUsing BitDefender Product registrationEicar online resources Testing BitDefenderScan an executable file Command output will be the following Scan an archiveScan a mailbox Tmp/mail.mbox Scan a regular file Real life usageVirus scanning Scan a directory Scan the entire system Scan the archives Actions on archivesScan the mailbox Using the log file ReportGet more information Display the virus listVirus submission Display the product versionDesktop integration Midnight CommanderBitDefender integration Do not break the last line Different installation pathKDE Konqueror Krusader Action on file in KonquerorROX-Filer Krusaders User ActionsPine Pine Information CenterWhat to do with infected emails This is how the screen should look likeExit Status Interval 1,254 Evolution BitDefender pipe bdscanpipeKMail Server integration Filter actions in KMailMailScanner Qmail-Scanner installationMailScanner installation Amavisd-new Change it to the following formAmavisd-new installation Using Updates Triggered updateRun the triggered update Regular updatesEdit the cron table Manual update Http proxyOrder to extract the updates Check the expiration date Product registrationTrial License License for home or personal use License for commercial use Best practices Best practices Getting help Getting help Frequently Asked Questions Getting help BitDefender Knowledge Base SupportSupport department Contact information Web addressesAddress Softwin GmbHRomania BitDefender LLCGetting help Manual Pages Manual Pages Options SynopsisDescription Manual Pages Actions Examples FilesBugs See alsoManual Pages Glossary Command line CookieDisk drive DownloadEvents False positiveFilename extension HeuristicMacro virus Mail clientNon-heuristic Packed programsPort Report fileScript Startup itemsUpdate VirusVirus definition Worm