zabbix不发送邮件到gmail
zabbix not sending email to gmail
我已经忙了好几个小时了。
我在这里错过了什么?有人有线索吗?
我正在尝试使用 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。
非常感谢您的帮助。
一如既往的谢谢!
使用 587 端口而不是 25
smpt.gmail.com 使用端口 587 或 465
并验证邮箱账号密码是否正确。如果失败,它将不会发送电子邮件。
检查此 link 以获得更多选项
对于 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'
我已经忙了好几个小时了。 我在这里错过了什么?有人有线索吗?
我正在尝试使用 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。
非常感谢您的帮助。 一如既往的谢谢!
使用 587 端口而不是 25
smpt.gmail.com 使用端口 587 或 465
并验证邮箱账号密码是否正确。如果失败,它将不会发送电子邮件。
检查此 link 以获得更多选项
对于 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'