aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sink.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/sink.c b/sink.c
index 8ef27fb6..d8c8e8d9 100644
--- a/sink.c
+++ b/sink.c
@@ -393,9 +393,19 @@ static int handle_smtp_report(struct query *ctl, struct msgblk *msg)
*
*/
if (run.spambounce)
+ {
+ char rejmsg[160];
+#ifdef HAVE_SNPRINTF
+ snprintf(rejmsg, sizeof(rejmsg),
+#else
+ sprintf(rejmsg,
+#endif /* HAVE_SNPRINTF */
+ "spam filter or virus scanner rejected message because:\r\n"
+ "%s\r\n", responses[0]);
+
send_bouncemail(ctl, msg, XMIT_ACCEPT,
- "Our spam filter rejected this transaction.\r\n",
- 1, responses);
+ rejmsg, 1, responses);
+ }
return(PS_REFUSED);
}