I turned off all the login items and restarted. No issues with mail, but I am still having an issue with a process which starts up and just keeps trying to do something -- what I don't know. Have looked everywhere I could think of to see what is happening, but I am at a loss. Here are a few lines where the process starts from the launchd.log:
(user/2146959360) <Notice>: created
2023-02-01 16:50:43.294773 (user/2146959360) <Notice>: entering bootstrap mode
2023-02-01 16:50:43.296632 (com.apple.FileProvider) <Error>: Unknown key for plist importer (key: com.apple.xpc.activity type: dictionary)
2023-02-01 16:50:43.300678 (user/2146959360/com.apple.cfprefsd.xpc.agent) <Notice>: draining messages from com.apple.cfprefsd.agent
2023-02-01 16:50:43.302343 (com.apple.distnoted.xpc.agent) <Notice>: This service is defined to be constantly running and is inherently inefficient.
2023-02-01 16:50:43.302358 (user/2146959360/com.apple.distnoted.xpc.agent) <Notice>: internal event: WILL_SPAWN, code = 0
2023-02-01 16:50:43.302362 (user/2146959360/com.apple.distnoted.xpc.agent) <Notice>: service state: spawn scheduled
2023-02-01 16:50:43.302363 (user/2146959360/com.apple.distnoted.xpc.agent) <Notice>: service state: spawning
2023-02-01 16:50:43.302396 (user/2146959360/com.apple.distnoted.xpc.agent) <Notice>: launching: speculative
2023-02-01 16:50:43.302666 (user/2146959360/com.apple.distnoted.xpc.agent [384]) <Notice>: xpcproxy spawned with pid 384
2023-02-01 16:50:43.302671 (user/2146959360/com.apple.distnoted.xpc.agent [384]) <Notice>: internal event: SPAWNED, code = 0
2023-02-01 16:50:43.302673 (user/2146959360/com.apple.distnoted.xpc.agent [384]) <Notice>: service state: xpcproxy
2023-02-01 16:50:43.303333 (user/2146959360/com.apple.distnoted.xpc.agent [384]) <Notice>: internal event: SOURCE_ATTACH, code = 0
2023-02-01 16:50:43.305732 (user/2146959360/com.apple.lsd) <Error>: Event stream com.apple.launchservices.LSObserver is already monitored by system/com.apple.lsd [216], ignoring
2023-02-01 16:50:43.306464 (com.apple.coreimportd) <Error>: Unknown key for plist importer (key: NoEnvironmentVariables type: dictionary)
2023-02-01 16:50:43.317167 (user/2146959360) <Notice>: exiting bootstrap mode
2023-02-01 16:50:43.317349 (user/2146959360) <Warning>: failed lookup: name = com.apple.BTServer.cloudpairing, requestor = bluetoothd[150], error = 3: No such process
2023-02-01 16:50:43.317806 (user/88) <Warning>: failed lookup: name = com.apple.BluetoothCloudServices, requestor = bluetoothd[150], error = 3: No such process
2023-02-01 16:50:43.319641 (user/2146959360/com.apple.distnoted.xpc.agent [384]) <Warning>: Could not find uid associated with service: 0: Undefined error: 0 2146959360
2023-02-01 16:50:43.319650 (user/2146959360/com.apple.distnoted.xpc.agent [384]) <Error>: Service could not initialize: getpwuid(2146959360), error 0x72 - The specified username does not exist
2023-02-01 16:50:43.319653 (user/2146959360/com.apple.distnoted.xpc.agent [384]) <Error>: initialization failure: 22D49: xpcproxy + 23263 [170][84DD29BF-D516-3DD6-BC71-9905E5072384]: 0x72
2023-02-01 16:50:43.319655 (user/2146959360/com.apple.distnoted.xpc.agent [384]) <Notice>: internal event: INIT, code = 114
2023-02-01 16:50:43.319881 (user/2146959360/com.apple.distnoted.xpc.agent [384]) <Notice>: xpcproxy exited due to exit(78)
2023-02-01 16:50:43.319890 (user/2146959360/com.apple.distnoted.xpc.agent [384]) <Notice>: exited due to exit(78)
2023-02-01 16:50:43.319892 (user/2146959360/com.apple.distnoted.xpc.agent [384]) <Notice>: already handled failed init, ignoring
2023-02-01 16:50:43.319894 (user/2146959360/com.apple.distnoted.xpc.agent [384]) <Notice>: service state: exited
2023-02-01 16:50:43.319896 (user/2146959360/com.apple.distnoted.xpc.agent [384]) <Notice>: internal event: EXITED, code = 0
2023-02-01 16:50:43.319898 (user/2146959360) <Notice>: service inactive: com.apple.distnoted.xpc.agent
I really don't know what to do -- the process was originally being kicked off by a user that had been added to appease Microsoft, I deleted the use and it did get rid of one of the statue processes in /var/log/db/com.apple.xpc.launchd -- after the restart, got this log in launchd.log. Don't really have any idea where this user thing is coming from.
Thanks for your help, if anyone has any ideas I am sure open for suggestions ! Thanks again for the help, it is appreciated.