I am having difficulties troubleshooting a Database Mail issue. When I try to stop and start the service using
sysmail_stop_sp, I see a critical error in the Administrative Logs on the server.
The relevant exception appears to be:
Message: Access to the path 'C:\Windows\Microsoft.NET\Framework64\ v2.0.50727\Config\machine.config' is denied.
I am not finding good documentation on which Windows account is used for Database Mail. I thought it would be the SQLAgent service. I have tried changing the permissions of this user to no avail.
Any guidance is appreciated.