delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/17/04:57:48

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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: <00cb01c3948c$b118f140$657ba8c0@neth.hp.com>
From: "Frank Slootweg" <franks_cygwin AT yahoo DOT com>
To: <cygwin AT cygwin DOT com>
References: <00be01c393c0$869213b0$647ba8c0 AT neth DOT hp DOT com> <20031016115054 DOT GH28997 AT cygbert DOT vinschen DOT de> <021e01c3940b$9ef6c770$647ba8c0 AT neth DOT hp DOT com>
Subject: Re: ssmtp 2.38.7-4 reads headers from message body.
Date: Fri, 17 Oct 2003 10:57:27 +0200
MIME-Version: 1.0
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

Yesterday, I wrote:

>   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.

  Well, things *are* worse. Apparently ssmtp uses From: *and* To: from
the body, but just not the way I thought.

  I did another test with four addresses, From: and To: in the header
(FH and TH) and From: and To: in the body (FB and TB). ssmtp uses them
as follows (when using the "-t" option):

FH: OK, mail is sent with this From: address.
TH: OK, mail is sent to   this To:   address.

FB: Wrong, this address is set in a Return-Path: header (with uppercase
downcased).
TB: Wrong, mail is *also* sent to this address and shown in an
Apparently-To: header.

  I hope we all agree that processing FB and TB is totally wrong. The
body should not be interpreted in any way and mailing to TB is pretty
annoying and potentially dangerous and mailing with a Return-Path: set
to FB is misrepresenting the real sender.

  In hindsight, I probably agree with Felix van Hove that "-t" is not
supported, because while ssmtp does not complain about "-t", it says
this when using "-ba":

> /usr/sbin/ssmtp: -ba is not supported by sSMTP sendmail, nor is -t.

  OTOH, I also tried to use
"-F"Frank Slootweg" -ffranks_cygwin AT yahoo DOT com franks_cygwin AT yahoo DOT com"
instead of "-t". That works a little better because it does not send the
message to TB, but it still sets FB in a Return-Path: header, which is
really wrong.

  When using "-d9" (debugging) you can see that ssmtp says "Read
Header:" when reading the *body* (both with "-t" and with "-F... -f...
address").

  Does anybody have some other suggestions? Another tool which can do
the same job (i.e. read From:, To:, Subject: (and possibly Cc: and Bcc:)
only from the header part of the input file)?










--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019