X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Fri, 09 Nov 2007 17:28:28 -0500
From: "Pierre A. Humblet" <Pierre.Humblet@ieee.org>
Subject: Re: from address of cron emails
To: <cygwin@cygwin.com>
Message-id: <059001c8231f$dcf10340$b40410ac@wirelessworld.airvananet.com>
MIME-version: 1.0
X-Mailer: Microsoft Outlook Express 6.00.2900.3138
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7bit
References: <002601c822e9$ef9edf70$6901a8c0@Clarifica.local>  <057501c822fd$decbd630$b40410ac@wirelessworld.airvananet.com>  <005601c82315$a2dd5a00$6901a8c0@Clarifica.local>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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


----- Original Message ----- 
From: "Rob Siklos" <>
To: <cygwin>
Sent: Friday, November 09, 2007 4:15 PM
Subject: Re: from address of cron emails


| ----- Original Message ----- 
| From: "Pierre A. Humblet" <Pierre.Humblet@ieee.org>
| To: "Rob Siklos" <rrr@siklos.ca>; <cygwin@cygwin.com>
| Sent: Friday, November 09, 2007 1:25 PM
| Subject: Re: from address of cron emails
|
|
| >
| > ----- Original Message ----- 
| > From: "Rob Siklos" <>
| > To: <cygwin>
| > Sent: Friday, November 09, 2007 11:02 AM
| > Subject: from address of cron emails
| >
| >
| > | Hi,
| > |
| > | I'm running cron through cygwin, using ssmtp.exe as the sendmail
| > | replacement.  It seems that none of cron's e-mails are getting through,
| > | because my SMTP server rejects "root (Cron Daemon)" as a valid From
| > address
| > | in the outgoing e-mail.
| > |
| > | Is there any way of changing this?
| >
| > Interesting. You are the first to mention this, so there is probably a
| > way.
| > Have you tried running ssmtp-config and setting FromLineOverride and/or
| > rewriteDomain?
| > FYI ssmtp is called with the following command line:
| > "-FCronDaemon -odi -oem -oi -t". I think ssmtp ignores all of them except
| > possibly -F
| > Still FYI, exim with the default conf file rewrites to
| > From: root@the.local.domain (Cron Daemon)
| >
| > If you find a solution, please let us know.
| >
| > Pierre
|
| Hi Pierre,
|
| My solution was to make /usr/sbin/sendmail look like this:
|
|  #!/bin/sh
|  ARGS=$@
|  sed -r -e 's/^From: root \(Cron Daemon\)\s*$/From:  Administrator@mydomain.com/' | 
/usr/sbin/ssmtp.exe $@
|
| It's a total hack, but it works.
|
| I have FromLineOverride set to Yes, but I need it to be this way, so I
| didn't try changing it.  My SMTP server is a local IIS SMTP server - it
| doesn't appear to rewrite the domain the way exim might.  BTW, ssmtp doesn't
| ignore "-t" or "-oi".

Thanks. What does your SMTP server object to:
- the format with the ( ) ?
- the fact that root is not a Windows user ?
- the fact that there is no domain?

Pierre


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

