pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/mail/smtp-delay



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Tue Dec  5 17:36:16 UTC 2023

Added Files:
        pkgsrc/mail/smtp-delay: DESCR Makefile PLIST distinfo

Log Message:
Add smtp-delay: Introduce SMTP banner delays for qmail

This little number can be used to introduce smtp banner delays for
qmail. When run between tcpserver and rblsmtpd, it'll do a reverse
lookup of the connecting IP, compare that PTR to a regex, and then apply
long banner delays if there was no PTR or if the PTR matches the
"dialup" regex. The program depends on the fact that tcpserver will set
TCPREMOTEIP, and will take advantage of TCPREMOTEHOST if it's set. If
the client tries to pipeline (ram SMTP commands down our throat before
we show them an SMTP banner), RBLSMTPD is set, notifying rblsmtpd to
refuse their mail.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/mail/smtp-delay/DESCR \
    pkgsrc/mail/smtp-delay/Makefile pkgsrc/mail/smtp-delay/PLIST \
    pkgsrc/mail/smtp-delay/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/mail/smtp-delay/DESCR
diff -u /dev/null pkgsrc/mail/smtp-delay/DESCR:1.1
--- /dev/null   Tue Dec  5 17:36:16 2023
+++ pkgsrc/mail/smtp-delay/DESCR        Tue Dec  5 17:36:16 2023
@@ -0,0 +1,9 @@
+This little number can be used to introduce smtp banner delays for
+qmail. When run between tcpserver and rblsmtpd, it'll do a reverse
+lookup of the connecting IP, compare that PTR to a regex, and then apply
+long banner delays if there was no PTR or if the PTR matches the
+"dialup" regex. The program depends on the fact that tcpserver will set
+TCPREMOTEIP, and will take advantage of TCPREMOTEHOST if it's set. If
+the client tries to pipeline (ram SMTP commands down our throat before
+we show them an SMTP banner), RBLSMTPD is set, notifying rblsmtpd to
+refuse their mail.
Index: pkgsrc/mail/smtp-delay/Makefile
diff -u /dev/null pkgsrc/mail/smtp-delay/Makefile:1.1
--- /dev/null   Tue Dec  5 17:36:16 2023
+++ pkgsrc/mail/smtp-delay/Makefile     Tue Dec  5 17:36:16 2023
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2023/12/05 17:36:16 schmonz Exp $
+
+DISTNAME=              smtp-delay
+PKGNAME=               ${DISTNAME}-0.20
+CATEGORIES=            mail
+MASTER_SITES=          https://www.lewis.org/~jlewis/
+DIST_SUBDIR=           ${PKGNAME_NOREV}
+EXTRACT_SUFX=          .c
+
+MAINTAINER=            schmonz%NetBSD.org@localhost
+HOMEPAGE=              https://www.lewis.org/~jlewis/smtp-delay/
+COMMENT=               Introduce SMTP banner delays for qmail
+LICENSE=               gnu-gpl-v2
+
+WRKSRC=                        ${WRKDIR}
+
+INSTALLATION_DIRS=     bin
+
+do-build:
+       cd ${WRKSRC};   \
+       ${CC} ${CFLAGS} ${LDFLAGS} -o ${PKGBASE} ${PKGBASE}.c
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/${PKGBASE} ${DESTDIR}${PREFIX}/bin/
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/mail/smtp-delay/PLIST
diff -u /dev/null pkgsrc/mail/smtp-delay/PLIST:1.1
--- /dev/null   Tue Dec  5 17:36:16 2023
+++ pkgsrc/mail/smtp-delay/PLIST        Tue Dec  5 17:36:16 2023
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2023/12/05 17:36:16 schmonz Exp $
+bin/smtp-delay
Index: pkgsrc/mail/smtp-delay/distinfo
diff -u /dev/null pkgsrc/mail/smtp-delay/distinfo:1.1
--- /dev/null   Tue Dec  5 17:36:16 2023
+++ pkgsrc/mail/smtp-delay/distinfo     Tue Dec  5 17:36:16 2023
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2023/12/05 17:36:16 schmonz Exp $
+
+BLAKE2s (smtp-delay-0.20/smtp-delay.c) = 7e72d14cc3715e18caece85b2c47451e892a7547932ba8360f7d6e2fe991eaee
+SHA512 (smtp-delay-0.20/smtp-delay.c) = f8b9b0043f9eba7d68f693349a4c2f9c9bda9607cef1d6f24b7d0230410b0f499ad16922c9e81421271c234a6db3d5a4ff263a87c83b9e4a984e92f49aa5185d
+Size (smtp-delay-0.20/smtp-delay.c) = 14569 bytes



Home | Main Index | Thread Index | Old Index