aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-10-18 02:04:43 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-10-18 02:04:43 +0000
commite1676c1d63bc5b5070c599357a7968b6ae5935e7 (patch)
treef682505aa45c4fc3e77c01fabe603c8f3ba6c14b /sink.c
parentfd667f1fcab53118d8df33af33d532cdfe6d7817 (diff)
downloadfetchmail-e1676c1d63bc5b5070c599357a7968b6ae5935e7.tar.gz
fetchmail-e1676c1d63bc5b5070c599357a7968b6ae5935e7.tar.bz2
fetchmail-e1676c1d63bc5b5070c599357a7968b6ae5935e7.zip
This is the antispam patch I sent Wolfgang Rupprecht.
svn path=/trunk/; revision=2106
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 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);
}
}