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
|
||
![]()
8 years ago
|
|
||
|
rm -f /var/run/rsyslogd.pid
|
||
![]()
7 years ago
|
if [ "$ANTIVIRUS" == "clamav" ];
|
||
|
then
|
||
![]()
7 years ago
|
echo ".try_include /etc/rmilter-clamav.conf" >> /etc/rmilter.conf
|
||
![]()
7 years ago
|
fi
|
||
![]()
8 years ago
|
rmilter -c /etc/rmilter.conf
|
||
|
rsyslogd -n
|