• Alberto Bertogli's avatar
    test: Add workarounds for dovecot 2.3 · 910c6e9c
    Alberto Bertogli authored
    The current dovecot config for integration test t-11-dovecot is not
    compatible with dovecot 2.3. There are some new services which want to
    change the group owner for some files to the default, and that does not
    work when run as non-root.
    
    The errors look like:
    
      master: Error: service(stats): chown(/tmp/chasquid-dovecot-test/run/stats-writer, 4294967295, 127) failed: Operation not permitted
      master: Error: service(imap-hibernate): chown(/tmp/chasquid-dovecot-test/run/imap-hibernate, 4294967295, 127) failed: Operation not permitted
      master: Error: service(dict): chown(/tmp/chasquid-dovecot-test/run/dict, 4294967295, 127) failed: Operation not permitted
      master: Error: service(dict-async): chown(/tmp/chasquid-dovecot-test/run/dict-async, 4294967295, 127) failed: Operation not permitted
      master: Fatal: Failed to start listeners
    
    (127 is the "dovecot" user)
    
    So this patch adds some config settings to set the group manually for
    these services, which is backwards compatible with 2.2.
    
    Eventually we will stop supporting 2.2 for tests, at which point we can
    change to just setting default_internal_group.
    910c6e9c
Name
Last commit
Last update
cmd Loading commit data...
docs Loading commit data...
etc Loading commit data...
internal Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
INSTALL.md Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
UPGRADING.md Loading commit data...
chasquid.go Loading commit data...
coverage_test.go Loading commit data...
dnsoverride.go Loading commit data...