Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mail / mailx question



On Wed, Dec 23, 2009 at 11:37:22AM -0500, Chandler, Scott wrote:
> Hi Guys,
> 
> Thanks for the ideas but I really don't want to change my current config, it's working fine. All I need is a different command to run when the end user mail server is down. Our installation of Nagios uses the mail command for other alerts so I'd like to stick with that if I can. 
> 
> I know it's possible to write a mail command to send to an alternate SMTP server, I just don't know how to form it properly and I haven't been able to find any clear and concise documentation online (no, I don't find the man page to be clear and concise...).
> 
> Is anyone out there an expert on the switches for the command "mail" (or mailx)?

Yeah. It doesn't work that way.

mail and mailx call a command line binary to send the mail. They
don't speak SMTP.

Install ssmtp in an alternate location, so it isn't your
default, and then call that in your nagios alert script.

-dsr-


-- 
http://tao.merseine.nu/~dsr/eula.html is hereby incorporated by reference.
You can't defend freedom by getting rid of it.






BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org