1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-12-25 15:51:31 +00:00
Files
mailcow-dockerized/data/Dockerfiles/postfix/postfix.sh
2016-12-15 10:07:46 +01:00

12 lines
280 B
Bash
Executable File

#!/bin/bash
trap "postfix stop" EXIT
sed -i "/^user/c\user = ${DBUSER}" /opt/postfix/conf/sql/*
sed -i "/^password/c\password = ${DBPASS}" /opt/postfix/conf/sql/*
sed -i "/^dbname/c\dbname = ${DBNAME}" /opt/postfix/conf/sql/*
postfix -c /opt/postfix/conf start
sleep infinity