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
email@example.com -> firstname.lastname@example.org
I would like to redirect/forward all incoming mail for
email@example.com to the GMail account
firstname.lastname@example.org. That's the easy part.
Now for all outgoing mail sent by
email@example.com 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
firstname.lastname@example.org, 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?