summaryrefslogtreecommitdiffstats
path: root/qmail-remote.c
diff options
context:
space:
mode:
Diffstat (limited to 'qmail-remote.c')
-rw-r--r--qmail-remote.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/qmail-remote.c b/qmail-remote.c
index 4161a7b..49bd5c4 100644
--- a/qmail-remote.c
+++ b/qmail-remote.c
@@ -568,7 +568,9 @@ void smtp()
568 if (!smtps) 568 if (!smtps)
569#endif 569#endif
570 570
571 if (smtpcode() != 220) quit("ZConnected to "," but greeting failed"); 571 code = smtpcode();
572 if (code >= 500) quit("DConnected to "," but greeting failed");
573 if (code != 220) quit("ZConnected to "," but greeting failed");
572 574
573#ifdef EHLO 575#ifdef EHLO
574# ifdef TLS 576# ifdef TLS
@@ -595,7 +597,9 @@ void smtp()
595 substdio_put(&smtpto,helohost.s,helohost.len); 597 substdio_put(&smtpto,helohost.s,helohost.len);
596 substdio_puts(&smtpto,"\r\n"); 598 substdio_puts(&smtpto,"\r\n");
597 substdio_flush(&smtpto); 599 substdio_flush(&smtpto);
598 if (smtpcode() != 250) quit("ZConnected to "," but my name was rejected"); 600 code = smtpcode();
601 if (code >= 500) quit("DConnected to "," but my name was rejected");
602 if (code != 250) quit("ZConnected to "," but my name was rejected");
599 603
600#ifdef EHLO 604#ifdef EHLO
601 } 605 }