[Dovecot] Allow setting ACL_ANYONE in mailcow.conf
This commit is contained in:
@@ -48,6 +48,39 @@ while [ -z "${MAILCOW_TZ}" ]; do
|
||||
fi
|
||||
done
|
||||
|
||||
MEM_TOTAL=$(awk '/MemTotal/ {print $2}' /proc/meminfo)
|
||||
|
||||
if [ ${MEM_TOTAL} -le "1572864" ]; then
|
||||
echo "Installed memory is less than 1.5 GiB. It is recommended to disable ClamAV to prevent out-of-memory situations."
|
||||
read -r -p "Do you want to disable ClamAV now? ClamAV can be re-enabled by setting SKIP_CLAMD=n in mailcow.conf. [Y/n] " response
|
||||
case $response in
|
||||
[nN][oO]|[nN])
|
||||
SKIP_CLAMD=n
|
||||
;;
|
||||
*)
|
||||
SKIP_CLAMD=y
|
||||
;;
|
||||
esac
|
||||
else
|
||||
SKIP_CLAMD=n
|
||||
fi
|
||||
|
||||
if [ ${MEM_TOTAL} -le "6815744" ]; then
|
||||
echo "Installed memory is less than 6.5 GiB. It is highly recommended to disable Solr to prevent out-of-memory situations."
|
||||
echo "Solr is a prone to run OOM and should be monitored. The default Solr heap size is 1024 MiB and should be set according to your expected load in mailcow.conf."
|
||||
read -r -p "Do you want to disable Solr now (recommended)? Solr can be re-enabled by setting SKIP_SOLR=n in mailcow.conf. [Y/n] " response
|
||||
case $response in
|
||||
[nN][oO]|[nN])
|
||||
SKIP_SOLR=n
|
||||
;;
|
||||
*)
|
||||
SKIP_SOLR=y
|
||||
;;
|
||||
esac
|
||||
else
|
||||
SKIP_SOLR=n
|
||||
fi
|
||||
|
||||
[ ! -f ./data/conf/rspamd/override.d/worker-controller-password.inc ] && echo '# Placeholder' > ./data/conf/rspamd/override.d/worker-controller-password.inc
|
||||
|
||||
cat << EOF > mailcow.conf
|
||||
@@ -145,6 +178,13 @@ SKIP_IP_CHECK=n
|
||||
|
||||
SKIP_CLAMD=n
|
||||
|
||||
# Skip Solr on low-memory systems
|
||||
SKIP_SOLR=${SKIP_SOLR}
|
||||
|
||||
# Solr heap size in MB, there is no recommendation, please see Solr docs.
|
||||
# Solr is a prone to run OOM and should be monitored. Unmonitored Solr setups are not recommended.
|
||||
SOLR_HEAP=1024
|
||||
|
||||
# Enable watchdog (watchdog-mailcow) to restart unhealthy containers (experimental)
|
||||
|
||||
USE_WATCHDOG=n
|
||||
|
Reference in New Issue
Block a user