From c4432b4997d1819dbfd289ba42050e20927bde08 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 12 Dec 2000 04:10:56 +0000 Subject: Spambounce patch. svn path=/trunk/; revision=2998 --- sink.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'sink.c') diff --git a/sink.c b/sink.c index 11df1871..2b1b36ac 100644 --- a/sink.c +++ b/sink.c @@ -413,7 +413,13 @@ static int handle_smtp_report(struct query *ctl, struct msgblk *msg) * coming from this address, probably due to an * anti-spam domain exclusion. Respect this. Don't * try to ship the message, and don't prevent it from - * being deleted. Default values: + * being deleted. There's no point in bouncing the + * email either since most spammers don't put their + * real return email address anywhere in the headers + * (unless the user insists with the SET SPAMBOUNCE + * config option). + * + * Default values: * * 571 = sendmail's "unsolicited email refused" * 550 = exim's new antispam response (temporary) @@ -421,7 +427,8 @@ static int handle_smtp_report(struct query *ctl, struct msgblk *msg) * 554 = Postfix antispam response. * */ - send_bouncemail(ctl, msg, XMIT_ACCEPT, + if (run.spambounce) + send_bouncemail(ctl, msg, XMIT_ACCEPT, "Our spam filter rejected this transaction.\r\n", 1, responses); return(PS_REFUSED); -- cgit v1.2.3