Documentation Index
Fetch the complete documentation index at: https://mintlify.com/HewlettPackard/POSH-HPEOneView/llms.txt
Use this file to discover all available pages before exploring further.
Synopsis
Configure SMTP server address, port, connection security, authentication, sender address, and global alert email state.Syntax
Default — configure SMTP settings
Disabled — disable alert email notifications
Description
Set-OVSmtpConfig configures the SMTP email notification settings on the appliance. You can set the outbound mail server, TCP port, transport security, authentication password, and the sender email address. You can also globally enable or disable alert email notifications.
Once SMTP is configured, use Add-OVSmtpAlertEmailFilter to define which alerts are sent and to which recipients.
By default, the cmdlet waits for any resulting async task to complete before returning. Pass -Async to receive the task object immediately and manage completion yourself with Wait-OVTaskComplete.
Parameters
The “From” email address used for all outbound alert notifications. Must be a valid RFC 5321 email address.
Hostname or IP address of the SMTP relay server.Alias:
-SmtpServerTCP port number for the SMTP connection. Common values:
25 (plain), 587 (STARTTLS), 465 (TLS).Alias: -SmtpPortTransport-layer security mode for the SMTP connection. Valid values:
None(default) — plain textTLS— implicit TLSStartTls— opportunistic STARTTLS
Authentication credential for the SMTP server. Accepts a
SecureString or a plain-text String. When a SecureString is provided, it is decrypted internally before being sent to the API.Enable global alert email notifications. Mutually exclusive with
-AlertEmailDisabled.Disable global alert email notifications. When used, this is the only required parameter besides
-ApplianceConnection.Configure the appliance to resolve the mail server via DNS MX record lookup rather than using a static
-Server value.Return the async task object immediately without waiting for completion. Use
Wait-OVTaskComplete to monitor the task.Specify one or more appliance connection objects or names. Defaults to the default connection in
$ConnectedSessions.Examples
Configure basic SMTP with a sender address
Configure SMTP with STARTTLS and authentication
Disable all email alerting
Configure asynchronously
Output
When-Async is not used: the cmdlet waits for task completion and returns nothing on success.
When -Async is used: HPEOneview.Appliance.TaskResource — the async task object.
Related cmdlets
- Get-OVSMTPConfig
- Get-OVSmtpAlertEmailFilter
- Add-OVSmtpAlertEmailFilter — see source repository for cmdlet usage
- Wait-OVTaskComplete