aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-12-12 04:10:56 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-12-12 04:10:56 +0000
commitc4432b4997d1819dbfd289ba42050e20927bde08 (patch)
treeee783faef2c11861e8b0361a9c5839100063451b /sink.c
parent6113a3f6da6b0fc667c9f56b99ad5c6419947b1c (diff)
downloadfetchmail-c4432b4997d1819dbfd289ba42050e20927bde08.tar.gz
fetchmail-c4432b4997d1819dbfd289ba42050e20927bde08.tar.bz2
fetchmail-c4432b4997d1819dbfd289ba42050e20927bde08.zip
Spambounce patch.
svn path=/trunk/; revision=2998
Diffstat (limited to 'sink.c')
-rw-r--r--sink.c11
1 files changed, 9 insertions, 2 deletions
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);