Open rhysxevans opened 5 years ago
@rhysxevans Hello, I did not reproduce the problem here
I'm using this env file
cat .env
RELAY_MYNETWORKS="127.0.0.0/8 172.29.0.0/24"
and docker-compose file
version: '2'
services:
smtp-relay:
image: turgon37/smtp-relay
container_name: smtp-relay
hostname: smtp-relay
restart: unless-stopped
environment:
- "RELAY_MYNETWORKS=${RELAY_MYNETWORKS}"
And run
source .env
docker-compose up -d
give me
docker-compose exec smtp-relay grep '^mynetworks' /etc/postfix/main.cf
mynetworks = 127.0.0.0/8 172.29.0.0/24
Are you using some other quote or escape character ?
Hi
Firstly thanks for the project, it is appreciated.
I am having an issue when sourcing the environment variables from the system. IE
source .env
, does not work with spaceseg
RELAY_MYNETWORKS=127.0.0.0/8 172.29.0.0/24
is not valid.my docker-compose file looks like - not complete file
I am able to enter the variables as
RELAY_MYNETWORKS="127.0.0.0/8 172.29.0.0/24"
, however that doesn't reflect in the postfix configuration correctly., you end up withmynetworks = "127.0.0.0/8 172.29.0.0/24"
I can work around this by adding the following to the start.sh script (near the top)
Any chance of getting "logic" this added to the image ?
Thanks