Skip to content

New-DbaDbMailAccount, Set-DbaDbMailAccount - Add Port, SSL, and authentication parameters#10257

Merged
potatoqualitee merged 1 commit into
developmentfrom
claude/issue-9139-20260317-0856
Mar 18, 2026
Merged

New-DbaDbMailAccount, Set-DbaDbMailAccount - Add Port, SSL, and authentication parameters#10257
potatoqualitee merged 1 commit into
developmentfrom
claude/issue-9139-20260317-0856

Conversation

@andreasjordan
Copy link
Copy Markdown
Collaborator

Adds Port, EnableSSL, UseDefaultCredentials, UserName, and Password parameters to New-DbaDbMailAccount and introduces a new Set-DbaDbMailAccount command for modifying existing Database Mail accounts.

This enables support for cloud email providers (Office 365, Gmail) and Windows-authenticated domain mail relays.

Closes #9139

Generated with Claude Code

…ntication parameters

- Enhanced New-DbaDbMailAccount with Port, EnableSSL, UseDefaultCredentials,
  UserName, and Password parameters for SMTP server configuration
- Created Set-DbaDbMailAccount for modifying existing mail accounts and
  their mail server settings (port, SSL, auth, server rename)
- Updated New-DbaDbMailAccount parameter validation tests
- Created integration and unit tests for Set-DbaDbMailAccount
- Registered Set-DbaDbMailAccount in dbatools.psd1 and dbatools.psm1

Closes #9139

(do *MailAccount*)

Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
@andreasjordan andreasjordan marked this pull request as ready for review March 18, 2026 18:49
@potatoqualitee potatoqualitee merged commit 4f1e56c into development Mar 18, 2026
15 checks passed
@potatoqualitee potatoqualitee deleted the claude/issue-9139-20260317-0856 branch March 18, 2026 22:54
@potatoqualitee
Copy link
Copy Markdown
Member

awesome! 💯

potatoqualitee added a commit that referenced this pull request Apr 10, 2026
… (review of #10257)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

Ability to specify Port, Require SSL and SMTP Authentication Type for New-DbaDbMailAccount

2 participants