Apple Mail application on MacOS keeps asking for the password of a deleted account
The MacOS Mail application keeps asking me to enter the password of a mail account I deleted years ago.
Let's call the account "foo.com" Every few minutes, a dialog pops up that says, "Can't connect to the account 'foo.com'" I used to have a foo.com mail account, but I deleted it years ago. There is no foo.com account listed in Settings -> Internet Accounts (which I get to by choosing Mail -> Accounts..." in the Mail application.)
I am running 12.2.1.
(If I enter a random sequence of letters, it says "Unable to verify account name or password.")
How do I get Mail to forget about this long-deleted account?
MacBook Pro 15″, macOS 11.6