It worked when I added the SUBJECT: and a blank line. but from https://www.ietf.org/rfc/rfc2822.txt 3.6. Field definitions The only required header fields are the origination date field and the originator address field(s). All other header fields are syntactically optional
why is a subject necessary, and particularly why is it saying the message I was trying to send is not RFC 2822 compliant -----Original Message----- From: Joerg Jung [mailto:[email protected]] Sent: Sunday, May 8, 2016 2:51 PM To: Peter Fraser <[email protected]> Cc: [email protected] Subject: Re: Message is not RFC 2822 compliant On Sun, May 08, 2016 at 06:44:40PM +0000, Peter Fraser wrote: > Testing out OpenSMTP on a test system appropriately call test I am > have a problem testing a message submitting from external system (the > sys is on the same lan) > > The tested smtpd.conf > > > listen on all > table aliases file:/etc/mail/aliases > accept from any for domain test.thinkage.ca alias <aliases> deliver to > mbox > > using that smtpd.conf on the system test > > > test:/var/spool/smtpd # echo hi there |sendmail -v > [email protected] echo hi there |sendmail -v [email protected] > <<< 220 test.thinkage.ca ESMTP OpenSMTPD > >>> EHLO localhost > <<< 250-test.thinkage.ca Hello localhost [local], pleased to meet you > <<< 250-8BITMIME <<< 250-ENHANCEDSTATUSCODES <<< 250-SIZE 36700160 <<< > 250 HELP > >>> MAIL FROM:<[email protected]> > <<< 250 2.0.0: Ok > >>> RCPT TO:<[email protected]> > <<< 250 2.1.5 Destination address valid: Recipient ok > >>> DATA > <<< 354 Enter mail, end with "." on a line by itself > >>> . > <<< 250 2.0.0: c8300cf0 Message accepted for delivery > >>> QUIT > <<< 221 2.0.0: Bye > > which works fine but > > using telnet (from a windows 10 system) I get the following > > telnet test.thinkage.ca 25 > 220 test.thinkage.ca ESMTP OpenSMTPD > EHLO whoops.thinkage.ca > 250-test.thinkage.ca Hello whoops.thinkage.ca [192.102.11.49], pleased > to meet you 250-8BITMIME 250-ENHANCEDSTATUSCODES 250-SIZE 36700160 > 250-DSN > 250 HELP > MAIL FROM:<[email protected]> > 250 2.0.0: Ok > RCPT TO:<[email protected]> > 250 2.1.5 Destination address valid: Recipient ok data > 354 Enter mail, end with "." on a line by itself test data . > 550 5.7.1 Delivery not authorized, message refused: Message is not RFC > 2822 compliant > > I realize that I am doing something stupid but what is it? try adding Subject: line after data followed by an empty newline followed by your test data > > -- > You received this mail because you are subscribed to > [email protected] To unsubscribe, send a mail to: > [email protected] > -- You received this mail because you are subscribed to [email protected] To unsubscribe, send a mail to: [email protected] -- You received this mail because you are subscribed to [email protected] To unsubscribe, send a mail to: [email protected]
