mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-16 02:46:44 +02:00
13 lines
272 B
Bash
Executable File
13 lines
272 B
Bash
Executable File
#!/bin/bash
|
|
|
|
export WHITELIST=$(echo "$RELAYNETS" | sed 's/ /,/g')
|
|
|
|
# Substitute configuration
|
|
for VARIABLE in `env | cut -f1 -d=`; do
|
|
sed -i "s={{ $VARIABLE }}=${!VARIABLE}=g" /etc/rmilter.conf
|
|
done
|
|
|
|
rm -f /var/run/rsyslogd.pid
|
|
rmilter -c /etc/rmilter.conf
|
|
rsyslogd -n
|