mailu: use postmark token for relay auth

This commit is contained in:
Brad Stein 2026-01-11 19:01:31 -03:00
parent a8e6b575af
commit 3a798ae3b1
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ spec:
externalRelay:
host: "[smtp.postmarkapp.com]:587"
existingSecret: mailu-postmark-relay
usernameKey: relay-username
usernameKey: relay-password
passwordKey: relay-password
timezone: Etc/UTC
subnet: 10.42.0.0/16

View File

@ -20,8 +20,8 @@ data:
kubectl -n "$SOURCE_NS" get secret "$SOURCE_SECRET" -o json > "$tmp"
user=$(jq -r '.data["relay-username"]' "$tmp")
pass=$(jq -r '.data["relay-password"]' "$tmp")
user=$pass
if [ -z "$user" ] || [ -z "$pass" ] || [ "$user" = "null" ] || [ "$pass" = "null" ]; then
echo "missing credentials from $SOURCE_NS/$SOURCE_SECRET" >&2