AkurAI Build
Menu

Public repository / e0753e49bfea7ef672aabf8df9a3a27b8bdd9dc7

AkurAI-Mail / recovered/ec2-2026-09-07/scripts/akurai-mail-hook.service

Latest change e0753e49bfea7ef672aabf8df9a3a27b8bdd9dc7 - Recover EC2-only ops scripts, checks and live divergent copies by Ólafur Búi Ólafsson

[Unit]
Description=AkurAI Mail delivery hook — creates assigned Multica issues from Klara's mail
Documentation=https://mail.olibuijr.com
After=network-online.target dovecot.service
Wants=network-online.target

[Service]
Type=simple
# Direct Multica endpoint, token, project, and mailbox-to-agent routes are
# injected out-of-band through /etc/akurai-mail-hook.env.
EnvironmentFile=-/etc/akurai-mail-hook.env
ExecStart=/usr/local/sbin/akurai-mail-server hook-watch
Restart=always
RestartSec=5
# The watcher reads delivered messages only to authenticate Klara, extract the
# request, and create one deduplicated, assigned Multica issue.
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=read-only
ReadOnlyPaths=/var/vmail
ReadWritePaths=/var/lib/akurai-mail-hook
PrivateTmp=true

[Install]
WantedBy=multi-user.target