aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
diff options
context:
space:
mode:
Diffstat (limited to 'sink.c')
-rw-r--r--sink.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sink.c b/sink.c
index c7e476b6..e6fcfcde 100644
--- a/sink.c
+++ b/sink.c
@@ -826,8 +826,13 @@ int close_sink(struct query *ctl, struct msgblk *msg, flag forward)
/* write message terminator */
if (SMTP_eom(ctl->smtp_socket) != SM_OK)
{
- error(0, -1, _("SMTP listener refused delivery"));
- return(FALSE);
+ if (handle_smtp_error(ctl, msg) != PS_REFUSED)
+ return(FALSE);
+ else
+ {
+ error(0, -1, _("SMTP listener refused delivery"));
+ return(TRUE);
+ }
}
/*