mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-04 01:55:29 +02:00
selective service disable (#250)
* Allow disabling amavis service Setting the `DISABLE_AMAVIS=1` env var will skip the starting of the amavis process. * Enable option to not run spamassassin Setting the `DISABLE_SPAMASSASSIN=1` env var will start this container without spamassain. * Allow starting of the container without clamav Setting the `DISABLE_CLAMAV=1` env var will start this container without starting clamav.
This commit is contained in:
parent
bfecb65947
commit
4872d0e777
3 changed files with 43 additions and 4 deletions
|
@ -326,9 +326,15 @@ if [ -f /tmp/docker-mailserver/dovecot.cf ]; then
|
|||
fi
|
||||
|
||||
# Start services related to SMTP
|
||||
/etc/init.d/spamassassin start
|
||||
/etc/init.d/clamav-daemon start
|
||||
/etc/init.d/amavis start
|
||||
if ! [ "$DISABLE_SPAMASSASSIN" = 1 ]; then
|
||||
/etc/init.d/spamassassin start
|
||||
fi
|
||||
if ! [ "$DISABLE_CLAMAV" = 1 ]; then
|
||||
/etc/init.d/clamav-daemon start
|
||||
fi
|
||||
if ! [ "$DISABLE_AMAVIS" = 1 ]; then
|
||||
/etc/init.d/amavis start
|
||||
fi
|
||||
/etc/init.d/opendkim start
|
||||
/etc/init.d/opendmarc start
|
||||
/etc/init.d/postfix start
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue