author | Alberto Bertogli
<albertito@blitiri.com.ar> 2018-07-15 10:23:12 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2018-07-15 12:15:10 UTC |
parent | 554d97f5f242ef14d961ed300d3b2e4e7801af43 |
test/t-11-dovecot/config/dovecot.conf.in | +29 | -0 |
test/t-11-dovecot/run.sh | +1 | -0 |
diff --git a/test/t-11-dovecot/config/dovecot.conf.in b/test/t-11-dovecot/config/dovecot.conf.in index 3f59a86..77fbca3 100644 --- a/test/t-11-dovecot/config/dovecot.conf.in +++ b/test/t-11-dovecot/config/dovecot.conf.in @@ -41,6 +41,35 @@ service anvil { chroot = } +# In dovecot 2.3 these services want to change the group owner of the files, +# so override it manually to our effective group. +# This is backwards-compatible with dovecot 2.2. +# TODO: once we stop supporting dovecot 2.2 for tests, we can set +# default_internal_group and remove these settings. +service imap-hibernate { + unix_listener imap-hibernate { + group = $GROUP + } +} +service stats { + unix_listener stats { + group = $GROUP + } + unix_listener stats-writer { + group = $GROUP + } +} +service dict { + unix_listener dict { + group = $GROUP + } +} +service dict-async { + unix_listener dict-async { + group = $GROUP + } +} + # Turn on debugging information, to help troubleshooting issues. auth_verbose = yes auth_debug = yes diff --git a/test/t-11-dovecot/run.sh b/test/t-11-dovecot/run.sh index 6403056..e93e0f2 100755 --- a/test/t-11-dovecot/run.sh +++ b/test/t-11-dovecot/run.sh @@ -25,6 +25,7 @@ export ROOT="/tmp/chasquid-dovecot-test" mkdir -p $ROOT $ROOT/run rm -f $ROOT/dovecot.log +export GROUP=$(id -g -n) envsubst < config/dovecot.conf.in > $ROOT/dovecot.conf cp -f config/passwd $ROOT/passwd