Ad Widget

Collapse

Zabbix mail not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jackiebaron
    Junior Member
    • Oct 2014
    • 17

    #1

    Zabbix mail not working

    Hi,

    I'm sure this problem has been seen over and over but my case is a bit baffling. It all used to work. Basically I have created an item (existence of a test files) and also successfully created a trigger which fires when that file is deleted. I configured an email to be sent when the trigger fire but it doesn't send. The issue shows up in the "last 20 issues" pane but the action tab shows action (Gmail), Status (not sent). I can successfully send an email from the command line simply by typing sendmail [email protected] </file and it arrives. It just doesn't work from the zabbix engine and I get these messages in the /tmp/zabbix.server.log file:

    1164:20150211:121111.275 wrong answer on end of data [421 4.7.0 Email Senders Guidelines. u4si658062qcm.43 - gsmtp
    ]
    1164:20150211:121111.351 wrong answer on MAIL FROM [530 5.7.0 Must issue a STARTTLS command first. p21sm573254qgd.1 - gsmtp
    ]
    1164:20150211:121111.569 wrong answer on end of data [421 4.7.0 Email Senders Guidelines. z8si704447qas.9 - gsmtp
    ]
    1164:20150211:121111.782 wrong answer on end of data [421 4.7.0 Email Senders Guidelines. m1si668540qas.40 - gsmtp
    ]


    Any help or guidance would be greatly appreciated.
    thnx
  • filipp.sudanov
    Senior Member
    Zabbix Certified Specialist
    • May 2014
    • 137

    #2
    Currently Zabbix does not support SMTP authentication. Please see https://support.zabbix.com/browse/ZBXNEXT-679.
    Gmail, as far as I know, does not accepts plain SMTP.

    Current workaround is to use a script media type and send email from that script.

    Comment

    • jackiebaron
      Junior Member
      • Oct 2014
      • 17

      #3
      Originally posted by filipp.sudanov
      Currently Zabbix does not support SMTP authentication. Please see https://support.zabbix.com/browse/ZBXNEXT-679.
      Gmail, as far as I know, does not accepts plain SMTP.

      Current workaround is to use a script media type and send email from that script.
      Well can anybody show me how to send an email. It worked before. I just need to have an email sent when a trigger fires and the documentation seems quite scant. I create the trigger, it fire but the action is that the email is NOT sent. What can I check?

      Comment

      • jan.garaj
        Senior Member
        Zabbix Certified Specialist
        • Jan 2010
        • 506

        #4
        Script with TLS support: https://gist.github.com/superdaigo/3754055
        Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
        My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

        Comment

        Working...