📝 Preliminary Checks
👀 What Happened?
I have an internal email server that uses a postfix server I have setup on AWS as a relay. My configuration is:
RELAY_HOST=host.aws.com
RELAY_PORT=587
Notice I do not set RELAY_USER nor RELAY_PASSWORD. That is because the relay server is configured to only accept traffic from the IP address of the internal server.
However, by setting RELAY_HOST, SMTP authentication is turned on here:
|
function _relayhost_configure_postfix() { |
Which is called from here:
|
_relayhost_configure_postfix |
This code is a bit too aggressive. Instead, I it should enable SMTP authentication only if RELAY_USER or RELAY_PASSWORD are set.
👟 Reproduction Steps
See above.
🐋 DMS Version
v13.3.1
💻 Operating System and Architecture
Fedora 39 x64
⚙️ Container configuration files
No response
📜 Relevant log output
No response
Improvements to this form?
No response
📝 Preliminary Checks
👀 What Happened?
I have an internal email server that uses a postfix server I have setup on AWS as a relay. My configuration is:
Notice I do not set
RELAY_USERnorRELAY_PASSWORD. That is because the relay server is configured to only accept traffic from the IP address of the internal server.However, by setting RELAY_HOST, SMTP authentication is turned on here:
docker-mailserver/target/scripts/helpers/relay.sh
Line 165 in 9ac1102
Which is called from here:
docker-mailserver/target/scripts/helpers/relay.sh
Line 186 in 9ac1102
This code is a bit too aggressive. Instead, I it should enable SMTP authentication only if
RELAY_USERorRELAY_PASSWORDare set.👟 Reproduction Steps
See above.
🐋 DMS Version
v13.3.1
💻 Operating System and Architecture
Fedora 39 x64
⚙️ Container configuration files
No response
📜 Relevant log output
No response
Improvements to this form?
No response