head	1.2;
access;
symbols
	pkgsrc-2026Q1:1.2.0.12
	pkgsrc-2026Q1-base:1.2
	pkgsrc-2025Q4:1.2.0.10
	pkgsrc-2025Q4-base:1.2
	pkgsrc-2025Q3:1.2.0.8
	pkgsrc-2025Q3-base:1.2
	pkgsrc-2025Q2:1.2.0.6
	pkgsrc-2025Q2-base:1.2
	pkgsrc-2025Q1:1.2.0.4
	pkgsrc-2025Q1-base:1.2
	pkgsrc-2024Q4:1.2.0.2
	pkgsrc-2024Q4-base:1.2
	pkgsrc-2024Q3:1.1.0.8
	pkgsrc-2024Q3-base:1.1
	pkgsrc-2024Q2:1.1.0.6
	pkgsrc-2024Q2-base:1.1
	pkgsrc-2024Q1:1.1.0.4
	pkgsrc-2024Q1-base:1.1
	pkgsrc-2023Q4:1.1.0.2
	pkgsrc-2023Q4-base:1.1;
locks; strict;
comment	@# @;


1.2
date	2024.10.11.06.48.04;	author nia;	state Exp;
branches;
next	1.1;
commitid	ctOIPvjIOr51adtF;

1.1
date	2023.12.05.17.36.16;	author schmonz;	state Exp;
branches;
next	;
commitid	XotphIyZiB6dKiPE;


desc
@@


1.2
log
@smtp-delay: Link socket libraries on SunOS
@
text
@# $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
HOMEPAGE=		https://www.lewis.org/~jlewis/smtp-delay/
COMMENT=		Introduce SMTP banner delays for qmail
LICENSE=		gnu-gpl-v2

WRKSRC=			${WRKDIR}

INSTALLATION_DIRS=	bin

LDFLAGS.SunOS+=		-lsocket -lnsl

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


1.1
log
@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.
@
text
@d1 1
a1 1
# $NetBSD$
d19 2
@

