'Authenticated user field in email shows primary email when using aliases

So I have an email with a custom domain and when I send an email using an alias, my primary email is shown in the source of the mail in the field Received:(authenticated user [email protected]). In all the other fields the alias email is shown. I've set up dkim, spf and dmarc. Is this how it's supposed to work or am I doing something wrong? I'm using gandi mail as email provider.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source