forked from docker/proxmoxbackupserver
postfix fixes
This commit is contained in:
parent
eb46e76973
commit
eee4e9e15e
|
|
@ -25,6 +25,7 @@ services:
|
|||
- 8007:8007
|
||||
environment:
|
||||
- ROOT_PASSWD="password"
|
||||
- POSTFIX_RELAY_HOST=""
|
||||
volumes:
|
||||
- ./data/etc-proxmox-backup:/etc/proxmox-backup
|
||||
- ./data/var-lib-proxmox-backup:/var/lib/proxmox-backup
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ chmod -R 700 /datastore
|
|||
#Change postfix config
|
||||
sed -i "s/smtp unix - - y - - smtp/smtp unix - - n - - smtp/g" /etc/postfix/master.cf
|
||||
sed -i "s/docker_hostname/$(hostname)/g" /etc/postfix/main.cf
|
||||
sed -i "s/\#relayhost = /\relayhost = $(POSTFIX_RELAY_HOST)/g" /etc/postfix/main.cf
|
||||
sed -i "s/\#relayhost = /relayhost = ${POSTFIX_RELAY_HOST}/g" /etc/postfix/main.cf
|
||||
|
||||
#Set password from environment variable
|
||||
echo "root:$ROOT_PASSWD" | chpasswd
|
||||
|
|
|
|||
Loading…
Reference in New Issue