1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-06-06 23:36:26 +02:00
Mailu/postfix/start.sh

12 lines
237 B
Bash
Raw Normal View History

2016-03-02 21:25:56 +01:00
#!/bin/bash
2016-03-02 21:25:56 +01:00
# Substitute configuration
for VARIABLE in `env | cut -f1 -d=`; do
sed -i "s={{ $VARIABLE }}=${!VARIABLE}=g" /etc/postfix/*.cf
2016-03-02 21:25:56 +01:00
done
# Actually run Postfix
2016-03-20 15:37:15 +01:00
rm -f /var/run/rsyslogd.pid
/usr/lib/postfix/master &
rsyslogd -n