update postmaster_address in dovecot config according to POSTMASTER_ADDRESS env var (#866)

* update postmaster_address in dovecot config according to POSTMASTER_ADDRESS env var
* tests: add another test for postmaster_address with default settings
This commit is contained in:
Andreas Gerstmayr 2018-02-27 20:44:45 +01:00 committed by Johan Smits
parent c36e878d76
commit 2687469f38
2 changed files with 10 additions and 0 deletions

View file

@ -1322,6 +1322,14 @@ load 'test_helper/bats-assert/load'
assert_success
}
@test "checking dovecot: postmaster address" {
run docker exec mail /bin/sh -c "grep 'postmaster_address = postmaster@domain.com' /etc/dovecot/conf.d/15-lda.conf"
assert_success
run docker exec mail_with_ldap /bin/sh -c "grep 'postmaster_address = postmaster@localhost.localdomain' /etc/dovecot/conf.d/15-lda.conf"
assert_success
}
# saslauthd
@test "checking saslauthd: sasl ldap authentication works" {
run docker exec mail_with_ldap bash -c "testsaslauthd -u some.user -p secret"