Initial commit

Author: Adrian Helle <adrian@helle.me>
Committer: Jonas Braathen <jonas@ponas.no>
This commit is contained in:
2026-05-27 16:50:15 +02:00
committed by Jonas Braathen
commit 628e09423b
2 changed files with 218 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
[Unit]
Description=parsedmarc -> Discord webhook relay
After=network-online.target
Wants=network-online.target
# parsedmarc should start after the relay so early POSTs don't get refused
Before=parsedmarc.service
[Service]
Type=simple
EnvironmentFile=/etc/dmarc-to-discord.env
ExecStart=/usr/local/bin/dmarc_to_discord.py
Restart=on-failure
RestartSec=5
# Sandboxing — no filesystem writes needed at all
DynamicUser=true
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
RestrictAddressFamilies=AF_INET AF_INET6
LockPersonality=true
MemoryDenyWriteExecute=true
[Install]
WantedBy=multi-user.target