Skip to content

Health actuator mail details shows the port as -1 when using the default port #35247

@OrangeDog

Description

@OrangeDog

When mail is autoconfigured and spring.mail.port is not defined, the health contributor shows the port as -1 instead of what is actually used.

"mail": {
  "status": "UP",
  "details": {
    "location": "smtp.example.com:-1"
  }
}

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions