Postfix: SASL local relay vi Gmail relay (with @domain forwarding)
I’m setting up a new droplet, Ubuntu 14.04 LAMP stack. I’m looking to x-fer over my primary domain, but ran into a snag when looking at email forwarding – essentially, now I’m having to do this myself…
In my searches, I found a great configuration which I really like, but I’m worry on reliability (i.e. Google going no-no): I’ve setup Postifx @domain.com foward to my @gmail account, using smtp.gmail.com STMP relay host. The idea is postfix would accept the message, and then immediately relay it through to Gmail.
Local email, using sendmail / mail, does work. But, I hadn’t tested remote yet (given the dependency of my @domain email working).
My question is: is this option viable? Is there any possibility Gmail could cut off my relay? (using my login on the relay) While I have a basic understanding of SMTP, I don’t fully understand how mail relays through mail servers.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.