[JDEV] Patch for smtp transport

Kevin Smathers ks at micky.hpl.hp.com
Tue Nov 20 12:06:01 CST 2001


Hi all,

The SMTP gateway (cvs co smtp) at the top of the trunk insists on a
'250' reply from the mail server after sending QUIT, but sendmail
responds to QUIT with a '221' reply.

I've attached a patch that adds 221 as a valid reply.  (Actually
anything in the 200 range should probably be valid, but this patch
just enables 221.)

Cheers,
-kls


-- 
          //                               .--=,
 .....::://::::::::::::::::::::::::::::.. (o O &   kevin_smathers at hp.com
:::::::://:::://://://:/:://::||_//       / V  K   
 :::::://:::://:/:|//'/' // _,|'         r ,  'qk   
  :'''/____ // /  //  |_// // ||        .'~.  .~`, 
                                   kls   \_/-=\_/
-------------- next part --------------
? patch.out
Index: out.c
===================================================================
RCS file: /home/cvs/smtp/out.c,v
retrieving revision 1.5
diff -u -r1.5 out.c
--- out.c	2001/08/12 04:32:36	1.5
+++ out.c	2001/11/20 18:26:22
@@ -95,7 +95,7 @@
             s->lastcmd = CMD_QUIT; /* so we know where we are */
             return;
         case CMD_QUIT:
-            if(status != 250) break;
+            if(status != 250 && status != 221) break;
             smtp_cmd(s, CMD_QUIT, NULL);
             return;
     }


More information about the JDev mailing list