debian/0000775000000000000000000000000012473441767007207 5ustar debian/milter-greylist.lintian-overrides0000664000000000000000000000004612366131326015707 0ustar possible-gpl-code-linked-with-openssl debian/compat0000664000000000000000000000000212037014367010371 0ustar 9 debian/milter-greylist.examples0000664000000000000000000000003511347433422014065 0ustar greylist.conf greylist2.conf debian/changelog0000664000000000000000000001563412473441763011066 0ustar milter-greylist (4.5.11-1build1) vivid; urgency=medium * No change rebuild for libopendkim10 transition -- Scott Kitterman Wed, 25 Feb 2015 16:51:21 -0500 milter-greylist (4.5.11-1) unstable; urgency=low * New upstream release * Bump debhelper compat level to 9. * Build against libcurl (Closes: #637441) * Build against libopendkim (Closes: #562960) * Build against libgeoip (Closes: #634903) * New patch: + patches/initfile.lsb: Add lsb/init-functions to init script. (Helps: #739465) + patches/initfile.nosudo: Remove dependency on sudo by using su instead. (Closes: #747634) * Updated standards version to 3.9.5 (no changes) -- Paul Martin Sun, 03 Aug 2014 11:46:16 +0100 milter-greylist (4.3.9-1) unstable; urgency=low * New upstream release * Refreshed patch: + patches/m4.socket-options * Convert from cdbs to dh. * Build with -fno-strict-aliasing as the source uses type punned pointers * Updated standards version to 3.9.2 (no changes) -- Paul Martin Wed, 22 Jun 2011 14:20:18 +0100 milter-greylist (4.3.8-1) unstable; urgency=low * New upstream release * Updated standards version to 3.9.1 (no changes) * Update debian/copyright to fix lintian warning copyright-refers-to-deprecated-bsd-license-file -- Paul Martin Mon, 11 Oct 2010 12:23:39 +0100 milter-greylist (4.3.7-1) unstable; urgency=low * New upstream release -- Paul Martin Sat, 15 May 2010 13:11:03 +0100 milter-greylist (4.3.5-3) unstable; urgency=low * Revert back to 4.3.5-1 code and put on a brown paper bag. The changes don't work. -- Paul Martin Wed, 17 Mar 2010 01:59:59 +0000 milter-greylist (4.3.5-2) unstable; urgency=low * Updated patches: + patches/greylist.conf: Make the init script parse the config file to find out which user it runs as. + patches/rc-debian.socket: ditto. This prevents the confusion of two files specifying what the socket file and user should be. Also removed from defaults. (Closes: 554239) -- Paul Martin Mon, 15 Mar 2010 21:10:19 +0000 milter-greylist (4.3.5-1) unstable; urgency=low * New upstream release * Switch to dpkg-source 3.0 (quilt) format * Add DEP-3 tags to all patches. * Update to Debian Policy 3.8.4 (no changes) * New patch: + patches/573936-dump_lex: Fixes parsing a dump with some awkward non-RFC822 email addresses. (Closes: #573936) * Updated patch: + patches/greylist.conf: Document what to do for Postfix use. (Closes: #554239) -- Paul Martin Mon, 15 Mar 2010 14:57:28 +0000 milter-greylist (4.3.4-2) unstable; urgency=low * debian/control: change Recommends to "sendmail | postfix". (Closes: #552539) -- Paul Martin Tue, 27 Oct 2009 15:11:44 +0000 milter-greylist (4.3.4-1) unstable; urgency=low * New upstream release + patches/initfile.syntaxerror removed (applied upstream) * Bump standards version to 3.8.3 + add debian/README.source + debian/milter-greylist.files: don't store /var/run/milter-greylist in package. It's created at boot time. * New patch: + patches/initfile.mountall: LSB INIT INFO should depend on $local_fs rather than mountall. -- Paul Martin Tue, 06 Oct 2009 19:48:58 +0100 milter-greylist (4.2~b1-1) unstable; urgency=low * New upstream release (stable release candidate) - Changes permissions on the dumpfile to 600. (We had 644 before, with upstream having 755.) * Add Homepage to debian/control -- Paul Martin Sat, 21 Feb 2009 22:16:04 +0000 milter-greylist (4.1.12-1) unstable; urgency=low * New upstream release * Change initscript to create a sendmail-friendly directory for /var/run/milter-greylist if we're running on a tempfs. (Closes: #508122) This is also a fix for ubuntu bug #226267. * Lintian warning fix: refer to GPLv2 for packaging. -- Paul Martin Mon, 16 Feb 2009 17:54:25 +0000 milter-greylist (4.1.8-2) unstable; urgency=low * Added logcheck ignore file. Thanks to Kim Holviala. (Closes: #508824) -- Paul Martin Wed, 17 Dec 2008 12:14:55 +0000 milter-greylist (4.1.8-1) unstable; urgency=low * New upstream release * Correct some lintian warnings: + debhelper-but-no-misc-depends milter-greylist + quilt-patch-missing-description * Upload to unstable. -- Paul Martin Thu, 04 Dec 2008 12:34:10 +0000 milter-greylist (4.1.7-2) experimental; urgency=low * Change the default dumpfreq timing from 1 second to 10 minutes. * Change the default permissions on the dump from 755 to 644. * Add greylist.conf and greylist2.conf to examples. -- Paul Martin Thu, 04 Dec 2008 12:01:49 +0000 milter-greylist (4.1.7-1) experimental; urgency=low * New maintainer (Closes: #470188) * New upstream release + Changes SPF support (Closes: #445841) + DOPTIONS set in init script after reading defaults file (Closes: #495811, #465260) + init script understands reload (Closes: #470195) * Convert to cdbs and quilt. * Change configure call so that it doesn't build with rpath. * Fix /etc/default/milter-greylist for spelling mistake and wrong configuration file path. (Closes: #460314) * DNSRBL support enabled. (Closes: #449557) * Update debian/watch file. -- Paul Martin Sun, 23 Nov 2008 18:59:55 +0000 milter-greylist (3.0-3.1) unstable; urgency=high * Non-maintainer upload. * Fix configure call so that no unsafe rpath is added to the binaries (closes: #495789) -- Frank Lichtenheld Sun, 14 Sep 2008 00:51:28 +0200 milter-greylist (3.0-3) unstable; urgency=low [ Elrond ] * Remove patch to configure after talking to Cord * Fix new location of libmilter.so by also searching in /usr/lib/milter for it (closes: #423969) [ Cord Beermann ] * fixed lintian 'debian-rules-ignores-make-clean-error' * leaving the 'binary-or-shlib-defines-rpath'. it is needed to fix the libmilter problem above. (Yes, there must be a better solution) -- Cord Beermann Sat, 07 Jul 2007 23:26:14 +0200 milter-greylist (3.0-2) unstable; urgency=low * adding missing Build-dependency libspf2-dev (closes: #406859) * set priority to extra, because libmilter0 is also extra and we depend on it. -- Cord Beermann Wed, 3 Jan 2007 23:41:25 +0100 milter-greylist (3.0-1) unstable; urgency=low * Initial official release (Closes: #264192) -- Cord Beermann Sat, 30 Dec 2006 16:17:08 +0100 milter-greylist (2.0b7-0) unstable; urgency=low * Ported to 2.0b7, which contains Elronds "fixes". -- Elrond Wed, 11 May 2005 17:26:37 +0200 milter-greylist (2.0b5-0) unstable; urgency=low * Initial -- Elrond Thu, 21 Apr 2005 15:16:49 +0200 debian/milter-greylist.dirs0000664000000000000000000000011211347433421013203 0ustar etc/milter-greylist usr/share/sendmail/cf/feature var/lib/milter-greylist debian/patches/0000775000000000000000000000000012367412043010621 5ustar debian/patches/tempfs.5081220000664000000000000000000000235111347442334012606 0ustar Description: All running with /var/run on a tempfs Forwarded: no Origin: vendor Author: Paul Martin Bug-Debian: http://bugs.debian.org/508122 Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/milter-greylist/+bug/226267 Although it's not default in Debian, it's perfectly reasonable to run /var/run on a tempfs (as Ubuntu does) so the init should check and see if the run dir exists and create it if it doesn't. -- Ubuntu bug: #226267 I just upgraded from Gutsy to Hardy via the alternate CD. In the process, a previously running sendmail installation broke. The problem is the perissions on /var/run/milter-greylist. (Ubuntu had applied the patch from Debian bug #508122, which doesn't get the permissions such that sendmail is happy with the socket.) Index: milter-greylist-4.1.12/rc-debian.sh.in =================================================================== --- milter-greylist-4.1.12.orig/rc-debian.sh.in 2009-02-16 17:44:28.778437211 +0000 +++ milter-greylist-4.1.12/rc-debian.sh.in 2009-02-16 17:45:58.378438860 +0000 @@ -60,6 +60,12 @@ exit 1 fi +if [ ! -d /var/run/$PNAME ]; then + mkdir /var/run/$PNAME + chown greylist:greylist /var/run/$PNAME + chmod 755 /var/run/$PNAME +fi + set -e case "$1" in debian/patches/greylist.conf0000664000000000000000000000371112366126426013342 0ustar Description: Correct the location of the socket, and the user the daemon runs as, to conform with Debian norms. Origin: vendor Forwarded: not-needed Author: Paul Martin Index: milter-greylist-4.5.11/greylist.conf =================================================================== --- milter-greylist-4.5.11.orig/greylist.conf 2014-07-30 09:29:48.543484591 +0100 +++ milter-greylist-4.5.11/greylist.conf 2014-07-30 09:29:48.539484522 +0100 @@ -6,11 +6,17 @@ # pidfile "/var/run/milter-greylist.pid" -socket "/var/milter-greylist/milter-greylist.sock" -dumpfile "/var/milter-greylist/greylist.db" 600 +dumpfile "/var/lib/milter-greylist/greylist.db" 600 dumpfreq 1 + +# For sendmail use the following two lines +socket "/var/run/milter-greylist/milter-greylist.sock" user "smmsp" +# For Postfix uncomment the following two lines and comment out the +# sendmail ones above. +#socket "/var/run/milter-greylist/milter-greylist.sock" 660 +#user "postfix" # Log milter-greylist activity to a file #stat ">>/var/milter-greylist/greylist.log" \ @@ -32,6 +38,15 @@ # Your own network, which should not suffer greylisting list "my network" addr { 127.0.0.1/8 10.0.0.0/8 192.0.2.0/24 } +# Your MXes and Mailforwardinghosts, Mailinglistsproviders, which you +# don't want to annoy. +list "my friends" addr { \ + 70.103.162.0/24 \ # Debian Mail+Listservers. NEVER unwhitelist them. + 140.211.166.0/24 \ # Debian Bugs + 192.25.206.0/24 \ # Debian web/cvs/people + 194.109.137.218/32 \ # Debian security/www-master.d.o +} + # This is a list of broken MTAs that break with greylisting. Derived from # http://cvs.puremagic.com/viewcvs/greylisting/schema/whitelist_ip.txt?rev=1.16 list "broken mta" addr { \ @@ -128,6 +143,7 @@ # And here is the access list racl whitelist list "my network" +racl whitelist list "my friends" racl whitelist list "broken mta" #racl whitelist dnsrbl "MTAWL" #racl blacklist urlcheck "userpref" $usrRBL "CBL" dnsrbl "CBL" \ debian/patches/m4.socket-options0000664000000000000000000000210711600357500014037 0ustar Description: Correct the location of the milter socket for Debian and make it soft-fail if the daemon isn't running. Forwarded: no Origin: vendor Author: Paul Martin Index: milter-greylist-4.3.9/milter-greylist.m4 =================================================================== --- milter-greylist-4.3.9.orig/milter-greylist.m4 2011-01-24 02:08:31.000000000 +0000 +++ milter-greylist-4.3.9/milter-greylist.m4 2011-06-22 13:25:29.957451843 +0100 @@ -34,11 +34,13 @@ ifdef(`confGREYLIST_SOCKET',`dnl define(`confGREYLIST_ARGS',`S=confGREYLIST_SOCKET')dnl dnl',`dnl -define(`confGREYLIST_ARGS',`S=local:/var/milter-greylist/milter-greylist.sock')dnl +define(`confGREYLIST_ARGS',`S=local:/var/run/milter-greylist/milter-greylist.sock')dnl dnl')dnl ifdef(`confGREYLIST_OPTIONS',`dnl define(`confGREYLIST_ARGS',confGREYLIST_ARGS`, confGREYLIST_OPTIONS')dnl -dnl',`dnl')dnl +dnl',`dnl +define(`confGREYLIST_ARGS',confGREYLIST_ARGS`, F=, T=S:4m;R:4m')dnl +dnl')dnl INPUT_MAIL_FILTER(`greylist', `confGREYLIST_ARGS')dnl dnl debugmode(`V')dnl define(`xxquote',```$1''')dnl debian/patches/initfile.nosudo0000664000000000000000000000106412367412043013656 0ustar Index: milter-greylist-4.5.11/rc-debian.sh.in =================================================================== --- milter-greylist-4.5.11.orig/rc-debian.sh.in 2014-08-02 17:38:23.316765370 +0100 +++ milter-greylist-4.5.11/rc-debian.sh.in 2014-08-03 11:51:08.897045469 +0100 @@ -94,7 +94,7 @@ reload) echo -n "Checking config: " - if sudo -u $USER $DAEMON -c 2>&1 |grep -v 'config .* okay$' |grep . >&2 + if sudo -c "$DAEMON -c" $USER 2>&1 |grep -v 'config .* okay$' |grep . >&2 then echo "failed. Quitting with error, no action taken." exit 1 debian/patches/initfile.lsb0000664000000000000000000000071112367212005013121 0ustar Index: milter-greylist-4.5.11/rc-debian.sh.in =================================================================== --- milter-greylist-4.5.11.orig/rc-debian.sh.in 2014-08-02 17:37:22.163899956 +0100 +++ milter-greylist-4.5.11/rc-debian.sh.in 2014-08-02 17:38:23.316765370 +0100 @@ -16,7 +16,7 @@ # Description: another spam-defense service ### END INIT INFO - +. /lib/lsb/init-functions # Based on skeleton by Miquel van Smoorenburg and Ian Murdock debian/patches/rc-debian.socket0000664000000000000000000000122011347441707013660 0ustar Description: Correct the socket location for Debian systems. Forwarded: not-needed Origin: vendor Author: Paul Martin Index: milter-greylist-4.1.7/rc-debian.sh.in =================================================================== --- milter-greylist-4.1.7.orig/rc-debian.sh.in 2008-11-23 18:11:07.327384767 +0000 +++ milter-greylist-4.1.7/rc-debian.sh.in 2008-11-23 18:12:10.761207180 +0000 @@ -28,7 +28,7 @@ PIDFILE="/var/run/$NAME.pid" PNAME="milter-greylist" USER="@USER@" -SOCKET=/var/milter-greylist/milter-greylist.sock +SOCKET=/var/run/milter-greylist/milter-greylist.sock [ -x $DAEMON ] || DAEMON=@BINDIR@/milter-greylist debian/patches/rc-debian.utf80000664000000000000000000000114511347441677013272 0ustar Description: rc-debian.sh.in has an iso-8859-1 character. Convert it to UTF-8 in accordance with Debian policy. Forwarded: no Origin: vendor Author: Paul Martin Index: milter-greylist-4.1.7/rc-debian.sh.in =================================================================== --- milter-greylist-4.1.7.orig/rc-debian.sh.in 2008-11-23 18:07:36.907384554 +0000 +++ milter-greylist-4.1.7/rc-debian.sh.in 2008-11-23 18:07:51.019734561 +0000 @@ -2,7 +2,7 @@ # Greylist init script # July 2004 -# BERTRAND Joël +# BERTRAND Joël # ### BEGIN INIT INFO # Provides: milter-greylist debian/patches/conf-dumpfreq0000664000000000000000000000120211347444333013311 0ustar Description: Fix the silly defaults of dump file mode and frequency. Forwarded: no Origin: vendor Author: Paul Martin Index: milter-greylist-4.3.5/greylist.conf =================================================================== --- milter-greylist-4.3.5.orig/greylist.conf 2010-03-15 14:48:16.000000000 +0000 +++ milter-greylist-4.3.5/greylist.conf 2010-03-15 14:48:48.732009554 +0000 @@ -7,7 +7,7 @@ pidfile "/var/run/milter-greylist.pid" dumpfile "/var/lib/milter-greylist/greylist.db" 600 -dumpfreq 1 +dumpfreq 10m # For sendmail use the following two lines socket "/var/run/milter-greylist/milter-greylist.sock" debian/patches/573936-dump_lex0000664000000000000000000000135711347444704013153 0ustar Description: Workaround for parsing of broken email addresses in dump file. Forwarded: no Origin: vendor Bug-Debian: http://bugs.debian.org/573936 Author: Paul Martin Index: milter-greylist-4.3.5/dump_lex.l =================================================================== --- milter-greylist-4.3.5.orig/dump_lex.l 2010-03-15 14:52:15.165006828 +0000 +++ milter-greylist-4.3.5/dump_lex.l 2010-03-15 14:52:45.914009444 +0000 @@ -7,7 +7,7 @@ byte [0-9]{1,3} ipaddr {byte}"."{byte}"."{byte}"."{byte} ip6addr ([0-9a-fA-F]*:){2,}[0-9a-fA-F]*(%[0-9a-zA-Z]+)? -atext [A-Za-z0-9!#$%&'*+/=?$^_`}{|~.-]{1,} +atext [A-Za-z0-9!#$%&'*+/=?$^_`}{|~.()-]{1,} qtext "\""[!-~]{1,}"\"" mailbox {atext}|{qtext} domain [A-Za-z0-9._-]{1,} debian/patches/initfile.mountall0000664000000000000000000000131411347445237014210 0ustar Description: Fix init script to conform with with LFS. (from lintian errors) Forwarded: no Origin: vendor Author: Paul Martin Index: milter-greylist-4.3.5/rc-debian.sh.in =================================================================== --- milter-greylist-4.3.5.orig/rc-debian.sh.in 2010-03-15 14:54:59.405007093 +0000 +++ milter-greylist-4.3.5/rc-debian.sh.in 2010-03-15 14:55:54.751009521 +0000 @@ -7,7 +7,7 @@ ### BEGIN INIT INFO # Provides: milter-greylist # Required-Start: $local_fs $named $remote_fs $syslog -# Required-Stop: mountall +# Required-Stop: $local_fs $remote_fs # Should-Start: sendmail # Should-Stop: # Default-Start: 2 3 4 5 debian/patches/series0000664000000000000000000000023312367411764012045 0ustar m4.socket-options greylist.conf rc-debian.utf8 rc-debian.socket conf-dumpfreq tempfs.508122 initfile.mountall 573936-dump_lex initfile.lsb initfile.nosudo debian/patches/makefile-install0000664000000000000000000000127411347441716013777 0ustar Description: Stop the Makefile installing the default configuration, as we want to install our own. Forwarded: not-needed Origin: vendor Author: Paul Martin Index: milter-greylist-4.1.7/Makefile.in =================================================================== --- milter-greylist-4.1.7.orig/Makefile.in 2008-11-23 14:14:00.739383386 +0000 +++ milter-greylist-4.1.7/Makefile.in 2008-11-23 14:15:29.375384744 +0000 @@ -126,7 +126,7 @@ echo " ================================================"; \ ) || ${TRUE} -install: install-daemon-to-bin install-man install-conf install-db +install: install-daemon-to-bin install-man depend: ${MKDEP} ${CPPFLAGS} ${CFLAGS} ${SRC} debian/milter-greylist.logcheck.ignore.server0000664000000000000000000000171511347433422016623 0ustar ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ milter-greylist: smfi_getsymval failed for \{[[:alnum:]_]+\}$ ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ milter-greylist: Sender IP [0-9.]{7,15} and address [^[:space:]]+ are SPF-compliant, bypassing greylist$ ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ milter-greylist: \(unknown id\): addr [._[:alnum:]-]+\[[0-9.]{7,15}\] from <[^[:space:]]+> to <[^[:space:]]+> delayed for [0-9:]{7,10} \(ACL [0-9]{1,5}\)$ ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ postfix/smtpd\[[0-9]+\]: NOQUEUE: milter-reject: RCPT from [._[:alnum:]-]+\[[0-9.]{7,15}\]: 451 4.7.1 Greylisting in action, please come back later; from=<[^[:space:]]+> to=<[^[:space:]]+> proto=(SMTP|ESMTP) helo=<[^[:space:]]+>$ ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ milter-greylist: \(unknown id\): addr [0-9.]{7,15} from [^[:space:]]+ rcpt [^[:space:]]+: autowhitelisted (for|for more) [0-9:]{7,10}$ ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ milter-greylist: User [.[:alnum:]@-]+ authenticated, bypassing greylisting$ debian/milter-greylist.install0000664000000000000000000000012411347433421013713 0ustar greylist.conf etc/milter-greylist milter-greylist.m4 usr/share/sendmail/cf/feature debian/copyright0000664000000000000000000001142011454572234011130 0ustar This package was debianized by Cord Beermann on Sat, 30 Dec 2006 16:17:08 +0100. It was downloaded from http://hcpnet.free.fr/milter-greylist/ Upstream Author: Emmanuel Dreyfus Copyright: 2004-2008 Emmanuel Dreyfus spamd.c copyright: 2008 Manuel Badzong, Emmanuel Dreyfus fd_pool.c copyright: 2007 Johann Klasek License: The Debian packaging is (C) 2006, Cord Beermann and is licensed under the GPL, see `/usr/share/common-licenses/GPL-2'. The main code is under the 3 clause BSD license: /* * Copyright (c) 2004-2007 Emmanuel Dreyfus * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by Emmanuel Dreyfus * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. */ install-sh has a MIT BSD-like license: Copyright 1991 by the Massachusetts Institute of Technology Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of M.I.T. not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. M.I.T. makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. queue.h has a 4 clause BSD license: Copyright (c) 1991, 1993 The Regents of the University of California. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the University of California, Berkeley and its contributors. 4. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The configure script has the following license: # Copyright (C) 2003 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. debian/rules0000775000000000000000000000157612367210130010254 0ustar #!/usr/bin/make -f %: dh $@ --with autotools_dev override_dh_auto_configure: dh_auto_configure -- \ --with-user=greylist \ --sysconfdir=/etc/milter-greylist \ --with-conffile=/etc/milter-greylist/greylist.conf \ --with-dumpfile=/var/lib/milter-greylist/greylist.db \ --with-libspf2=/usr \ --with-libcurl=/usr \ --with-libmilter=/usr \ --with-libopendkim=/usr \ --with-libGeoIP=/usr \ --enable-dnsrbl \ --disable-rpath \ LDFLAGS=" -Wl,-z,defs -L/usr/lib/libmilter $(LDFLAGS) " \ CFLAGS=" -fno-strict-aliasing $(CFLAGS) " override_dh_auto_install: cp rc-debian.sh debian/milter-greylist.init DESTDIR=$(CURDIR)/debian/milter-greylist make install-sbin install-man override_dh_auto_clean: dh_auto_clean rm -f debian/milter-greylist.init # The following keeps lintian happy rm -f milter-greylist.spec # Sometimes autoconf doesn't clean up after itself rm -f config.log debian/control0000664000000000000000000000231112367211024010566 0ustar Source: milter-greylist Section: mail Priority: extra Maintainer: Paul Martin Build-Depends: quilt, debhelper (>= 9), autotools-dev, libmilter-dev, bison, flex, libspf2-dev, libcurl4-openssl-dev, libopendkim-dev, libssl-dev, libgeoip-dev Standards-Version: 3.9.5 Package: milter-greylist Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, adduser (>= 3.11) Recommends: sendmail | postfix Homepage: http://hcpnet.free.fr/milter-greylist/ Description: Greylist milter for sendmail milter-greylist is a stand-alone milter written in C that implements the greylist filtering method, as proposed by Evan Harris. . Greylisting works by assuming that unlike legitimate MTA, spam engines will not retry sending their junk mail on a temporary error. The filter will always temporarily reject mail on a first attempt, and to accept it after some time has elapsed. . If spammers ever try to resend rejected messages, we can assume they will not stay idle between the two sends (if they do, the spam problem would just be solved). Odds are good that the spammer will send a mail to an honey pot address and get blacklisted in several real-time distributed black list before the second attempt. debian/source/0000775000000000000000000000000012366131474010477 5ustar debian/source/format0000664000000000000000000000001411350033520011666 0ustar 3.0 (quilt) debian/watch0000664000000000000000000000017611347433421010227 0ustar # Compulsory line, this is a version 3 file version=3 http://ftp.espci.fr/pub/milter-greylist/milter-greylist-([\d\.]+).tgz debian/milter-greylist.docs0000664000000000000000000000000711347433422013176 0ustar README debian/README.Debian0000664000000000000000000000132011347433421011227 0ustar milter-greylist for Debian -------------------------- To use this milter you'll have to enable it in /etc/default/milter-greylist and start it through init.d. Then you'll have to add the following lines into your /etc/mail/sendmail.mc: FEATURE(`milter-greylist')dnl and define(`confINPUT_MAIL_FILTERS', `greylist')dnl or define(`confINPUT_MAIL_FILTERS', `greylist,clamav,spamassassin')dnl now run sendmailconfig. Afterwards you'll have to tune the milter with /etc/milter-greylist/greylist.conf The defaultconfig is to do nothing, pleaaaaase add your MX-servers and Mail- forwarding Hosts to the whitelist, else you put more load on them. -- Cord Beermann Sat, 30 Dec 2006 16:17:08 +0100 debian/postrm0000664000000000000000000000447511347433421010453 0ustar #!/bin/sh # postrm script for milter-greylist # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in purge|remove|abort-install|disappear) # find first and last SYSTEM_UID numbers for LINE in `grep SYSTEM_UID /etc/adduser.conf | grep -v "^#"` do case $LINE in FIRST_SYSTEM_UID*) FIRST_SYSTEM_UID=`echo $LINE | cut -f2 -d '='` ;; LAST_SYSTEM_UID*) LAST_SYSTEM_UID=`echo $LINE | cut -f2 -d '='` ;; *) ;; esac done # Remove system account if necessary CREATEDUSER="greylist" if [ -n "$FIRST_SYSTEM_UID" ] && [ -n "$LAST_SYSTEM_UID" ] then if USERID=`getent passwd $CREATEDUSER | cut -f 3 -d ':'` then if [ -n "$USERID" ] then if [ "$FIRST_SYSTEM_UID" -le "$USERID" ] && [ "$USERID" -le "$LAST_SYSTEM_UID" ] then echo -n "Removing $CREATEDUSER system user.." deluser --quiet $CREATEDUSER || true echo "..done" fi fi fi fi # Remove system group if necessary CREATEDGROUP="greylist" FIRST_USER_GID=`grep ^USERS_GID /etc/adduser.conf | cut -f2 -d '='` if [ -n "$FIRST_USER_GID" ] then if GROUPGID=`getent group $CREATEDGROUP | cut -f 3 -d ':'` then if [ -n "$GROUPGID" ] then if [ "$FIRST_USER_GID" -gt "$GROUPGID" ] then echo -n "Removing $CREATEDGROUP group.." delgroup --only-if-empty $CREATEDGROUP || true echo "..done" fi fi fi fi ;; upgrade|failed-upgrade|abort-upgrade) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/NEWS0000664000000000000000000000052611347433422007675 0ustar milter-greylist (4.1.7-1) experimental; urgency=low Please note that the format of the greylist.conf has changed in this version. Whilst the format of previous versions is understood, it is deprecated. See the "BACKWARD COMPATIBILITY" section of greylist.conf(5). -- Paul Martin Sun, 23 Nov 2008 17:57:09 +0000 debian/milter-greylist.default0000664000000000000000000000070611347433421013677 0ustar # Defaults for milter-greylist initscript # sourced by /etc/init.d/milter-greylist # installed at /etc/default/milter-greylist by the maintainer scripts # 2006-08-18 Herbert Straub # Change to one to enable milter-greylist # Don't forget to edit the configuration file # /etc/milter-greylist/greylist.conf ENABLED=0 # PIDFILE="/var/run/milter-greylist.pid" # SOCKET="/var/run/milter-greylist/greylist.sock" # USER="root" # Other options # OPTIONS="" debian/postinst0000664000000000000000000000177611347433421011013 0ustar #!/bin/sh # postinst script for milter-greylist # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in configure) chown greylist:greylist /var/lib/milter-greylist ;; abort-upgrade|abort-remove|abort-deconfigure|upgrade) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/preinst0000664000000000000000000000437511347433421010612 0ustar #!/bin/sh # preinst script for milter-greylist # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `install' # * `install' # * `upgrade' # * `abort-upgrade' # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in install) SERVER_HOME=/var/lib/milter-greylist SERVER_USER=greylist SERVER_NAME="Greylist Milter" SERVER_GROUP=greylist # create user to avoid running server as root # 1. create group if not existing if ! getent group | grep -q "^$SERVER_GROUP:" ; then echo -n "Adding group $SERVER_GROUP.." addgroup --quiet --system $SERVER_GROUP 2>/dev/null ||true echo "..done" fi # 2. create homedir if not existing test -d $SERVER_HOME || mkdir $SERVER_HOME # 3. create user if not existing if ! getent passwd | grep -q "^$SERVER_USER:"; then echo -n "Adding system user $SERVER_USER.." adduser --quiet \ --system \ --ingroup $SERVER_GROUP \ --no-create-home \ --disabled-password \ $SERVER_USER 2>/dev/null || true echo "..done" fi # 4. adjust passwd entry usermod -c "$SERVER_NAME" \ -d $SERVER_HOME \ -g $SERVER_GROUP \ $SERVER_USER # 5. adjust file and directory permissions if ! dpkg-statoverride --list $SERVER_HOME >/dev/null then chown -R $SERVER_USER:adm $SERVER_HOME chmod u=rwx,g=rxs,o= $SERVER_HOME fi # 6. Add the user to the ADDGROUP group if test -n $ADDGROUP then if ! groups $SERVER_USER | cut -d: -f2 | \ grep -qw $SERVER_GROUP; then adduser $SERVER_USER $SERVER_GROUP fi fi ;; abort-upgrade|upgrade) ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0