summaryrefslogtreecommitdiff
path: root/mail/clamsmtp
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-07-21 03:54:24 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-07-21 03:54:24 +0000
commit2239fad927cbea3bfecf88549e1467ae1d94f1db (patch)
tree8ac982a0f5b9ebe31d4138aabaf43eb9aaa15c51 /mail/clamsmtp
parent1a975d27e41fe0c449982252d0c56fb0d813a07a (diff)
downloadpkgsrc-2239fad927cbea3bfecf88549e1467ae1d94f1db.tar.gz
Initial import of clamsmtp-0.3.
ClamSMTP is an SMTP filter that allows you to check for viruses using the ClamAV anti-virus software. It accepts SMTP connections and forwards the SMTP commands and responses to another SMTP server. The 'DATA' email body is intercepted and scanned before forwarding. ClamSMTP aims to be lightweight, reliable, and simple rather than have a myriad of options. It's written in C without major dependencies. If you need more options then you could use something big like AMaViS which is written in PERL and can do almost anything.
Diffstat (limited to 'mail/clamsmtp')
-rw-r--r--mail/clamsmtp/DESCR9
-rw-r--r--mail/clamsmtp/MESSAGE31
-rw-r--r--mail/clamsmtp/Makefile31
-rw-r--r--mail/clamsmtp/PLIST3
-rw-r--r--mail/clamsmtp/distinfo4
-rw-r--r--mail/clamsmtp/files/clamsmtpd.sh24
6 files changed, 102 insertions, 0 deletions
diff --git a/mail/clamsmtp/DESCR b/mail/clamsmtp/DESCR
new file mode 100644
index 00000000000..7de892e04bf
--- /dev/null
+++ b/mail/clamsmtp/DESCR
@@ -0,0 +1,9 @@
+ClamSMTP is an SMTP filter that allows you to check for viruses using
+the ClamAV anti-virus software. It accepts SMTP connections and
+forwards the SMTP commands and responses to another SMTP server. The
+'DATA' email body is intercepted and scanned before forwarding.
+
+ClamSMTP aims to be lightweight, reliable, and simple rather than have
+a myriad of options. It's written in C without major dependencies.
+If you need more options then you could use something big like AMaViS
+which is written in PERL and can do almost anything.
diff --git a/mail/clamsmtp/MESSAGE b/mail/clamsmtp/MESSAGE
new file mode 100644
index 00000000000..542945e19fa
--- /dev/null
+++ b/mail/clamsmtp/MESSAGE
@@ -0,0 +1,31 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2004/07/21 03:54:25 xtraeme Exp $
+
+In order to use ${PKGBASE} with postfix, a possible configuration would
+be:
+
+[main.cf]
+
+content_filter = scan:127.0.0.1:10025
+receive_override_options = no_address_mappings
+
+[master.cf]
+
+# AV scan filter (used by content_filter)
+scan unix - - n - 16 smtp
+ -o smtp_send_xforward_command=yes
+# For injecting mail back into postfix from the filter
+127.0.0.1:10026 inet n - n - 16 smtpd
+ -o content_filter=
+ -o receive_override_options=no_unknown_recipient_checks
+ -o smtpd_helo_restrictions=
+ -o smtpd_client_restrictions=
+ -o smtpd_sender_restrictions=
+ -o smtpd_recipient_restrictions=permit_mynetworks,reject
+ -o mynetworks_style=host
+ -o smtpd_authorized_xforward_hosts=127.0.0.0/8
+
+That's all! please visit ${HOMEPAGE}
+if you need more information.
+
+===========================================================================
diff --git a/mail/clamsmtp/Makefile b/mail/clamsmtp/Makefile
new file mode 100644
index 00000000000..efa4570e55a
--- /dev/null
+++ b/mail/clamsmtp/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/07/21 03:54:24 xtraeme Exp $
+#
+
+DISTNAME= clamsmtp-0.3
+CATEGORIES= mail
+MASTER_SITES= http://memberwebs.com/nielsen/software/clamsmtp/
+
+MAINTAINER= xtraeme@NetBSD.org
+HOMEPAGE= http://memberwebs.com/nielsen/software/clamsmtp/
+COMMENT= SMTP filter that allows you to check for viruses
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+BUILD_DEPENDS+= clamav-[0-9]*:../../mail/clamav
+
+USE_BUILDLINK3= yes
+USE_PKGINSTALL= yes
+GNU_CONFIGURE= yes
+
+RCD_SCRIPTS= clamsmtpd
+
+MESSAGE_SUBST+= PKGBASE=${PKGBASE}
+MESSAGE_SUBST+= HOMEPAGE=${HOMEPAGE}
+
+.include "../../mk/bsd.prefs.mk"
+
+FILES_SUBST+= VARBASE=${VARBASE}
+FILES_SUBST+= CLAMAV_USER=${CLAMAV_USER}
+
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/clamsmtp/PLIST b/mail/clamsmtp/PLIST
new file mode 100644
index 00000000000..eba12ff31e7
--- /dev/null
+++ b/mail/clamsmtp/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/07/21 03:54:24 xtraeme Exp $
+man/man8/clamsmtpd.8
+sbin/clamsmtpd
diff --git a/mail/clamsmtp/distinfo b/mail/clamsmtp/distinfo
new file mode 100644
index 00000000000..cb13d370b6b
--- /dev/null
+++ b/mail/clamsmtp/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/07/21 03:54:24 xtraeme Exp $
+
+SHA1 (clamsmtp-0.3.tar.gz) = a91039425e6c8dea47ac8b77c153a90ad283a2cb
+Size (clamsmtp-0.3.tar.gz) = 117723 bytes
diff --git a/mail/clamsmtp/files/clamsmtpd.sh b/mail/clamsmtp/files/clamsmtpd.sh
new file mode 100644
index 00000000000..5f00291b2b7
--- /dev/null
+++ b/mail/clamsmtp/files/clamsmtpd.sh
@@ -0,0 +1,24 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: clamsmtpd.sh,v 1.1.1.1 2004/07/21 03:54:25 xtraeme Exp $
+#
+# PROVIDE: clamsmtpd
+# REQUIRE: LOGIN clamd
+# BEFORE: mail
+# KEYWORD: shutdown
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+name="clamsmtpd"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+pidfile="/tmp/${name}.pid"
+clamsmtpd_user="@CLAMAV_USER@"
+clamav_conf="@PKG_SYSCONFDIR@/clamav.conf"
+socket=$(@AWK@ '/^#/ {next}; /LocalSocket/ {print $2}' ${clamav_conf})
+command_args="-c ${socket} -p ${pidfile} 127.0.0.1:10026"
+
+load_rc_config $name
+run_rc_command "$1"