Notify-by-email on Solaris 8 doesn't populate the subject

Paul L. Allen pla at softflare.com
Fri Mar 26 18:10:45 CET 2004


Phil Costelloe writes: 

> There isn't a -s option to the standard mail program on Solaris 8, in
> fact that command (generically - printf "body" | mail -s "subject"
> someuser) errors rather than sending a mail when I try it

One way around it is to use sendmail (which may not actually be sendmail
underneath but a sendmail-alike wrapper around the real MTA). Use -oi
if you want to specify a different sender than the process is running
on (in which case you need to add sender and recipient headers to your
printf; use -t so a stray dot doesn't cause trouble; add a subject
header to your printf. 

That's assuming that Solaris 8 has sendmail or a sendmail-alike wrapper
around the real MTA - most distros do because most CGIs that send mail
are written to call sendmail.  Then again, Sun are notorious for doing
things differently from everyone else. 

-- 
Paul Allen
Softflare Support 




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list