On Wed, May 09, at 01:47 Justin The Cynical wrote: > > I have recently set up a dedicated nagios box and need to get the email > notifications working. > > What I am looking for is a send (or forward) only mail server that is > sendmail compatible (has the /usr/sbin/sendmail link). > > I can always install postfix or something else, but this seems to be > overkill for the purpose at hand. > > I ask for the sendmail part as most clients I can find that are > lightweight as well (such as mailx) try to use said binary to send > anything out. > > Any suggestions?
While there are many lightweight solutions (have a look to mutt wiki [1] -especially to the msmtp agent, which is might be what you want), I will write for libesmtp library (it's in the book) and esmtp which is a simple CMMI [2] application, and provides a sendmail compatible link. You can even write your mailer (a small flexible shell script), so you won't need mailx at all. What you have to provide to esmtp is some mail headers (To: Subject: Reply-To: Content-Type:) to the top of the notification, and let esmtp to read and send the email from stdin: cat my-notification | esmtp -t 1. http://wiki.mutt.org/?LightSMTPagents 2. ./configure --prefix=/usr && make && sudo make install -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
