Anti-Virus-PHP‎ > ‎

Info

posted Jan 11, 2010, 3:54 PM by Chris Franklin
Anti-Spam is a php script that pass' all incoming email though
clamav via tcp. And if a virus is found it rejects the message with a 
"550 Virus : $Virus Found in Email"
The var $Virus will be replaced with the real Virus' name.



Requiremnts:
1. php
2. ClamAV
3. clamd running in deamon mode

Install:
1. download anti-virus.sh to your MailRoot/filers/ dir.
2. add this to your filters.post-data.tab file
"/var/MailRoot/filters/anti-virus.php"[TAB]"@@FILE"[TAB]"@@REMOTEADDR"[TAB]"@@USERAUTH"
3. start Clamd
4. restart Xmail


Pros:
1. Stops virus' at the door. Instead of in the dinning room.
2. Alerts the sender of the virus with out sending out a second email 
(aka no bounce messages !!!)
3. Talks to ClamAV on any server via TCP/IP

Cons:
1. Slows down smtp transaction (no where near enough to cause a time out)
2. Doesn't scan pop3 synced emails as they come'in
ċ
anti-virus.php.gz
(2k)
Chris Franklin,
Jan 11, 2010, 3:54 PM
Comments