home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / mail / sendmail / 2813 < prev    next >
Encoding:
Text File  |  1992-11-17  |  3.8 KB  |  113 lines

  1. Newsgroups: comp.mail.sendmail
  2. Path: sparky!uunet!gumby!wupost!tulane!rouge!jpd
  3. From: jpd@ucs.usl.edu (Dugal James P.)
  4. Subject: UIUC/IDA sendmail 565c bug + FIX
  5. Message-ID: <1992Nov17.234000.14505@usl.edu>
  6. Sender: anon@usl.edu (Anonymous NNTP Posting)
  7. Organization: Univ. of Southwestern La., Lafayette
  8. Date: Tue, 17 Nov 1992 23:40:00 GMT
  9. Lines: 102
  10.  
  11. Here is a smtp trace from the KA9Q program, sending mail to a SunOS system
  12. running sendmail 5.65c.  Note that the second MAIL FROM is lost (or more
  13. properly, received out-of-order) by sendmail, resulting in a 503 error.
  14. The KA9Q option SMTP BATCH was set on, which causes the HELO, MAIL FROM,
  15. RCPT TO, and DATA commands to be sent in one transmission.
  16.  
  17. Connected
  18. smtp sent: HELO smh323.ucs.usl.edu
  19. smtp sent: MAIL FROM:<jpd@smh323.ucs.usl.edu>
  20. smtp sent: RCPT TO:<jpd@ucs.usl.edu>
  21. smtp sent: DATA
  22. smtp recv: 220 armagnac.ucs.usl.edu 5.65c/IDA-1.4.4 Sendmail is ready at Tue, 17
  23.  Nov 1992 14:02:51 -0600
  24. smtp recv: 250 Hello smh323.ucs.usl.edu, pleased to meet you
  25. smtp recv: 250 <jpd@smh323.ucs.usl.edu>... Sender ok
  26. smtp recv: 250 <jpd@ucs.usl.edu>... Recipient ok
  27. smtp recv: 354 Enter mail, end with "." on a line by itself
  28. smtp sent: .
  29. smtp recv: 250 Ok
  30. sending job 45
  31. smtp sent: MAIL FROM:<jpd@smh323.ucs.usl.edu>
  32. smtp sent: RCPT TO:<jpd@ucs.usl.edu>
  33. smtp sent: DATA
  34. smtp recv: 250 <jpd@ucs.usl.edu>... Recipient ok
  35. smtp recv: 503 Need valid MAIL command
  36. smtp recv: 250 <jpd@smh323.ucs.usl.edu>... Sender ok
  37. smtp sent: .
  38. smtp sent: QUIT
  39. smtp job /spool/mqueue/45.wrk returned to sender
  40.  
  41. ===================================================================
  42.  
  43. Here is another trace from the KA9Q program, this time with the SMTP
  44. BATCH option set to no, ie, lock-step mode.
  45.  
  46. Connected
  47. smtp sent: HELO smh323.ucs.usl.edu
  48. smtp sent: MAIL FROM:<jpd@smh323.ucs.usl.edu>
  49. smtp sent: RCPT TO:<jpd@ucs.usl.edu>
  50. smtp sent: DATA
  51. smtp recv: 354 Enter mail, end with "." on a line by itself
  52. smtp sent: .
  53. smtp recv: 250 Ok
  54. sending job 39
  55. smtp sent: MAIL FROM:<jpd@smh323.ucs.usl.edu>
  56. smtp recv: 250 <jpd@smh323.ucs.usl.edu>... Sender ok
  57. smtp sent: RCPT TO:<jpd@ucs.usl.edu>
  58. smtp recv: 250 <jpd@ucs.usl.edu>... Recipient ok
  59. smtp sent: DATA
  60. smtp recv: 354 Enter mail, end with "." on a line by itself
  61. smtp sent: .
  62. smtp recv: 250 Ok
  63. sending job 41
  64. smtp sent: MAIL FROM:<jpd@smh323.ucs.usl.edu>
  65. smtp recv: 250 <jpd@smh323.ucs.usl.edu>... Sender ok
  66. smtp sent: RCPT TO:<jpd@ucs.usl.edu>
  67. smtp recv: 250 <jpd@ucs.usl.edu>... Recipient ok
  68. smtp sent: DATA
  69. smtp recv: 354 Enter mail, end with "." on a line by itself
  70. smtp sent: .
  71. smtp recv: 250 Ok
  72. smtp sent: QUIT
  73.  
  74. ===================================================================
  75.  
  76. I have looked at the srvrsmtp.c source, and found that when I changed it
  77. to NOT spawn a child process in reponse to the MAIL FROM command, my
  78. problem went away.  Here's a diff:
  79.  
  80. *** srvrsmtp.c.orig    Mon Jun 24 15:27:31 1991
  81. --- srvrsmtp.c    Tue Nov 17 13:31:18 1992
  82. ***************
  83. *** 267,275 ****
  84. --- 277,288 ----
  85.                   exit(0);
  86.               }
  87.   
  88. + #ifdef notdef
  89. + /* ka9q smtp batch fails for 2nd MAIL in a connection */
  90.               /* fork a subprocess to process this command */
  91.               if (runinchild("SMTP-MAIL") > 0)
  92.                   break;
  93. + #endif
  94.               define('s', sendinghost, CurEnv);
  95.               define('r', "SMTP", CurEnv);
  96.               initsys();
  97. ===============================================
  98.  
  99. Is there a more elegant fix, or at least a diagnosis of what's
  100. happening and why this fixes the problem?
  101.  
  102. -- James Dugal,    N5KNX        Internet: jpd@usl.edu
  103. Associate Director        Ham packet: n5knx @k5arh (land), UO-22 (sat.)
  104. Computing Center        US Mail: PO Box 42770  Lafayette, LA  70504
  105. University of Southwestern LA.    Tel. 318-231-6417    U.S.A.
  106.  
  107.  
  108. -- 
  109. -- James Dugal,    N5KNX        Internet: jpd@usl.edu
  110. Associate Director        Ham packet: n5knx @k5arh (land), UO-22 (sat.)
  111. Computing Center        US Mail: PO Box 42770  Lafayette, LA  70504
  112. University of Southwestern LA.    Tel. 318-231-6417    U.S.A.
  113.