diff options
| author | manuel <manuel@mausz.at> | 2013-02-04 03:12:01 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2013-02-04 03:12:01 +0100 |
| commit | 257d264568df9e2acab0cec0c89cecbc52435d65 (patch) | |
| tree | 97988b51f83b70d00d0923b239c641763ba21183 /qmail-remote.c | |
| parent | 4303fe45e41a4ebc5c068790cb08b6d8d1eb115e (diff) | |
| download | qmail-257d264568df9e2acab0cec0c89cecbc52435d65.tar.gz qmail-257d264568df9e2acab0cec0c89cecbc52435d65.tar.bz2 qmail-257d264568df9e2acab0cec0c89cecbc52435d65.zip | |
[PATCH] qmail-1.03-accept-5xx
Diffstat (limited to 'qmail-remote.c')
| -rw-r--r-- | qmail-remote.c | 8 |
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 | } |
