Maintain control of your Microsoft 365 data
Post Reply
matteu
Veeam Legend
Posts: 725
Liked: 118 times
Joined: May 11, 2018 8:42 am
Contact:

Powershell Update SMTP settings

Post by matteu »

Hello,

I can't configure SMTP setting with SSL on if authentication is not used.
I can with GUI, but I can't with powershell.

Set-VBOEmailSettings : Cannot set parameter: UseSSL. Authentication is not used.

When I try : Set-VBOEmailSettings -UseSSL:$false is not working neither...
Mildur
Product Manager
Posts: 8735
Liked: 2296 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Powershell Update SMTP settings

Post by Mildur »

Hi matteu

Please post the entire command you used.
Then I can try it tomorrow in my lab. You can anonymize the parameter.

Thanks
Fabian
Product Management Analyst @ Veeam Software
matteu
Veeam Legend
Posts: 725
Liked: 118 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Powershell Update SMTP settings

Post by matteu »

Reset your SMTP configuration with GUI and then use these command :

Code: Select all

Set-VBOEmailSettings -EnableNotification:$true -SMTPServer "test.domain.com" -From "test@domain.com" -To "test@domain.com"
Set-VBOEmailSettings -UseAuthentication:$false
Set-VBOEmailSettings -UseSSL:$false
There is an issue for the switch UseSSL because it's impossible to use it when UseAuthentication is equal to false.
I understand I can't use it as -UseSSL but I should be able to use it as -UseSSL:$false to disable it
Mildur
Product Manager
Posts: 8735
Liked: 2296 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Powershell Update SMTP settings

Post by Mildur »

Hi Matteu

Thanks. Seeing the same in my lab.
Let me check if it's a known bug. It must be possible.
Doesn't make sense that it doesn't work. :)

PS:
I formatted your cmdlets as Code
Product Management Analyst @ Veeam Software
matteu
Veeam Legend
Posts: 725
Liked: 118 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Powershell Update SMTP settings

Post by matteu »

Probably fixed in the next version :p

I'm happy to contribute for some future fixes (mainly about Powershell :p) :)
Mildur
Product Manager
Posts: 8735
Liked: 2296 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Powershell Update SMTP settings

Post by Mildur »

Hi matteu

It‘s confirmed as a bug and will be fixed in a future version. Thank you very much for finding the bug :)

Thanks
Fabian
Product Management Analyst @ Veeam Software
matteu
Veeam Legend
Posts: 725
Liked: 118 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Powershell Update SMTP settings

Post by matteu »

Thanks for update :)
Mildur
Product Manager
Posts: 8735
Liked: 2296 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Powershell Update SMTP settings

Post by Mildur »

Hi Matteu

Good news. It is fixed with VB365 v6a CP2: https://www.veeam.com/kb4347
PowerShell
The Set-VBOEmailSettings cmdlet does not support the configuration of connecting using SSL without authentication.
Thanks again for finding and reporting the bug :)
Fabian
Product Management Analyst @ Veeam Software
matteu
Veeam Legend
Posts: 725
Liked: 118 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Powershell Update SMTP settings

Post by matteu »

Hello,

Thank you :)
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 13 guests