I have exchange 2019 and I have an sql server. The sql server uses dbmail to send emails to a public folder. The email are sent from the sql server, that is confirmed in the msdb sysmail_allitems log. The emails are received by the exchange server that is confirmed in the frontend agent log, the problem is that the emails never reaches the public folder which is mail enabled.
I as a user have no problem sending an email to that public folder.
I have tried changing the email address the sql server sends to, to be a distributiongroup. The emails sent to that group is also not delivered. And I as a user have no problem sending to that group.
If I change the email address to a user mailbox the sql server sends to the emails are delivered.
How do I investigate this issue?