Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <021e01c3940b$9ef6c770$647ba8c0@neth.hp.com> From: "Frank Slootweg" To: References: <00be01c393c0$869213b0$647ba8c0 AT neth DOT hp DOT com> <20031016115054 DOT GH28997 AT cygbert DOT vinschen DOT de> Subject: Re: ssmtp 2.38.7-4 reads headers from message body. Date: Thu, 16 Oct 2003 19:33:32 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal x-mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Antivirus: avast! (VPS 13/10/2003), Outbound message X-Antivirus-Status: Clean [I hope this reply is threaded correctly. The digest version of this list does not preserve References: etc.. I got a copy of your message from the archive and used ssmtp :-) to send it to myself (in OE).] Corinna Vinschen corinna-cygwin AT cygwin DOT com wrote: > On Thu, Oct 16, 2003 at 10:35:59AM +0200, Frank Slootweg wrote: > > [This is my first posting to this list. I hope the format is OK.] > > > > I am trying to use ssmtp (2.38.7-4) as my 'mailer' in tin, the > > newsreader. tin invokes ssmtp as > > > > /usr/sbin/ssmtp -t < %F > > > > where %F is a file which contains the header (lines), a blank line > > (only \r\n) and body. > > > > I have found that apparently ssmtp keeps reading 'header' lines > > (like From:, etc.) *after* it has read the full header, i.e. it also > > reads 'header' lines from the *body* of the message. For example it > > will fail (on the "From: Frank Slootweg " > > line in the *body*) with the below input file. > > More input. What means "fail"? What is ssmtp doing with the mail? > Reading too much doesn't sound very desctructive to me. Sorry for not being clearer. With the example, ssmtp failed, i.e. it did not send a message. It should not have failed, but it failed because it used the (second) From: line from the *body*, and that From: line was invalid ("From: Frank Slootweg ". It *should* have sent the message to the From: line in the *header* ("From: Frank Slootweg "). The failure message was: > /usr/sbin/ssmtp: smtp server didn't accept RCPT To: command, replied > "450 : Sender address rejected: Domain not found". (I don't know why the failure message says "RCPT To:" instead of "From:".) Of course ssmtp should only use the From: line from the header, not from the body. Suppose the body contained for example "From: George DOT Bush AT whitehouse DOT gov". We would not want the message to be sent with that From: line, do we? :-) I did some more testing and found that ssmtp does apparently *not* use the To: line from the body. That would of course be even worse. I hope this explains the problem better. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/