Postfix setup with GMail relay

May 12, 2015 1.5k views
Email CoreOS

Hello, whenever I see people discussing Postfix configuration it seems they are looking to do two things mostly:

  • configure a local SMTP server on their machine, and have each mail sent to this address forwarded to their own GMail account

  • have GMail use their own SMTP server to send email from GMail using their server

I'm trying to do something which seems a bit different for me: I have one GMail email (say and I'd like to use it so that each time someone uses echo "hello" | mail <address>, the mail be sent through GMail as a relay to <address> a bit like if it was using a mail program -- is this possible?

1 Answer

Follow the steps on here
setting up the relayhost
and all of the authentication details for that host
hope it helps

Have another answer? Share your knowledge.