In SharePoint 2016, When we share a document with other users, SharePoint send the sharing email to the users with the link of the item. In that email, from address is the user's own address ( which shared the document) and to address is end user's address.
But when we setup alerts in SharePoint, it send the email using the email address which we set in the outgoing email settings.
Now problem is, Alert email pass through our exchange relay but sharing emails blocked due to company policy.
Is there any workaround which force SharePoint to send the email always using the generic email address not user's own email address. Any powershell script or SMTP related configuration on SharePoint side only.