From e3ecbfc846c06a44b5de7478872a9c7d702c7e0f Mon Sep 17 00:00:00 2001 From: Johan Smits Date: Wed, 9 Aug 2017 22:22:05 +0200 Subject: [PATCH] Also test on the submission port if the login is succesful Fixed location so that opendkim is happy with the correct file location --- test/config/opendkim/KeyTable | 4 ++-- test/tests.bats | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/config/opendkim/KeyTable b/test/config/opendkim/KeyTable index 6bac0098..cb6bc538 100644 --- a/test/config/opendkim/KeyTable +++ b/test/config/opendkim/KeyTable @@ -1,2 +1,2 @@ -mail._domainkey.localhost.localdomain localhost.localdomain:mail:/tmp/docker-mailserver/opendkim/keys/localhost.localdomain/mail.private -mail._domainkey.otherdomain.tld otherdomain.tld:mail:/tmp/docker-mailserver/opendkim/keys/otherdomain.tld/mail.private +mail._domainkey.localhost.localdomain localhost.localdomain:mail:/etc/opendkim/keys/localhost.localdomain/mail.private +mail._domainkey.otherdomain.tld otherdomain.tld:mail:/etc/opendkim/keys/otherdomain.tld/mail.private diff --git a/test/tests.bats b/test/tests.bats index e9ad3e94..6788dee4 100644 --- a/test/tests.bats +++ b/test/tests.bats @@ -1117,6 +1117,8 @@ load 'test_helper/bats-assert/load' @test "checking saslauthd: ldap smtp authentication" { run docker exec mail_with_ldap /bin/sh -c "nc -w 5 0.0.0.0 25 < /tmp/docker-mailserver-test/auth/sasl-ldap-smtp-auth.txt | grep 'Authentication successful'" assert_success + run docker exec mail_with_ldap /bin/sh -c "openssl s_client -quiet -starttls smtp -connect 0.0.0.0:587 < /tmp/docker-mailserver-test/auth/sasl-ldap-smtp-auth.txt | grep 'Authentication successful'" + assert_success }