from address of cron emails
Fri Nov 9 21:38:00 GMT 2007
----- Original Message -----
From: "Pierre A. Humblet" <Pierre.Humblet@ieee.org>
To: "Rob Siklos" <firstname.lastname@example.org>; <email@example.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
> | 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
> Have you tried running ssmtp-config and setting FromLineOverride and/or
> 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: firstname.lastname@example.org (Cron Daemon)
> If you find a solution, please let us know.
My solution was to make /usr/sbin/sendmail look like this:
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".
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin