1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

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>
This commit is contained in:
Joerg Wunsch 2004-04-08 08:00:34 +00:00
parent 3605419cb6
commit 668f777082
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=106476
7 changed files with 81 additions and 0 deletions

View File

@ -368,6 +368,7 @@
SUBDIR += spamd
SUBDIR += spamguard
SUBDIR += spamoracle
SUBDIR += spampd
SUBDIR += spamprobe
SUBDIR += spamstats
SUBDIR += spruce

25
mail/spampd/Makefile Normal file
View File

@ -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>

2
mail/spampd/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (spampd-2.12.tar.gz) = cf4d5959500053c83ac230cd27fd8dd1
SIZE (spampd-2.12.tar.gz) = 21862

View File

@ -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,

View File

@ -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

11
mail/spampd/pkg-descr Normal file
View File

@ -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

2
mail/spampd/pkg-plist Normal file
View File

@ -0,0 +1,2 @@
sbin/spampd
etc/rc.d/spampd.sh.sample