summaryrefslogtreecommitdiffstats
path: root/mail/spampd
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>2004-04-08 08:00:34 +0000
committerjoerg <joerg@FreeBSD.org>2004-04-08 08:00:34 +0000
commitace1be8a343f133b4640486e03bdc27d95d7bb6c (patch)
tree9b16aee321223384212921c7758001e8daf1da89 /mail/spampd
parent526cda912858881587b50f48dc0081257720701b (diff)
downloadFreeBSD-ports-ace1be8a343f133b4640486e03bdc27d95d7bb6c.zip
FreeBSD-ports-ace1be8a343f133b4640486e03bdc27d95d7bb6c.tar.gz
Initial import of spampd, an SMPT/LMTP proxy that connects to
spamassassin. Useful to wire spamassassin into Postfix. Submitted by: Christian Schade <christian.schade@interface-systems.de>
Diffstat (limited to 'mail/spampd')
-rw-r--r--mail/spampd/Makefile25
-rw-r--r--mail/spampd/distinfo2
-rw-r--r--mail/spampd/files/patch-setsid19
-rw-r--r--mail/spampd/files/spampd.sh.sample21
-rw-r--r--mail/spampd/pkg-descr11
-rw-r--r--mail/spampd/pkg-plist2
6 files changed, 80 insertions, 0 deletions
diff --git a/mail/spampd/Makefile b/mail/spampd/Makefile
new file mode 100644
index 0000000..c49cbe8
--- /dev/null
+++ b/mail/spampd/Makefile
@@ -0,0 +1,25 @@
+# ports collection makefile for: spampd
+# Date created: 7 April 2004
+# Whom: chris
+#
+# $FreeBSD$
+#
+
+PORTNAME= spampd
+PORTVERSION= 2.12
+CATEGORIES= mail perl5
+MASTER_SITES= http://www.worlddesign.com/Content/rd/mta/spampd/
+
+MAINTAINER= christian.schade@interface-systems.de
+COMMENT= Spamassassin SMTP Proxy
+
+RUN_DEPENDS= spamc:${PORTSDIR}/mail/p5-Mail-SpamAssassin \
+ ${SITE_PERL}/Net/Server/PreForkSimple.pm:${PORTSDIR}/net/p5-Net-Server
+
+NO_BUILD= yes
+
+do-install:
+ @${INSTALL_SCRIPT} ${WRKSRC}/spampd ${PREFIX}/sbin
+ @${INSTALL_SCRIPT} ${FILESDIR}/spampd.sh.sample ${PREFIX}/etc/rc.d
+
+.include <bsd.port.mk>
diff --git a/mail/spampd/distinfo b/mail/spampd/distinfo
new file mode 100644
index 0000000..2eb13ba
--- /dev/null
+++ b/mail/spampd/distinfo
@@ -0,0 +1,2 @@
+MD5 (spampd-2.12.tar.gz) = cf4d5959500053c83ac230cd27fd8dd1
+SIZE (spampd-2.12.tar.gz) = 21862
diff --git a/mail/spampd/files/patch-setsid b/mail/spampd/files/patch-setsid
new file mode 100644
index 0000000..2fafac1
--- /dev/null
+++ b/mail/spampd/files/patch-setsid
@@ -0,0 +1,19 @@
+*** spampd.orig Wed Apr 7 14:32:09 2004
+--- spampd Wed Apr 7 14:32:17 2004
+*************** my $server = bless {
+*** 831,837 ****
+ syslog_ident => 'spampd',
+ syslog_facility => 'mail',
+ background => 1,
+! # setsid => 1,
+ pid_file => $pidfile,
+ user => $user,
+ group => $group,
+--- 831,837 ----
+ syslog_ident => 'spampd',
+ syslog_facility => 'mail',
+ background => 1,
+! setsid => 1,
+ pid_file => $pidfile,
+ user => $user,
+ group => $group,
diff --git a/mail/spampd/files/spampd.sh.sample b/mail/spampd/files/spampd.sh.sample
new file mode 100644
index 0000000..c9ee609
--- /dev/null
+++ b/mail/spampd/files/spampd.sh.sample
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+case "$1" in
+start)
+ if [ -x /usr/local/sbin/spampd ]; then
+ /usr/local/sbin/spampd --user=uucp --group=uucp --host 127.0.0.1:10024 --relayhost=127.0.0.1:10025 --dose --tagall --auto-whitelist
+ echo -n ' spampd'
+ fi
+ ;;
+stop)
+ if [ -f /var/run/spampd.pid ]; then
+ kill `cat /var/run/spampd.pid`
+ rm -f /var/run/spampd.pid
+ echo -n ' spampd'
+ fi
+ ;;
+restart)
+ $0 stop
+ $0 start
+ ;;
+esac
diff --git a/mail/spampd/pkg-descr b/mail/spampd/pkg-descr
new file mode 100644
index 0000000..b8151de
--- /dev/null
+++ b/mail/spampd/pkg-descr
@@ -0,0 +1,11 @@
+spampd is a program used within an e-mail delivery system to scan messages for
+possible Unsolicited Commercial E-mail (UCE, aka spam) content.
+
+It uses an excellent program called SpamAssassin (SA) to do the actual message
+scanning. spampd acts as a transparent SMTP/LMTP proxy between two mail servers,
+and during the transaction it passes the mail through SA. If SA decides the
+mail could be spam, then spampd will ask SA to add some headers and a report to
+the message indicating it's spam and why. spampd is written in Perl and should
+theoretically run on any platform supported by Perl and SpamAssassin.
+
+WWW: http://www.worlddesign.com/index.cfm/rd/mta/spampd.htm
diff --git a/mail/spampd/pkg-plist b/mail/spampd/pkg-plist
new file mode 100644
index 0000000..79736cd
--- /dev/null
+++ b/mail/spampd/pkg-plist
@@ -0,0 +1,2 @@
+sbin/spampd
+etc/rc.d/spampd.sh.sample
OpenPOWER on IntegriCloud