I was not able to do this with Lemmy. On both Mastodon and Matrix I use my base domain just like for my email address but for Lemmy I had to use the subdomain.
The biggest issue was that both of them use webfinger and it was impossible to point that file to two services.