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 To: cygwin AT cygwin DOT com From: Robert R Schneck-McConnell 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: References: X-Complaints-To: usenet AT sea DOT gmane DOT 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 AT m DOT gmane DOT org X-MailScanner-To: cygwin AT cygwin DOT 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/