Nightingale 加发邮件功能

Nightingale 加发邮件功能

mkdir -p /home/n9e
cd /home/n9e
git clone https://github.com/n9e/mail-sender.git
cd mail-sender
./control build
vi etc/mail-sender.yml //修改发件地址 和redis的密码

./mail-sender -t xxx@163.com //测试发邮件

cp mail-sender.service /usr/lib/systemd/system
cat mail-sender.service

[Unit]
Description=Nightingale mail sender
After=network-online.target
Wants=network-online.target

[Service]
User=root
Group=root

Type=simple
ExecStart=/home/n9e/mail-sender
WorkingDirectory=/home/n9e

Restart=always
RestartSec=1
StartLimitInterval=0

[Install]
WantedBy=multi-user.target

systemctl daemon-reload
systemctl start mail-sender
systemctl status mail-sender

posted @ 2020-12-16 19:20  walkersss  阅读(136)  评论(0编辑  收藏  举报