As I'm getting more and more frustrated with attempting to use sendmail to send web app emails that won't be flagged as spam, I've turned my attention to using postfix instead. I've found this Linode guide describing how to use Gmail as a relay for postfix, and it seems to tick most of the boxes - I have a Gmail account, so I could easily allow it as an external app on my account.
My question is this: will this work with virtual domains? Meaning, if I have several web apps with their own limited (read: not in the sudo group) linux users, and these apps send emails out for various reasons, can I make it so that postfix's virtual domains/aliases work properly and that the emails' senders are user@virtualhost.com
rather than user@gmail.com
, or, even worse, me@gmail.com
?
I don't want to install and configure postfix in this way if it's not going to work the way I need it to.