docker-postfix/integration-tests/basic-test/docker-compose.yml
Bojan Čekrlić 51173d36e0 Fix for #38
The postfix configuration was a bit too permissive with `mynetworks`.

This commit:
- adds `reject` at the end of `*restrictions` list
- adds tests for this feature
2020-10-24 21:24:18 +02:00

31 lines
No EOL
765 B
YAML

version: '3.7'
services:
postfix_test_587:
hostname: "postfix"
image: "boky/postfix"
build:
context: ../..
restart: always
healthcheck:
test: [ "CMD", "sh", "-c", "netstat -an | fgrep 587 | fgrep -q LISTEN" ]
interval: 10s
timeout: 5s
start_period: 10s
retries: 2
volumes:
- "./test-keys:/etc/opendkim/keys"
- "./docker-init.db:/docker-init.db/"
environment:
FORCE_COLOR: "1"
ALLOWED_SENDER_DOMAINS: "example.org"
tests:
image: "boky/postfix-integration-test"
restart: "no"
volumes:
- "../tester:/code"
build:
context: ../tester
command: "/" # relative path to /code
environment:
FROM: "demo@example.org"
TO: "test@gmail.com"