1 (edited by dakobg 2022-01-07 17:43:38)

Topic: postfix main.cf overwrites docker conatiner

docker deployment

Hi,

Any idea how I can do overwrites in main.cf ?
I don't see any suitable place to do that in data/custom/postfix/

I want to overwrite mynetworks= parameter in order to allow mail proxy
Right now I do that via bash script to run the container

#!/bin/bash
docker-compose up -d
sleep 5
docker exec iredmail postconf -e mynetworks=127.0.0.1,192.168.1.10/32

This work without issues, but is somehow annoying.
Probably I miss something ?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: postfix main.cf overwrites docker conatiner

Update /opt/iredmail/custom/postfix/custom.sh and run "postconf" command to update parameters. for example:

postconf -e mynetworks='127.0.0.1,192.168.1.10/32'

3

Re: postfix main.cf overwrites docker conatiner

Hi,

I notice this option, however this is more related to iredmail easy

https://docs.iredmail.org/iredmail-easy … ctice.html

What is needed, I think is related to docker entrypoint scripts.
I will update github prepo pr

4 (edited by dakobg 2022-01-28 18:58:47)

Re: postfix main.cf overwrites docker conatiner

actually https://github.com/iredmail/dockerized/issues/76

Thanks !

this can be mark as revolved