Scenario
I have domain.com
on GSuite. Then I have aliasdomain.com
(which is set as an alias domain for that in GSuite.) And I have a GSuite User admin
(which is both admin@domain.com
and admin@aliasdomain.com
just like I want them to be. Emails sent to either are received via gmail's admin@domain.com
account, all good.
Now I have an Ubuntu 18.04 Server from which I would like to send mail as admin@aliasdomain.com
. I have learned that I need to use Google SMTP to accomplish that.
What I've tried
I've also learned that nullmailer is light and since I only wish to send a mail very occasionally, it is perfect, so I'd like to use that preferably, but Postfix or sendmail can also be an option, if that doesn't work.
Unfortunately I have very limited understanding of anything related to mail transfer agents, etc. But I've tried my best to search for a resource or a guide for this particular scenario, but most of them are quite advanced to me, and they assume the reader to be very well-versed.
What I need
How do I set up sending mail using the above scenario? I am hoping someone kind enough to guide me in this regard.
Thank you very much.