Skip to content
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

Allow leaving OSEM_SMTP_DOMAIN unset #2702

Merged
merged 1 commit into from
Mar 6, 2021

Conversation

AndrewKvalheim
Copy link
Member

Checklist

  • I have read the Contribution & Best practices Guide.
  • My branch is up-to-date with the upstream master branch.
  • The tests pass locally with my changes.
  • I have added tests that prove my fix is effective or that my feature works (if appropriate).
  • I have added necessary documentation (if appropriate).

Short description of what this resolves

The SMTP setting :domain (i.e. HELO domain) is often unnecessary and falls back to a reasonable default.

Leaving OSEM_SMTP_DOMAIN unset, however, currently causes :domain to be explicitly set to nil, which in our case caused mail delivery to fail with EOFError.

Changes proposed in this pull request

Omit nil values from the Action Mailer configuration.

@AndrewKvalheim
Copy link
Member Author

CI currently failing at #2703

Allows leaving `smtp_settings[:domain]` unspecified. Explicitly setting
it to `nil` (as when `OSEM_SMTP_DOMAIN` is unset) overrides the default
value of `'localhost.localdomain'` and caused SMTP connections to fail
with `EOFError`.
@hennevogel hennevogel force-pushed the omit-nil-smtp-settings branch from e530fbe to 266fdba Compare March 6, 2021 20:10
@hennevogel hennevogel merged commit 30c2db6 into openSUSE:master Mar 6, 2021
@AndrewKvalheim AndrewKvalheim deleted the omit-nil-smtp-settings branch June 13, 2021 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants