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

[JENKINS-64141] Restore localhost as default SMTP server #262

Merged
merged 2 commits into from
Nov 20, 2020

Conversation

thomasgl-orange
Copy link
Contributor

See JENKINS-64141.

This is a very minimal change to restore a pre-2.79 behavior: having no SMTP server address (the default setting) means localhost will be used, which is often the right choice.
I've kept the MailAccount.isSmtpServerValid() method around, because it could still be a place to implement other controls (like checking that the value, if any, looks like an FQDN or IP address), but it now always returns true.

@basil basil added the bug label Nov 20, 2020
@basil
Copy link
Member

basil commented Nov 20, 2020

Thanks for the PR! Based on my reading of the code, the original behavior in Email Extension 2.77 and earlier technically only allowed a blank SMTP server for the default account (not for additional accounts), but I think allowing a blank SMTP server in all cases as in this PR makes more sense.

@basil basil merged commit b0249cc into jenkinsci:master Nov 20, 2020
@basil
Copy link
Member

basil commented Nov 28, 2020

Released in 2.80.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants