From 9978bccbb6f7fe5345aad612e37a911922d296e3 Mon Sep 17 00:00:00 2001 From: Johan Smits Date: Sat, 19 Aug 2017 10:32:47 +0200 Subject: [PATCH] Also test on the submission port if the login is succesful (#685) 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 8e867b86..e0cbb798 100644 --- a/test/tests.bats +++ b/test/tests.bats @@ -1141,6 +1141,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 }