【问题标题】:zabbix not sending email to gmail [closed]zabbix不向gmail发送电子邮件[关闭]
【发布时间】:2018-07-30 07:53:52
【问题描述】:

我已经忙了好几个小时了。 我在这里想念什么?有人有线索吗?

我正在尝试使用 zabbix 向 gmail 发送通知电子邮件。 已按如下方式设置电子邮件帐户。

Type: 'Email'
SMTP Server: 'smtp.gmail.com'
SMTP server Port: '25'
SMTP HELO: 'gmail.com'
SMTP email: '[username]@gmail.com'
Connection security 'none'
Authentication: 'username and password'
Username '[username]' // without @gmail.com
Password '[password]'
Enabled 'checked'

我还创建了一个动作和一个触发器。 这很完美。

如果我查看报告和审计,我会看到以下内容;

    07/30/2018 04:44:31 PM  wesley  111.108.30.208  Media type  Updated 0       Media type [Email]
07/30/2018 04:43:28 PM  wesley  111.108.30.208  Action  Updated 0       Name: Asterisk Communication
07/30/2018 04:40:56 PM  wesley  111.108.30.208  Action  Updated 0       Name: Asterisk Communication
07/30/2018 04:40:32 PM  wesley  111.108.30.208  Action  Updated 0       Name: Asterisk Communication
07/30/2018 04:40:01 PM  wesley  111.108.30.208  Action  Updated 0       Name: Asterisk Communication
07/30/2018 04:39:46 PM  wesley  111.108.30.208  Action  Updated 0       Name: Asterisk Communication
07/30/2018 04:30:38 PM  wesley  111.108.30.208  Media type  Updated 0       Media type [Email]
07/30/2018 04:15:10 PM  wesley  111.108.30.208  Media type  Updated 0       Media type [Email]

在我看来,该功能运行正常,但我没有收到任何电子邮件。我在这里做错了吗?

我还在 Gmail 中设置了非安全应用选项,并在服务器上打开了端口 25。

非常感谢您的帮助。 一如既往的谢谢!

【问题讨论】:

    标签: email smtp gmail zabbix


    【解决方案1】:

    使用 587 端口而不是 25

    smpt.gmail.com 使用端口 587 或 465

    并验证邮件账户的密码是否正确。如果失败,它将不会发送电子邮件。

    查看此链接了解更多选项

    https://support.google.com/a/answer/176600?hl=en

    【讨论】:

      【解决方案2】:

      对于 SSL

      Type: 'Email'
      SMTP Server: 'smtp.gmail.com'
      SMTP server Port: '465'
      SMTP HELO: 'gmail.com'
      SMTP email: 'username@gmail.com'
      Connection security 'SSL/TLS'
      Authentication: 'username and password'
      Username 'user@gmaillcom' 
      Password '<yourPassword>'
      Enabled 'checked'
      

      对于 TLS

      Type: 'Email'
      SMTP Server: 'smtp.gmail.com'
      SMTP server Port: '587'
      SMTP HELO: 'gmail.com'
      SMTP email: 'username@gmail.com'
      Connection security 'STARTTLS'
      Authentication: 'username and password'
      Username 'user@gmaillcom' 
      Password '<yourPassword>'
      Enabled 'checked'
      

      【讨论】:

        猜你喜欢
        • 2013-04-25
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-01-13
        • 2018-11-08
        • 2011-12-15
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多