docker-mailserver/test/config
alinmear 26992bb66f #503 (#522)
* Add method overwrite_config()
This method takes 2 arguments:
  1.) Environment Variable Prefix
  2.) String of files separated by whitespace

e.g.
  export LDAP_SEARCH_BASE=dc=domain,dc=loc
  export LDAP_BIND_PW=test

  overwrite_config "LDAP_" "/etc/postfix/ldap-users.cf
  /etc/postfix/ldap-groups.cf"

Logic:
  + all env vars will be search for vars with the prefix LDAP_
  + afterwards they will be dissembled in key value pairs
    LDAP_BIND_PW=test --> bind_pw test
  + the key and value will be substituted within the provided files
  via sed

* Fix #503 added logic for custom configs provided at container
provisioning within /tmp/docker-mailserver

* Add additional unit tests for postfix ldap integration

    * check custom configs copied
    * check environment variables substituted

* Fix quoting problems in tests.bats

* Fix missing brackets in function _fix_var_amavis_permissions()

* Fix typo in _setup_ldap

* Fix notify in overwrite_config

* Fix typo

* Fix added dovecot ldap config provisioning again and Add notify for tasks
2017-04-26 14:56:08 +02:00
..
dovecot-lmtp Add #394: Postfix Virtual Transport (#461) 2017-01-09 23:52:36 +01:00
letsencrypt/mail.my-domain.com Added tests on letsencrypt - #109 2016-04-26 19:39:08 +02:00
opendkim Fixing #143 2016-04-21 01:08:14 +02:00
sieve Implement basic sieve support using Dovecot. 2016-04-28 08:57:50 +02:00
amavis.cf Allow user to provide Amavis configuration (#299) 2016-09-02 09:08:41 +02:00
clear.postfix-accounts.cf Adapted the user account setup for the test environment to the new v2 approach 2016-04-17 12:01:05 +02:00
dovecot.cf Integration test for extension address delivery (#528) 2017-03-03 18:27:22 +01:00
fail2ban-jail.cf corrected test cases 2016-06-04 02:46:33 +02:00
fetchmail.cf Implement fetchmail (#260) (#271) 2016-08-21 22:13:13 +02:00
ldap-aliases.cf #503 (#522) 2017-04-26 14:56:08 +02:00
ldap-groups.cf #503 (#522) 2017-04-26 14:56:08 +02:00
ldap-users.cf #503 (#522) 2017-04-26 14:56:08 +02:00
postfix-main.cf allow accounts which do not start with a-z (#568) 2017-04-07 22:28:19 +02:00
postfix-regexp.cf tests for regexp alias 2016-05-23 20:38:11 -07:00
postfix-virtual.cf Added test on catchall 2016-07-23 23:42:18 +02:00
whitelist_clients.local Include whitelist_clients.local in postgrey setup from config folder (#564) 2017-04-12 17:59:04 +02:00