AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20090429173404.1e150c82@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:mail.onstor.net
NSV:
SSH:
R:<brian.stark@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/andys@onstor.net@exch1.onstor.net/INBOX	0	102AB4F33EBBDB4C91915B145C8E9FB31284F9BD49@exch1.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Wed, 29 Apr 2009 17:35:11 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: Brian Stark <brian.stark@onstor.com>
Subject: Re: Hardware event script
Message-ID: <20090429173511.2e762bd3@ripper.onstor.net>
In-Reply-To: <102AB4F33EBBDB4C91915B145C8E9FB31284F9BD49@exch1.onstor.net>
References: <102AB4F33EBBDB4C91915B145C8E9FB31284F9BD49@exch1.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Wed, 29 Apr 2009 15:09:56 -0700 Brian Stark <brian.stark@onstor.com>
wrote:

> Andy,
> 

[snip]

> Feel free to make any modifications or improvements to the above.
> Let's also talk sometime soon about how to configure the
> perl-sendmail script.

No configuration needed.

It works so simple, even a caveman can do it.  Heck, maybe even a
marketing person.

mailx -s "subject" admin-weanie@yo-customer.com

mailx fires up sendmail to send the message.  Sendmail *is* the perl
script.  The perl script takes the "yo-customer.com" part and tries to
deliver it directly to that machine.  If that times out, it tries
mail.yo-customer.com.  If that times out, splat.  I estimate it will be
successful in about 90% - 95% of the customer installations.  If I could
add one thing to it, it would be to do a DNS lookup of the MX record for
yo-customer.com, and try that first, which would make it successful
something like 99% of the time.  Maybe I'll give that to the intern.
The intern that only exists in my mind.

mailx does not wait, the perl script operates in the background, just
like the real sendmail would.

Cheers,

a

