add units to automatically send emails with msmtp

This commit is contained in:
Bruno Carlin 2018-09-28 11:28:17 +02:00
parent eeb29c3e70
commit 51802a8430
3 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,6 @@
[Unit]
Description=Send emails from msmtp queue
[Service]
Type=oneshot
ExecStart=/usr/bin/msmtp-runqueue.sh

View file

@ -0,0 +1,11 @@
[Unit]
Description=Send email from msmtp queue timer
[Timer]
OnBootSec=2m
OnUnitActiveSec=5m
Persistent=true
Unit=msmtp-runqueue.service
[Install]
WantedBy=timers.target

View file

@ -0,0 +1 @@
/home/bca/.config/systemd/user/msmtp-runqueue.timer