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 [email protected]
rather than [email protected]
, or, even worse, [email protected]
?
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.
I'll assume you have a standard "end user" gmail account (
[email protected]
), not some Google Apps hosted domain.In that case, GMail will rewrite all outgoing mails you send via your account so it will come from
[email protected]
, and not[email protected]
in order to prevent you doing exactly that...