If you want to use gmail servers as relay when sending emails you can simply use [smtp.gmail.com]:587 with starttls and authorising with existing gmail account. However you probably need to overwrite from part with your gmail account (I don't think they will allow to use different email in from field than sending account).
If you are not sending a lot of emails it is recommended use mailgun or sendgrid or other mass mailing service as relay. Anvar Kuchkartaev an...@anvartay.com Original Message From: Pau Peris Sent: domingo, 5 de noviembre de 2017 07:29 p.m. To: postfix-users Subject: Propper way to deliver email messages to gmail Hi, could someone tell, in his opinion, which would be the right way to deliver remote messages to gmail? Looking at this [1] URL looks like the only way available is through port 25. If i wanted my Postfix to communicate through 465 or 587 it would need a user/pass but it looks weird to me. I mean, should an MTA really need an account for each other MTA where to deliver email messages? Of course not. Don't know if i'm missing something here. This question comes because in my domains table, from the MySQL database managed by Postfix, there's a domain which used to be virtual but right now it is not so i changed the transport to smtp:[aspmx.l.google.com]:25 Thanks, [1] https://support.google.com/a/answer/176600?hl=en