Configure Postfix to send/relay emails Gmail (smtp.gmail.com) via port 587
- by tom smith
Hi.
Using Centos 5.4, with Postfix. I can do a
mail [email protected]
subject: blah
test
.
Cc:
and the msg gets sent to gmail, but it resides in the spam folder, which is to be expected.
My goal is to be able to generate email msgs, and to have them appear in the regular Inbox! As I understand Postfix/Gmail, it's possible to configure Postfix to send/relay mail via the authenticated/valid user using port 587, which would no longer have the mail be seen as spam.
I've tried a number of parameters based on different sites/articles from the 'net, with no luck. Some of the articles, actually seem to conflict with other articles! I've also looked over the stacflow postings on this, but i'm still missing something... Also talked to a few people on IRC (Centos/Postfix) and still have questions..
So, i'm turning to Serverfault, once again!
If there's someone who's managed to accomplish this, would you mind posting your main.cf, sasl-passwd, and any other conf files that you use to get this working! If I can review your config files, I can hopefully see where I've screwed up, and figure out how to correct the issue.
Thanks for reading this, and any help/pointers you provide!
ps, If there is a stackflow posting that speaks to this that I may have missed, feel free to point it out to me!
-tom