16 Aug 2002 16:56
Re: Odd registrar behaviour
Adrian Ho <aho-djb-qmail <at> 03s.net>
2002-08-16 14:56:38 GMT
2002-08-16 14:56:38 GMT
On Fri, Aug 16, 2002 at 04:03:30PM +0800, Lars Hansson wrote:
> > I'll post the final corrected patch /after/ I've tested it myself.
OK, the final corrected version is appended. Apologies for all
inconvenience caused.
> On a related note, anyone knows how to make it work with the TLS patches?
> (Vermeulen's patches)
Frederik Vermeulen certainly would.
--- qmail-1.03/qmail-remote.c.orig Mon Jun 15 18:53:16 1998
+++ qmail-1.03/qmail-remote.c Tue Aug 6 22:43:12 2002
<at> <at> -222,13 +222,17 <at> <at>
int flagbother;
int i;
- if (smtpcode() != 220) quit("ZConnected to "," but greeting failed");
+ code = smtpcode();
+ if (code >= 500) quit("DConnected to "," but greeting failed");
+ if (code != 220) quit("ZConnected to "," but greeting failed");
substdio_puts(&smtpto,"HELO ");
substdio_put(&smtpto,helohost.s,helohost.len);
substdio_puts(&smtpto,"\r\n");
substdio_flush(&smtpto);
- if (smtpcode() != 250) quit("ZConnected to "," but my name was rejected");
+ code = smtpcode();
+ if (code >= 500) quit("DConnected to "," but my name was rejected");
+ if (code != 250) quit("ZConnected to "," but my name was rejected");
substdio_puts(&smtpto,"MAIL FROM:<");
substdio_put(&smtpto,sender.s,sender.len);
--
--
Adrian Ho Tinker, Drifter, Fixer, Bum aho-djb-qmail <at> 03s.net
ListArchive: <http://marc.theaimsgroup.com/?l=qmail>
Useful URLs: <http://cr.yp.to/qmail.html> <http://www.qmail.org>
<http://www.lifewithqmail.org/> <http://qmail.faqts.com/>
RSS Feed