小编Jie*_* Li的帖子

monit 发送电子邮件不起作用

我正在尝试使用 monit,并使用 gmail 设置电子邮件服务器。配置文件是这样的:

set mailserver smtp.gmail.com port 587
username "someuser@gmail.com" password "password"
using tlsv1
with timeout 30 seconds
Run Code Online (Sandbox Code Playgroud)

我设置了一个警报来测试:

check file alerttest with path /.nonexistent
alert address@gmail.com with reminder on 500 cycles
Run Code Online (Sandbox Code Playgroud)

但是当我使用 monit validate 时,我得到的错误信息是这样的:

Sendmail: error receiving data from the mailserver 'smtp.gmail.com' -- Resource temporarily unavailable
Alert handler failed, retry scheduled for next cycle
'alerttest' file doesn't exist
Sendmail: error receiving data from the mailserver 'smtp.gmail.com' -- Resource temporarily unavailable
'alerttest' trying to restart
Run Code Online (Sandbox Code Playgroud)

任何人有任何想法?非常感谢

smtp gmail monit

8
推荐指数
2
解决办法
2万
查看次数

标签 统计

gmail ×1

monit ×1

smtp ×1