New port: mail/sccmilter, a spam control and canceling sendmail
milter-API filter PR: 54847 Submitted by: Rashid N. Achilov <shelton@sentry.granch.ru> Approved by: fjoe (mentor) (implicit)
This commit is contained in:
parent
656d57159f
commit
1bc1fe66e4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=85858
6 changed files with 111 additions and 0 deletions
|
@ -278,6 +278,7 @@
|
|||
SUBDIR += ruby-rmail
|
||||
SUBDIR += ruby-tmail
|
||||
SUBDIR += scmail
|
||||
SUBDIR += sccmilter
|
||||
SUBDIR += sendmail
|
||||
SUBDIR += sendmail-ldap
|
||||
SUBDIR += sendmail-old
|
||||
|
|
65
mail/sccmilter/Makefile
Normal file
65
mail/sccmilter/Makefile
Normal file
|
@ -0,0 +1,65 @@
|
|||
# New ports collection makefile for: sccmilter
|
||||
# Date created: 25 Jul 2003
|
||||
# Whom: Rashid N. Achilov <shelton@granch.ru>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= sccmilter
|
||||
PORTVERSION= 0.92.2
|
||||
PORTREVISION=
|
||||
CATEGORIES= mail sysutils
|
||||
MASTER_SITES= ftp://granch.ru/pub/kavmilter/
|
||||
|
||||
MAINTAINER= shelton@granch.ru
|
||||
COMMENT= Sendmail spam control and canceling filter, based on Milter API
|
||||
|
||||
.if !exists(/usr/lib/libmilter.a)
|
||||
IGNORE= requires Sendmail 8.12; upgrade the base system
|
||||
.endif
|
||||
|
||||
USE_BZIP2= yes
|
||||
USE_GETOPT_LONG=yes
|
||||
USE_REINPLACE= yes
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS+= --localstatedir=/var
|
||||
|
||||
MAN5= sccmilter.conf.5 scchosts.5 sccusers.5
|
||||
MAN8= sccmilter.8
|
||||
|
||||
CPPFLAGS= ${PTHREAD_CFLAGS}
|
||||
LDFLAGS= ${PTHREAD_LIBS}
|
||||
MAKE_ENV= CPPFLAGS="${CPPFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}"
|
||||
|
||||
.if defined(WITH_DEBUG)
|
||||
CONFIGURE_ARGS+= --with-debug
|
||||
.endif
|
||||
|
||||
pre-everything::
|
||||
@${ECHO_MSG} ""
|
||||
@${ECHO_MSG} "For debugging information support you should specify"
|
||||
@${ECHO_MSG} " WITH_DEBUG=yes (press Ctrl-C here and start make WITH_DEBUG=yes)"
|
||||
@${ECHO_MSG} ""
|
||||
@sleep 2
|
||||
|
||||
post-install:
|
||||
${STRIP_CMD} ${PREFIX}/libexec/sccmilter
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for i in README CHANGES FAQ
|
||||
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
post-deinstall:
|
||||
@${ECHO_MSG} ""
|
||||
@${ECHO_MSG} "Do not forget delete filter description from /etc/mail/freebsd.mc"
|
||||
@${ECHO_MSG} "and rebuild sendmail.cf file!"
|
||||
@${ECHO_MSG} ""
|
||||
|
||||
.include <bsd.port.mk>
|
1
mail/sccmilter/distinfo
Normal file
1
mail/sccmilter/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (sccmilter-0.92.2.tar.bz2) = 4389dfbc15e1bbc833672c995ce1f989
|
22
mail/sccmilter/pkg-descr
Normal file
22
mail/sccmilter/pkg-descr
Normal file
|
@ -0,0 +1,22 @@
|
|||
This is a sendmail filter, based on Milter API, intedned to do
|
||||
spam control and canceling it. This is multi-thread small filter,
|
||||
which sits between sendmail and local mail agent, checks all mail
|
||||
by selected rules and cancels spam-qualified messages.
|
||||
|
||||
Main features:
|
||||
- Charset controlling. No more unreadable mails in your box!
|
||||
You can selectively setup, which codepages for which users
|
||||
are allowed, mail with other codepages will declined
|
||||
- HTML isolating. You can setup filter to check all incoming,
|
||||
outgoing or all (or none) mail to HTML mail and decline it.
|
||||
IMHO, HTML mail is a headache only. You can separately setup
|
||||
on per-user basis, which users can send HTML mail, which can
|
||||
receive
|
||||
|
||||
Any other features (content filtering, attachment checking) are
|
||||
planned, but not imlemented this release.
|
||||
|
||||
WWW: http://granch.ru/~shelton/
|
||||
|
||||
- Rashid N. Achilov
|
||||
shelton@granch.ru
|
12
mail/sccmilter/pkg-message
Normal file
12
mail/sccmilter/pkg-message
Normal file
|
@ -0,0 +1,12 @@
|
|||
************************************************************************
|
||||
|
||||
In order to run this port, please add the following line to
|
||||
/etc/mail/freebsd.mc:
|
||||
|
||||
INPUT_MAIL_FILTER(`sccmilter',`S=unix:/var/run/sccmilter,F=T')
|
||||
|
||||
and appropriate correct the line with confINPUT_MAIL_FILTERS, when exist.
|
||||
|
||||
Don't forget remake sendmail configuration file after modifying freebsd.mc
|
||||
|
||||
************************************************************************
|
10
mail/sccmilter/pkg-plist
Normal file
10
mail/sccmilter/pkg-plist
Normal file
|
@ -0,0 +1,10 @@
|
|||
libexec/sccmilter
|
||||
etc/sccmilter/sccmilter.conf.sample
|
||||
etc/sccmilter/scchosts.sample
|
||||
etc/sccmilter/sccusers.sample
|
||||
etc/rc.d/sccmilter.sh.sample
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%%%DOCSDIR%%/CHANGES
|
||||
%%PORTDOCS%%%%DOCSDIR%%/FAQ
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
@dirrm etc/sccmilter
|
Loading…
Reference in a new issue