add smtpd makefile

This commit is contained in:
2023-06-15 18:52:07 +02:00
parent 65cbec6832
commit d5654854c1
3 changed files with 58 additions and 1 deletions

20
smtpd Normal file
View File

@@ -0,0 +1,20 @@
# This make file produces the smtp daemon for the current backup domain: splint.rs
# It is missing the cert, so you'll have to make another.
DOMAIN=splint.rs
output: service
/usr/bin/smtp:
pacman -S smtpd
cp etc/smtpd/* /etc/smtpd
smtpd -n
/etc/smtpd/mailname: /usr/bin/smtp
echo $(DOMAIN) > /etc/smtpd/mailname
.PHONY: service
service: /etc/systemd/system/multi-user.target.wants/smtpd.service
/etc/systemd/system/multi-user.target.wants/smtpd.service: /etc/smtpd/mailname
systemctl enable --now smtpd