aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
diff options
context:
space:
mode:
Diffstat (limited to 'sink.c')
-rw-r--r--sink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sink.c b/sink.c
index c4a26f6b..274729e9 100644
--- a/sink.c
+++ b/sink.c
@@ -539,7 +539,8 @@ static int handle_smtp_report(struct query *ctl, struct msgblk *msg)
/* bounce non-transient errors back to the sender */
if (smtperr >= 500 && smtperr <= 599)
{
- send_bouncemail(ctl, msg, XMIT_ACCEPT,
+ if (run.bouncemail)
+ send_bouncemail(ctl, msg, XMIT_ACCEPT,
"General SMTP/ESMTP error.\r\n",
1, responses);
free(responses[0]);