aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sink.c b/sink.c
index e9d445ce..8b372d36 100644
--- a/sink.c
+++ b/sink.c
@@ -563,7 +563,8 @@ int open_sink(struct query *ctl,
if (SMTP_rcpt(ctl->smtp_socket, addr) != SM_OK)
{
error(0, 0, "can't even send to %s!", run.postmaster);
- return(PS_SMTP);
+ SMTP_rset(ctl->smtp_socket); /* required by RFC1870 */
+ return(PS_REFUSED);
}
}