-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
postfix custom.sh working? #76
Comments
Thank you @OliverPA77 my pr #93 is exactly for the same ! I believe will be a good option for docker container entrypoint 1.) similar to this one |
@OliverPA77 @iredmail team please consider it or consider more general docker entrypoint to execute custom script ! |
On a server (VM, VPS, etc), we have cron job like this:
And full content of this
|
look as a good option ! but docker container don't have it !
|
Last commit added script |
Whereas e.g. custom dovecot configs get applied, I cannot get custom.sh working for postfix.
I also couldn't find anywhere such a custom.sh would get called.
ll in custom postfix path:
root@mail:/# ll /opt/iredmail/custom/postfix/custom* -rwxr-x--x 1 root postfix 165 Sep 9 09:03 /opt/iredmail/custom/postfix/custom.sh*
custom.sh content:
root@mail:/# cat /opt/iredmail/custom/postfix/custom.sh #!/bin/bash postconf -e smtpd_upstream_proxy_protocol=haproxy postconf -e postscreen_upstream_proxy_protocol=haproxy postconf -e mynetworks='127.0.0.1 192.168.2.3'
However as soon as I added this patch to entrypoints/postfix.sh it starts getting applied:
if [ -f ${POSTFIX_CUSTOM_CONF_DIR}/custom.sh ]; then LOG "Found and use custom config script: ${POSTFIX_CUSTOM_CONF_DIR}/custom.sh." bash ${POSTFIX_CUSTOM_CONF_DIR}/custom.sh fi
Could it be that this is missing?
The text was updated successfully, but these errors were encountered: