[Howto] Failover mail alert in zeroshell Home Page › Forums › Network Management › ZeroShell › [Howto] Failover mail alert in zeroshell This topic contains 6 replies, has 0 voices, and was last updated by aseques 5 years, 11 months ago. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts July 8, 2009 at 2:27 pm #41773 asequesMember I did some changes in failoverd script, to enable the failover monitor to send mails in case there’s a change in the state of a line. Basically what I did was to use an opensource program called smtp-client.pl writen in perl that permits you to send mail directly. In order for this to work, we need to replace failoverd with the modified version and place smtp-client.pl on /root/kerbynet.cgi/scripts/ (this is done on boot time via the rc.pre script) After that, if we have in our profile a file called kerbynet-local.conf (_DB.001/etc/kerbynet-local.conf) With the content: MAIL_HOST=ip_address_of_outgoing_server MAIL_RCPTfirstname.lastname@example.org MAIL_FROMemail@example.com MAIL_USER=username MAIL_PASS=password I’ve tested and it works really fine, and the modifications are done on a way that it doesn’t disturb if you don’t have the smpt-client available. Simplified instruccions to install in the repository You can find the modifications on http://bitbucket.org/aseques/zeroshell-documentation July 8, 2009 at 9:28 pm #48384 imported_fulvioParticipant Very nice solution. Thanks a lot Fulvio July 9, 2009 at 8:04 am #48385 asequesMember I’d be glad if you could integrate this at the next release, no problem with the licenses, since the changes are on the scripts, it’d be already GPL An the smtp-client is also GPL2. March 16, 2010 at 8:18 pm #48386 securenetMember Are there written step-by-step instructions for installing and configuring SMTP on Zeroshell as described in this Post? If not, can some instructions be created and posted? I am also not finding the opensource program smtp-client.pl. June 14, 2010 at 1:56 pm #48387 asequesMember Have a look here, you’ll find both: http://bitbucket.org/aseques/zeroshell-documentation/src July 20, 2010 at 10:55 am #48388 asequesMember I just updated a little bit the documentation, these are the changes: .- Updated the script to copy the patches .- Updated the version of smtp-client to the current version .- Verified that everything still works with beta13 January 20, 2012 at 8:15 am #48389 ponsudhakarMember Hi team, Am using ZS as USB bootable. as a dedicated firewall. How to include the smtp-client.pl and where to install and configure the same. I did as instructed on aseques bitbucket. but no luck. Please help me in this regards Rgds VPS March 13, 2013 at 11:53 am #48390 asequesMember Just updated the script and patches for the current failoverd (zs RC2), enjoy 🙂 Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic.