-------- Original-Nachricht -------- > Datum: Mon, 5 Apr 2010 15:51:38 -0400 (EDT) > Von: Charlie Brady <charlieb-qpsm...@budge.apana.org.au> > An: Steve <steeeeev...@gmx.net> > CC: qpsmtpd@perl.org > Betreff: Re: I am probably doing something wrong
> > On Mon, 5 Apr 2010, Steve wrote: > > >> On Apr 1, 2010, at 2:56, Steve wrote: > >> > >>> Hello list, > >>> > >>> somehow I don't get a new line separating the mail body from the mail > >> headers. How can I enforce a new line between header and body? > >>> > >>> I am using qpsmtp 0.83 and delivery to maildir. > >> > > Hallo Bjørn, > > > > > >> Can you give an example of the SMTP transaction (the input to the > server) > >> that gives the unexpected result? > >> > > I did a simple transaction over telnet and port 25: > > -------------- > > HELO localhost > > MAIL FROM:<f...@domain.tld> > > RCPT TO:<t...@domain.tld> > > DATA > > FROM:<f...@domain.tld> > > TO:<t...@domain.tld> > > SUBJECT: Just a test > > This is a test. > > . > > [just pressing ENTER here] > > RSET > > QUIT > > -------------- > > > > QPSMTPD does not separate the body from the header. Doing the same on a > > Postfix SMTPD adds a separate line between the header and the body. > > Your message is not a valid RFC 2822 message. > > http://www.faqs.org/rfcs/rfc2822.html > > Your message can only be interpreted as one with no body, and with one > invalid header "This is a test". > Yeah. You are right. > > I use the "maildir" queue plugin. I looked at the "maildir" plugin and > > it could use some additional code to add a empty line while writing the > > body. Should I modify that code to add that empty line? > > IMO no. Just use a valid message format in whatever you are using to > generate messages. > Okay. I was a little bit irritated because Postfix acted differently. But you are right. The format is not correct. > > Probably no one is going to it the way I have done it above. Probably > > most SMTPD servers out there would do it that way (see the new line > > after "SUBJECT"): > > -------------- > > HELO localhost > > MAIL FROM:<f...@domain.tld> > > RCPT TO:<t...@domain.tld> > > DATA > > FROM:<f...@domain.tld> > > TO:<t...@domain.tld> > > SUBJECT: Just a test > > > > This is a test. > > . > > [just pressing ENTER here] > > RSET > > QUIT > > -------------- > > > > > > > >> - ask > >> > > // Steve > > -- Sicherer, schneller und einfacher. Die aktuellen Internet-Browser - jetzt kostenlos herunterladen! http://portal.gmx.net/de/go/chbrowser