[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 6 years, 1 month ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #41773

    aseques
    Member

    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_RCPT=from@example.com
    MAIL_FROM=to@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

    #48384

    imported_fulvio
    Participant

    Very nice solution.

    Thanks a lot
    Fulvio

    #48385

    aseques
    Member

    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.

    #48386

    securenet
    Member

    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.

    #48387

    aseques
    Member

    Have a look here, you’ll find both:
    http://bitbucket.org/aseques/zeroshell-documentation/src

    #48388

    aseques
    Member

    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

    #48389

    ponsudhakar
    Member

    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

    #48390

    aseques
    Member

    Just updated the script and patches for the current failoverd (zs RC2), enjoy 🙂

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.