jeff@swan.ulowell.edu (Jeff deRienzo) (01/24/89)
Were running OS4.0 on a 386i. Sendmail appears to be adding ^M to the end of each line of mail messages. When we send mail to other bsd unix systems this doesn't matter since they strip the ^Ms. However, when we send to other systems (like sysV unix) which don't strip ^Ms, every line of the message has a ^M. Our sendmail is invoked by /etc/rc as /usr/lib/sendmail -bd -q1h I've also tried /usr/lib/sendmail -bd -ba -q1h with exactly the same results. Anyone else seen this? Is sendmail the one who's adding the ^Ms? Cures? Advance thanks, Jeff deRienzo The MathWorks, Inc. matlab!jeff@swan.ulowell.edu
jas@monk.proteon.com (John A. Shriver) (02/01/89)
There SHOULD be a ^M at the end of every line in the SMTP data stream. The sysV host is hosed. SMTP (RFC 821) clearly defines that every line of the SMTP transaction protocol ends with a <CRLF> (^M^J, \r\n). (While RFC 821 never absolutely says that the text lines after the DATA command end with <CRLF>, to interpret it any other way would be perverse.) This is consistent with the NVT model in the Telnet (RFC 854) protocol. The UNIX-centric failure to put <CRLF> where <CRLF> belongs was a consistent problem with the 4.2bsd networking code, one that was preserved by many vendors when porting it their systems. This probably happend on your sysV system. If the sysV machine uses sendmail, there may be some adjustments that can be made to the M command line in the sendmail.cf file. The E= argument for any SMTP mailer should be E=\r\n, to tell the mailer to use <CRLF>. You may also want to look at other sendmail.cf files, and make sure all your machines are SMTP conformant.