Restrict Maddy Relay Sender
Deploy mini-pc / deploy (push) Failing after 40s

This commit is contained in:
Dmitry
2026-05-30 20:38:15 +03:00
parent ae9ca5d07f
commit bf6aa03fcb
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1,5 +1,6 @@
MADDY_HOSTNAME=mail.ada-dev.ru MADDY_HOSTNAME=mail.ada-dev.ru
MADDY_DOMAIN=ada-dev.ru MADDY_DOMAIN=ada-dev.ru
RELAY_ALLOWED_FROM=vaultwarden@ada-dev.ru
RELAY_SMTP_TARGET=tcp://smtp.example.com:587 RELAY_SMTP_TARGET=tcp://smtp.example.com:587
RELAY_SMTP_USERNAME=apikey RELAY_SMTP_USERNAME=apikey
RELAY_SMTP_PASSWORD=changeme RELAY_SMTP_PASSWORD=changeme
+1 -1
View File
@@ -10,7 +10,7 @@ smtp tcp://0.0.0.0:2525 {
all rate 30 1m all rate 30 1m
} }
source {env:MADDY_DOMAIN} { source {env:RELAY_ALLOWED_FROM} {
default_destination { default_destination {
deliver_to smtp {env:RELAY_SMTP_TARGET} { deliver_to smtp {env:RELAY_SMTP_TARGET} {
auth plain {env:RELAY_SMTP_USERNAME} {env:RELAY_SMTP_PASSWORD} auth plain {env:RELAY_SMTP_USERNAME} {env:RELAY_SMTP_PASSWORD}