1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2026-01-03 17:17:29 +00:00
Files
go-chasquid-smtp/test/t-11-dovecot/config/dovecot.conf.in
Alberto Bertogli 735613cdf7 test: Set state_dir in Dovecot config
Dovecot's `state_dir` usually defaults to be at `/var/lib/dovecot`, or a
similar system-wide path.

Under some conditions, our test Dovecot instance can fail, because it's
wanting to write to state_dir, but it is not writeable by us in the test
environment.

This was reported by foxcpp in
https://github.com/albertito/chasquid/issues/28.

This patch fixes the problem by setting a custom state_dir to be within
our testing directory.

Thanks to foxcpp for reporting this problem and suggesting a fix.
2022-07-04 09:46:50 +01:00

53 lines
985 B
Plaintext

base_dir = $ROOT/run/
state_dir = $ROOT/lib/
log_path = $ROOT/dovecot.log
ssl = no
default_internal_user = $USER
default_internal_group = $USER
default_login_user = $USER
# Before auth checks, rename "u@d" to "u-x". This exercises that chasquid
# handles well the case where the returned user information does not match the
# requested user.
# We drop the domain, to exercise "naked" auth handling.
auth_username_format = "%n-x"
passdb {
driver = passwd-file
args = $ROOT/passwd
}
userdb {
driver = passwd-file
args = $ROOT/passwd
}
service auth {
unix_listener auth {
mode = 0666
}
}
# Dovecot refuses to start without protocols, so we need to give it one.
protocols = imap
service imap-login {
chroot =
inet_listener imap {
address = 127.0.0.1
port = 0
}
}
service anvil {
chroot =
}
# Turn on debugging information, to help troubleshooting issues.
auth_verbose = yes
auth_debug = yes
auth_debug_passwords = yes
auth_verbose_passwords = yes
mail_debug = yes