I am moving an old Wordpress install to a new CentOS LEMP stack VPS. I want to set up email for the new VPS. It came with sendmail installed by default but I find it to be overkill. I just need a lightweight email setup for outbound mail from Wordpress contact forms, notifications, etc.
I currently use Google Apps for email on this domain. Is it possible to configure the VPS to relay emails through the same mailbox hosted on GApps? My old shared hosting account (WPEngine) had the notifications email set up with the same name as my GApps, however it wasn't authenticated through GApps. It was just coincidental that the email address ended up being the same.
My current setup with sendmail can send emails but they are not authenticated through GApps and the email address format looks like this: email@example.com. I am aware I can masquerade the subdomain (localhost), but I am unsure how to change the user (root) to something else?
Ultimately, I do not want emails building up on the VPS, but rather in the GApps mailbox. I want to keep the VPS as clean as possible and relay all emails through GApps.