mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-07-26 11:35:55 +00:00
11 lines
280 B
Bash
Executable file
11 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
|