spamassassin/scripts/entryPoint.sh
Dominik Meyer a065e70927
All checks were successful
continuous-integration/drone/push Build is passing
chore: initial commit
2025-02-06 16:57:07 +01:00

12 lines
265 B
Bash

#!/bin/bash
if [ -z ${SPAMD_ALLOWED_IPS} ]; then
echo "No SPAMD_ALLOWED_IPS set, exiting..."
exit 1
fi
if [ -z ${SPAMD_MAX_CHILDREN} ]; then
SPAMD_MAX_CHILDREN=5
fi
spamd -x --listen '*' --max-children ${SPAMD_MAX_CHILDREN} -D -A ${SPAMD_ALLOWED_IPS}