Home Page › Forums › Network Management › ZeroShell › [Howto] Failover mail alert in zeroshell
- This topic is empty.
-
AuthorPosts
-
July 8, 2009 at 2:27 pm #41773
aseques
MemberI 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_RCPT=from@example.com
MAIL_FROM=to@example.com
MAIL_USER=username
MAIL_PASS=passwordI’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-documentationJuly 8, 2009 at 9:28 pm #48384imported_fulvio
ParticipantVery nice solution.
Thanks a lot
FulvioJuly 9, 2009 at 8:04 am #48385aseques
MemberI’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 #48386securenet
MemberAre 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 #48387aseques
MemberHave a look here, you’ll find both:
http://bitbucket.org/aseques/zeroshell-documentation/srcJuly 20, 2010 at 10:55 am #48388aseques
MemberI 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 beta13January 20, 2012 at 8:15 am #48389ponsudhakar
MemberHi 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
VPSMarch 13, 2013 at 11:53 am #48390aseques
MemberJust updated the script and patches for the current failoverd (zs RC2), enjoy 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.