XMailforum is a readonly knowledge archive now.

Registering as a new user or answering posts is not possible anymore.

Might the force be with you, to find here what you are looking for.

2019-09-20 - hschneider, Admin

Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.

XMail Forum [Powered by Invision Power Board]
Printable Version of Topic
Click here to view this topic in its original format
XMail Forum > Documentation and Knowledge Base > Install notes for AV filter from Peter Lindemann


Posted by: atomant Nov 18 2003, 03:01 PM
AntiVirus Filter 1.8

What you need :

1. XMail server ( http://www.xmailserver.org )
2. AV engines:
F-Prot for Linux ( http://www.f-prot.com )
AntiVir for Linux ( http://www.antivir.de )
ClamAV for Linux ( http://clamav.elektrapro.com )
McAfee AntiVirus for Linux ( http://www.nai.com )

Note : You don't need all four AV engines but you need at least one ;-)

3. Perl 5.8.0
4. Mail-Sendmail perl unit, used to send the email (#perl -MCPAN -e 'install Mail::Sendmail')
5. Digest-Md5 perl unit, used to calculate a md5 hash (#perl -MCPAN -e 'install Digest::MD5')
(you probably have it installed allready )
6. And of course filter script itself ( http://www.lindeman.org/download/download_av_filter.php )

Installation :

0. You need to have root permissions. Unpack the distribution to a directory of your choise

1. Edit checkvirus.cfg according to your system settings.

2. Filter install for versions of XMail <= XMail 1.12

a.) Copy .tab, checkvirus.pl, reformime, all txt and checkvirus.cfg in the $MailRoot/filters directory
b.) Edit the .tab according your system paths.

3. Filter install for versions of XMail >= XMail 1.14

a.) Copy av-filter.tab, checkvirus.cfg, checkvirus.pl, all txt and reformime files into the $MailRoot/filters directory. Make sure checkvirus.pl and reformime have the x bit set (it means chmod 700 or more).
b.) Copy the files filters.in.tab and filters.out.tab in your $MailRoot directory.
If you allready have something in these files then just add this line to both of them:
"*"[tab]"*"[tab]"0.0.0.0/0"[tab]"0.0.0.0/0"[tab]"av-filter.tab"[newline]

The av-filter.tab has the following layout ( you may have a different path):
"/var/MailRoot/filters/checkvirus.pl"[tab]"@@FILE"[tab]"@@FROM"[tab]"@@RCPT"[tab]"@@MSGID"[newline]

Note: [tab] is the real TAB character and [newline] is real RETURN !!

4. You can edit the txt files which will be used (if configured so in the checkvirus.cfg) to send to sender, recipient and postmaster.

5. That's all. No need to restart Xmail.Send a test virus file to see if the filter is working. You can get Test virus file at http://www.eicar.org

6. In case of problems, run Xmail in debug mode: #/$MailRoot/bin/XMail --debug -Md
This way you can see if the filter is fireing up or not.
You can contact the author at peter@lindemann.nl

Posted by: hschneider Nov 18 2003, 03:57 PM
Thank U !

For all Windows geeks:
Get the latest Perl disto free at http://www.activestate.com


Posted by: atomant Nov 19 2003, 08:53 AM
Modified installation for AV filter version 1.8 .

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)