Some time you need to change the primary smtp address for the public folder inside the autodiscover.xml to prevent certificate name warning, this is the command :
set-Mailbox -PublicFolder “PUBLIC-FOLDER-MAILBOX” -PrimarySmtpAddress “PUBLIC-FOLDER-MAILBOX@domain.com” -EmailAddressPolicyEnabled $false
To check if it is changed :
Get-Mailbox -PublicFolder | ft Name,primarysmtpaddress -A
Autodiscover.xml created on the fly and there no file to edit. after you run the command above you have to wait few minutes. right click on the Outlook icon and “Test Connectivity”, at the bottom of the XML you will see if the value has been changed !