Remove Maddy relay from mini-pc
Deploy mini-pc / deploy (push) Successful in 40s
NixOS switch mini-pc / switch (push) Successful in 10s

This commit is contained in:
Dmitry
2026-05-31 12:39:04 +03:00
parent 649dd5a076
commit c21e2b175c
7 changed files with 6 additions and 76 deletions
-6
View File
@@ -1,6 +0,0 @@
MADDY_HOSTNAME=mail.ada-dev.ru
MADDY_DOMAIN=ada-dev.ru
RELAY_ALLOWED_FROM=info.ada-dev@yandex.ru
RELAY_SMTP_TARGET=tls://smtp.yandex.ru:465
RELAY_SMTP_USERNAME=apikey
RELAY_SMTP_PASSWORD=changeme
-20
View File
@@ -1,20 +0,0 @@
services:
maddy:
image: foxcpp/maddy:0.8
container_name: maddy
hostname: maddy
restart: unless-stopped
ports:
- "2525:2525"
env_file:
- .env
volumes:
- /opt/data/maddy:/data
- ./maddy.conf:/data/maddy.conf:ro
networks:
- mail
networks:
mail:
name: mail
driver: bridge
-34
View File
@@ -1,34 +0,0 @@
hostname {env:MADDY_HOSTNAME}
state_dir /data
runtime_dir /run/maddy
tls off
target.queue outbound_queue {
location outbound_queue
max_tries 4
debug yes
target smtp {
debug yes
targets {env:RELAY_SMTP_TARGET}
auth plain {env:RELAY_SMTP_USERNAME} {env:RELAY_SMTP_PASSWORD}
starttls no
}
}
smtp tcp://0.0.0.0:2525 {
hostname {env:MADDY_HOSTNAME}
dmarc no
limits {
all rate 30 1m
}
source {env:RELAY_ALLOWED_FROM} {
default_destination {
deliver_to &outbound_queue
}
}
default_source {
reject 550 5.7.1 "Sender domain is not allowed"
}
}
+1 -7
View File
@@ -10,10 +10,4 @@ services:
TZ: Europe/Moscow
volumes:
- /opt/data/uptime-kuma:/app/data
networks:
- default
- mail
networks:
default:
mail:
external: true
networks: {}
+5 -3
View File
@@ -1,6 +1,8 @@
ADMIN_TOKEN=changeme
SMTP_HOST=maddy
SMTP_PORT=2525
SMTP_SECURITY=off
SMTP_HOST=smtp.yandex.ru
SMTP_PORT=465
SMTP_SECURITY=force_tls
SMTP_USERNAME=info.ada-dev@yandex.ru
SMTP_PASSWORD=changeme
SMTP_FROM=info.ada-dev@yandex.ru
SMTP_FROM_NAME=Vaultwarden
-5
View File
@@ -12,11 +12,6 @@ services:
- type: bind
source: /opt/data/vaultwarden
target: /data
networks:
- default
- mail
networks:
default:
name: vaultwarden_default
mail:
external: true
-1
View File
@@ -8,7 +8,6 @@
443 # HTTPS
784 # DNS-over-QUIC
853 # DNS-over-TLS
2525 # Maddy SMTP relay
3001 # Uptime Kuma
3015
4438