Set-VESPSmtpSettings
Short Description
Modifies SMTP settings.
Note |
|
In Veeam Backup & Replication 12.1 and Veeam Backup for Microsoft 365 7a, this cmdlet became deprecated. Use the |
Product: Veeam Backup & Replication, Veeam Backup for Microsoft 365
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VESPSmtpSettings [-ConfigureSmtpSettings] [-Server <String>] [-Port <Int32>] [-From <String>] [-UseAuthentication] [-Credentials <PSCredential>] [-UseSSL] [<CommonParameters>] |
Detailed Description
This cmdlet modifies SMTP settings for Veeam Explorer for Microsoft SharePoint. These settings are necessary if you want to send restored items as email attachments.
To modify settings, enter the necessary parameters with new values. The parameters that you omit will remain unchanged.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
ConfigureSmtpSettings |
Defines that Veeam Explorer for Microsoft SharePoint will use the SMTP server settings for sending restored items. Default: False |
|
False |
Named |
False |
|
Credentials |
Specifies the credentials. The cmdlet will use these credentials for authenticating to an SMTP server.
Accepts the |
|
False |
Named |
False |
|
From |
Specifies an email address from which Veeam Explorer for Microsoft SharePoint will send restored SharePoint data. This email account must have the rights to connect to an SMTP server if the SMTP server requires authentication. |
|
False |
Named |
False |
|
Port |
Specifies a port number. The cmdlet will use this port number to connect to an SMTP server. |
|
False |
Named |
False |
|
Server |
Specifies the full DNS name or an IP address of the SMTP server. The cmdlet will use this information to send restored items in email messages. |
|
False |
Named |
False |
|
UseAuthentication |
Defines that the SMTP server requires SMTP authentication for outgoing mail. Default: False |
|
False |
Named |
False |
|
UseSSL |
Defines that a secure connection is required for sending emails. If you do not provide this parameter, email messages will be sent through a connection that does not require TLS authentication. Default: False |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Learn.
Output Object
The cmdlet returns the VESPSmtpSettings object that contains SMTP settings configured for Veeam Explorer for Microsoft SharePoint.
Examples
Modifying SMTP Settings
This example shows how to change credentials that Veeam Explorer for Microsoft SharePoint uses for authenticating to an SMTP server.
|
$credentials = Get-Credential Set-VESPSmtpSettings -ConfigureSmtpSettings -Server "test.support.local" -Port 25 -From "administrator@test.local" -UseAuthentication -Credentials $credentials -UseSSL |
Perform the following steps:
- Run the
Get-Credentialcmdlet to create a credential object. Type Windows credentials to connect to the Veeam Backup for Microsoft 365 server. Save the result to the$credentialsvariable. - Run the
Set-VESPSmtpSettingscmdlet. Specify the following settings:- Provide the
ConfigureSmtpSettingsparameter. - Specify the
Serverparameter value. - Specify the
Portparameter value. - Specify the
Fromparameter value. - Provide the
UseAuthenticationparameter. - Set the
$credentialsvariable as theCredentialparameter value. - Provide the
UseSSLparameter.
- Provide the
Related Commands