mailu: use postmark token for relay auth
This commit is contained in:
parent
a8e6b575af
commit
3a798ae3b1
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user