mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
66a65607eb
The milter recives messages from sendmail, and saves them as a file in a directory. The directory name and the file name are the "$i" (queue identifier) from Sendmail, making it easier to identify them. Once the entire message has been received, the milter runs "ripmime" on the file to extract any attachments. If rupmime returns without an error then it will run "uvscan" on the diretory to scan all the files in it. If uvscan returns an error, then the milter will look for viruses output from uvscan, and reject the message reporting which viruses were found. If viruses were found then the entire directory is moved to quarantine, otherwise it is deleted. The milter also does extention checks. Certain extentions are blocked completely. In specific, extenions of .scr, .vbs, .pif, and .com are blocked. Author gave permission to distribute it with BSD-License. WWW: http://www.nmt.edu/~wcolburn/antivirus/
6 lines
204 B
Plaintext
6 lines
204 B
Plaintext
libexec/antivirus
|
|
etc/antivirus.conf-dist
|
|
etc/rc.d/antivirus-milter.sh.sample
|
|
@exec mkdir -p %%ANTIVIRUS%%/spool %%ANTIVIRUS%%/run %%ANTIVIRUS%%/run/quarantine
|
|
@exec chown -R nobody:nobody %%ANTIVIRUS%%/
|