mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-02 17:14:31 +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
|
@ -37,6 +37,21 @@
|
|||
[ "$status" -eq 0 ]
|
||||
}
|
||||
|
||||
@test "checking process: amavis (amavis disabled by DISABLE_AMAVIS)" {
|
||||
run docker exec mail_disabled_amavis /bin/bash -c "ps aux --forest | grep -v grep | grep '/usr/sbin/amavisd-new'"
|
||||
[ "$status" -eq 1 ]
|
||||
}
|
||||
|
||||
@test "checking process: spamassassin (spamassassin disabled by DISABLE_SPAMASSASSIN)" {
|
||||
run docker exec mail_disabled_spamassassin /bin/bash -c "ps aux --forest | grep -v grep | grep ''/usr/sbin/spamd'"
|
||||
[ "$status" -eq 1 ]
|
||||
}
|
||||
|
||||
@test "checking process: clamav (clamav disabled by DISABLE_CLAMAV)" {
|
||||
run docker exec mail_disabled_clamav /bin/bash -c "ps aux --forest | grep -v grep | grep '/usr/sbin/clamd'"
|
||||
[ "$status" -eq 1 ]
|
||||
}
|
||||
|
||||
#
|
||||
# imap
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue