I'm using postfix as a mail relay in a very simple setup, mostly with aliases, forwarding mails to GMail.
My main goal with this is to minimize the need for mailboxes on my server.
Let's assume I have the following alias
firstname.lastname@example.org -> email@example.com
I would like to redirect/forward all incoming mail for
firstname.lastname@example.org to the GMail account
email@example.com. That's the easy part.
Now for all outgoing mail sent by
firstname.lastname@example.org GMail offers me the feature to send mails in behalf of a different account in the settings.
However, in order for this to work, GMail needs to be able to login via SMTP for
email@example.com, which is just an alias.
Is there a way to forward incoming mails with an alias by still being able to send mails via SMTP/SASL?