HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   postfix: relay by gmail (http://www.howtoforge.com/forums/showthread.php?t=19971)

mexus 31st January 2008 01:27

postfix: relay by gmail
 
I have followed the Virtual Users And Domains With Postfix, Courier And MySQL (CentOS 5.1)
I don't have reverse dns, so i want to relay all my e-mail with gmail.
How to enable STARTTLS in postfix??

topdog 31st January 2008 08:19

Does gmail allow relaying ? How do u plan to do this ? I think the howto enables STARTTLS by default.

mexus 31st January 2008 19:56

Via SMTP.
Yes it does.

topdog 31st January 2008 20:16

Okay in that case postfix does support postfix as a client authentication.

Add this to your config
Code:

smtp_sasl_auth_enable = yes
 smtp_sasl_password_maps = hash:/etc/postfix/gmail_passwd
 smtp_sasl_type = cyrus
 relayhost = [smtp.gmail.com]:587

Create the file /etc/postfix/gmail_passwd
Code:

[smtp.gmail.com]:587            username@gmail.com:password
Then
Code:

postmap /etc/postfix/gmail_passwd
postfix restart


mexus 1st February 2008 01:13

Yes it works! Thanks.

razor7 11th September 2012 04:59

Hi, followed instructions but in ISPConfgi 3 I get this

Quote:

...dsn=5.7.0, status=bounced (host smtp.gmail.com[74.125.130.109]] said: 530 5.7.0 Must issue a STARTTLS command first.
Is there anything I can do?

Thanks a lot!


All times are GMT +2. The time now is 01:40.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.