mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
13 lines
329 B
Bash
13 lines
329 B
Bash
#!/usr/bin/env bash
|
|
# postsrsd-wrapper.sh, version 0.2.0
|
|
|
|
DOMAINNAME="$(hostname -d)"
|
|
sed -i -e "s/localdomain/$DOMAINNAME/g" /etc/default/postsrsd
|
|
|
|
if [ -n "$SRS_EXCLUDE_DOMAINS" ]; then
|
|
sed -i -e "s/^#\?SRS_EXCLUDE_DOMAINS=.*$/SRS_EXCLUDE_DOMAINS=$SRS_EXCLUDE_DOMAINS/g" /etc/default/postsrsd
|
|
fi
|
|
|
|
/etc/init.d/postsrsd start
|
|
|