Ad Widget

Collapse

smtp help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Liran
    Junior Member
    • Apr 2015
    • 13

    #1

    smtp help

    Hello all!

    How can I define an smtp failover for the Zabbix server emails?

  • Liran
    Junior Member
    • Apr 2015
    • 13

    #2
    Does anyone know?
    There is option to set backup smtp ?

    Comment

    • jamesNJ
      Senior Member
      • Jun 2015
      • 103

      #3
      I don't believe there is any option in Zabbix to use a fail over SMTP server. But that would be a nice feature.

      I think there are 2 ways I can think to accomplish this, but both are a little complex.

      The first way would be set up an SMTP forwarding server on your zabbix host (like sendmail). Zabbix would then send mail to this local SMTP server. The SMTP server would then be configured to use MX records in DNS to resolve the precedence of delivery. So then your failover server would be at a much lower priority than the main server in DNS.

      The 2nd way would be to use a TCP proxy service that could do connection failover for you. I happened to find this link: https://crossroads.e-tunity.com

      If my zabbix server was responsible to direct delivery of e-mail, I would do the first. However it is more likely that hosts on a LAN forward everything to "smart hosts" in which the 2nd would be preferred and easier (especially if DNS MX is not already setup and you do not have access to change this).

      Crossroads doesn't seem to have pre-compiled packages, so you will need to compile and install on your own.

      I hope this helps.

      Comment

      • Liran
        Junior Member
        • Apr 2015
        • 13

        #4
        Hi james first of all Thank you for your response!
        I found a way to solve the problem by install mailutils service on zabbix server
        and than run a script that send mail vie this service if the smtp down trigger is activate.

        Comment

        Working...