From f2d35e26a6f9ba2cbce67a1d3692fe4e881f4491 Mon Sep 17 00:00:00 2001 From: Fernando Lemos Date: Fri, 2 Jun 2006 13:32:53 +0000 Subject: The same notes for p3scan apply to this package. Note that the Squid, p3scan and clamsmtp packages will require changes to filter.inc to work (some time later I'll move that stuff to /usr/local/pkg/pf, and so we won't need to change filter.inc in the future). --- packages/clamsmtp.inc | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++ packages/clamsmtp.xml | 21 ++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 packages/clamsmtp.inc create mode 100644 packages/clamsmtp.xml (limited to 'packages') diff --git a/packages/clamsmtp.inc b/packages/clamsmtp.inc new file mode 100644 index 00000000..08d9e23b --- /dev/null +++ b/packages/clamsmtp.inc @@ -0,0 +1,54 @@ + 65535)) + $input_errors[] = 'The field \'SMTP server\' must contain a port ranging from 0 to 65535'; +} + +function clamsmtp_resync() { + global $g, $config; + + $avconf = $config['installedpackages']['clamav']['config'][0]; + if ($avconf['scan_smtp'] == 'on') + $outaddress = "{$avconf['smtp_server']}:{$avconf['smtp_port']}"; + else + $outaddress = '127.0.0.1:25'; + $clamav_rundir = "{$g['varrun_path']}/clamav"; + $clamsocket = "$clamav_rundir/clamd.socket"; + $pidfile = "$clamav_rundir/clamsmtpd.pid"; + $conf = << diff --git a/packages/clamsmtp.xml b/packages/clamsmtp.xml new file mode 100644 index 00000000..6e1391f7 --- /dev/null +++ b/packages/clamsmtp.xml @@ -0,0 +1,21 @@ + + + clamsmtp.inc + + http://www.pfsense.org/packages/config/clamsmtp.inc + + + http://www.pfsense.org/packages/All/clamsmtpd + /usr/local/bin/ + 0755 + + + clamsmtp_install_command(); + + + clamsmtp + SMTP virus scanner. + clamsmtp.sh + clamsmtpd + + -- cgit v1.2.3