Initial commit: HTTP wrapper around the existing falah-ibaas email connector

Gives Supabase Edge Functions (and anything else outside the VPS) a real,
authenticated endpoint onto the VPS's already-working internal Postfix
relay (the same one Ghost uses in production), via the falah-ibaas
EmailConnector that was fully built but never actually deployed.

Deployed live at https://nfmailrelay.falahos.my as a Docker Swarm service
on the existing Traefik network, TLS via Let's Encrypt, shared-secret
bearer auth. Built for Nur Falah's heir notification emails.
This commit is contained in:
wmj
2026-08-14 08:00:28 +08:00
commit c0b8981629
3 changed files with 153 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
FROM python:3.12-slim
WORKDIR /app
COPY relay.py .
ENV PORT=8091
EXPOSE 8091
# The falah-ibaas email connector (handler.py) is bind-mounted at
# /opt/falah-ibaas/connectors/email at runtime — see docker service create.
CMD ["python3", "relay.py"]