Skip to content

Setting RELAY_HOST forces expectation to provide relay credentials #3842

@cfis

Description

@cfis

📝 Preliminary Checks

  • I tried searching for an existing issue and followed the debugging docs advice, but still need assistance.

👀 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions