I cannot use mail_daemon or BeAM for Gmail. I had no luck getting G-Mail working with Claw_Mail or Trojita either–same issue.
Less secure apps & your Google Account
To help keep your account secure, from May 30, 2022, Google no longer supports the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password.
Important: This deadline does not apply to Google Workspace or Google Cloud Identity customers. The enforcement date for these customers will be announced on the Workspace blog at a later date.
For more information, continue to read.
If an app or site doesn’t meet our security standards, Google might block anyone who’s trying to sign in to your account from it. Less secure apps can make it easier for hackers to get in to your account, so blocking sign-ins from these apps helps keep your account safe.
I read elsewhere for those using G-Mail prior to this deadline were grand-fathered continued service.