mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Allow custom main.cf settings
This commit is contained in:
parent
2ff42baf41
commit
0e2ef0f8c2
|
@ -173,6 +173,15 @@ case $DMS_SSL in
|
|||
|
||||
esac
|
||||
|
||||
if [ -f /tmp/postfix/main.cf ]; then
|
||||
while read line; do
|
||||
postconf -e "$line"
|
||||
done < /tmp/postfix/main.cf
|
||||
echo "Loaded '/tmp/postfix/main.cf'"
|
||||
else
|
||||
echo "==> Warning: '/tmp/postfix/main.cf' is not provided. No extra postfix settings loaded."
|
||||
fi
|
||||
|
||||
echo "Fixing permissions"
|
||||
chown -R 5000:5000 /var/mail
|
||||
mkdir -p /var/log/clamav && chown -R clamav:root /var/log/clamav
|
||||
|
|
Loading…
Reference in a new issue