Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
From: Robert R Schneck-McConnell <schneck@math.berkeley.edu>
Subject:  Re: Using ssmtp to send email as a different user (-f doesn't seem to be working)
Date: Sat, 26 Mar 2005 04:59:31 +0000 (UTC)
Lines: 24
Message-ID: <d22q7i$s7v$1@sea.gmane.org>
References:  <OF546D9605.203691F0-ON80256FCB.00391238-80256FCB.003B4AAF@transport.alstom.com>
X-Complaints-To: usenet@sea.gmane.org
X-Gmane-NNTP-Posting-Host: ppp-086054.lou.cstone.net
User-Agent: slrn/0.9.8.0 (CYGWIN_NT-5.1)
X-Gmane-MailScanner: Found to be clean
X-Gmane-MailScanner: Found to be clean
X-MailScanner-From: goc-cygwin@m.gmane.org
X-MailScanner-To: cygwin@cygwin.com
X-IsSubscribed: yes

thomas revell wrote:
> Apologies if I'm missing something really obvious here, but I can't seem 
> to get ssmtp to use the -f option, to change the address to send from. My 
> situation is like this:

From a glance at the code without any real testing, it looks like it 
changes the From: header correctly, but doesn't give the right "MAIL 
FROM:" in the smtp communication.

Try downloading the source, changing the line in ssmtp.c 
        smtp_write(sock, "MAIL FROM:<%s>", uad);
to
        smtp_write(sock, "MAIL FROM:<%s>", from);
and see if that does the trick.

Note that this isn't really a Cygwin issue, you should probably submit 
further questions upstream at 
http://packages.debian.org/testing/mail/ssmtp

Someday I'll try to update the Cygwin package, by the way; but I've been 
very busy, so if anyone else is keen to maintain ssmtp, they are welcome 
to it.

Robert


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

