add units to automatically send emails with msmtp
This commit is contained in:
parent
eeb29c3e70
commit
51802a8430
3 changed files with 18 additions and 0 deletions
6
systemd/.config/systemd/user/msmtp-runqueue.service
Normal file
6
systemd/.config/systemd/user/msmtp-runqueue.service
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Send emails from msmtp queue
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/bin/msmtp-runqueue.sh
|
11
systemd/.config/systemd/user/msmtp-runqueue.timer
Normal file
11
systemd/.config/systemd/user/msmtp-runqueue.timer
Normal 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
|
|
@ -0,0 +1 @@
|
||||||
|
/home/bca/.config/systemd/user/msmtp-runqueue.timer
|
Loading…
Add table
Reference in a new issue