General-Purpose Mail Filter
Pass the message msg to the ClamAV daemon at url. Return
true if it detects a virus in it. Return virus name in
clamav_virus_name global variable.
clamav function can signal the following exceptions:
e_failure if failed to connect to the server,
the supplied URL is invalid and
e_range if the
supplied port number is out of the range 1–65535.
An example usage:
prog eom do if clamav(current_message(), "tcp://192.168.10.1:6300") reject 550 5.7.0 "Infected with %clamav_virus_name" fi done
This document was generated on January 3, 2019 using makeinfo.Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.