Your sendmail based script worked. But, sendmail is a symbolic link to
/usr/sbin/ssmtp.exe in cygwin. Ssmtp.exe requires a configuration file
/etc/ssmtp/ssmtp.conf, which should contain username, hostname and mail
server name with fully qualified domain name.
Thanks a lot for timely help. Smartd is up and running. Really smart...
From: Christian Franke [mailto:Christian.Franke@...
Sent: Tuesday, February 01, 2005 12:31 AM
To: Jitesh N. Verma
Subject: Re: [smartmontools-support]smartd problems on Cygwin
>Thanks for responding fast and for providing useful information.
>The first three problems are resolved by creating a new smartd.conf
>with vi editor. Windows editors (WordPad) seem to introduce parsing
>problems on Cygwin.
WordPad can be used for editing an existing smartd.conf file. When=20
creating a new file, be sure to select Textfile format, otherwise=20
WordPad will default to RTF.
>FYI, I am not using pre-compiled smartd binary.
I think there isn't any pre-compiled 5.33 out there ;-)
>Instead I downloaded the
>source tarball and compiled it on my version of cygwin
>(1.3.22-dontuse-21) running on Windows-2000/2003.
OK, that's a relative old cygwin release I never tested.
>The fourth problem regarding mail still persists. I am using
>version 1.3.22-dontuse-21. This version of cygwin does not have
>/usr/bin/email. I did not find it anywhere in the directory tree. Do I
>need to download "email" from the web and install it under /usr/bin
For current (~1.5.12) cygwin releases, package "email" is available on=20
each cygwin mirror (e.g.=20
not installed by setup.exe's default settings.
Suggest to use cygwin's setup to install this package. But you probably=20
have to upgrade at least cygwin1.dll to run this.
>However, Cygwin-1.3.22-dontuse-21 contains the following
dmail,tmail,mailutil,procmail,formail are for local mail delivery &=20
fetchmail is for retrieving mail from e.g. pop3 servers.
sendmail may be used if properly configured, which may be somewhere in=20
the interval [not trivial, nightmare;-]
You need to prepare a wrapper script thats prepends stdin with a minimal
This may work or not (aka "not tested"):
s=3D"$2"; shift; shift
echo "Subject: $s"
echo "From: sender.name@..."
) | /usr/sbin/sendmail $*
This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized use; review, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by return email and destroy all copies of the original message.
Copyright 2004 MaXXan Systems, Inc. All rights reserved.