Support for setting relayhost in main.cf (#1104)

* Added DEFAULT_RELAY_HOST setting
* If set this value will be used as the relayhost in /etc/postfix/maincf causing all mail to be delivered using this relay host
* Test for default relay host setting
This commit is contained in:
jjtt 2019-01-19 12:10:31 +02:00 committed by Johan Smits
parent 1302ccfe7e
commit a3724fa91d
6 changed files with 49 additions and 1 deletions

View file

@ -1748,6 +1748,15 @@ load 'test_helper/bats-assert/load'
assert_success
}
#
# default relay host
#
@test "checking default relay host: default relay host is added to main.cf" {
run docker exec mail_with_default_relay /bin/sh -c 'grep -e "^relayhost = default.relay.host.invalid:25" /etc/postfix/main.cf | wc -l | grep 1'
assert_success
}
#
# relay hosts
#