postfix: fix healtcheck

This commit is contained in:
Michael Grote 2024-04-01 11:49:32 +02:00
parent 2671f7aaa9
commit dda0d457e1
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ services:
networks:
- mail-relay
healthcheck:
test: ["CMD", "sh", "-c", "echo 'EHLO localhost' | nc -w 1 localhost 25 | grep -q '220 '"]
test: ["CMD", "sh", "-c", "echo 'EHLO localhost' | nc -w 1 127.0.0.1 25 | grep -q '220 '"]
interval: 30s
timeout: 10s
retries: 3