You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
381 B
Bash
17 lines
381 B
Bash
7 years ago
|
#!/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
|
||
9 years ago
|
|
||
|
rm -f /var/run/rsyslogd.pid
|
||
8 years ago
|
if [ "$ANTIVIRUS" == "clamav" ];
|
||
|
then
|
||
7 years ago
|
echo ".try_include /etc/rmilter-clamav.conf" >> /etc/rmilter.conf
|
||
8 years ago
|
fi
|
||
9 years ago
|
rmilter -c /etc/rmilter.conf
|
||
|
rsyslogd -n
|