mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Merge pull request #196 from Josef-Friedrich/dovecot-config
Add a additional configuration file for dovecot
This commit is contained in:
commit
fd6e47d847
4
config/dovecot.cf
Normal file
4
config/dovecot.cf
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# File for additional dovecot configurations.
|
||||||
|
# For more informations read http://wiki.dovecot.org/BasicConfiguration
|
||||||
|
|
||||||
|
#mail_max_userip_connections = 50
|
|
@ -290,6 +290,11 @@ if [ "$ENABLE_POP3" = 1 -a "$SMTP_ONLY" != 1 ]; then
|
||||||
/usr/sbin/dovecot reload
|
/usr/sbin/dovecot reload
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -f /tmp/docker-mailserver/dovecot.cf ]; then
|
||||||
|
cp /tmp/docker-mailserver/dovecot.cf /etc/dovecot/local.conf
|
||||||
|
/usr/sbin/dovecot reload
|
||||||
|
fi
|
||||||
|
|
||||||
# Start services related to SMTP
|
# Start services related to SMTP
|
||||||
/etc/init.d/spamassassin start
|
/etc/init.d/spamassassin start
|
||||||
/etc/init.d/clamav-daemon start
|
/etc/init.d/clamav-daemon start
|
||||||
|
|
1
test/config/dovecot.cf
Normal file
1
test/config/dovecot.cf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
mail_max_userip_connections = 69
|
|
@ -222,6 +222,18 @@
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# dovecot
|
||||||
|
#
|
||||||
|
|
||||||
|
@test "checking dovecot: config additions" {
|
||||||
|
run docker exec mail grep -q 'mail_max_userip_connections = 69' /tmp/docker-mailserver/dovecot.cf
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
|
run docker exec mail /bin/sh -c "doveconf | grep 'mail_max_userip_connections = 69'"
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
|
[ "$output" = 'mail_max_userip_connections = 69' ]
|
||||||
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# spamassassin
|
# spamassassin
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue