| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
| To: | cygwin AT cygwin DOT com |
| From: | Robert R Schneck-McConnell <schneck AT math DOT berkeley DOT 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 DOT 203691F0-ON80256FCB DOT 00391238-80256FCB DOT 003B4AAF AT transport DOT alstom DOT com> |
| 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |