<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Postfix Gmail SMTP Relay</title>
	<atom:link href="http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/feed/" rel="self" type="application/rss+xml" />
	<link>http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/</link>
	<description>I bring you the best from the web - random bookmarks.</description>
	<lastBuildDate>Fri, 14 Oct 2011 13:38:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: practicalclouds</title>
		<link>http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/#comment-1485</link>
		<dc:creator><![CDATA[practicalclouds]]></dc:creator>
		<pubDate>Fri, 02 Sep 2011 16:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/#comment-1485</guid>
		<description><![CDATA[Great article, thanks - still very useful today, despite being a few years old! :)

I found that simply relaying from a server containing a postfix install via google can work without having to create the SSL certs at all.  I created the /etc/postfix/sasl_passwd file and added this to /etc/postfix/main.cf instead: -

relayhost = [smtp.gmail.com]:587

#auth
smtp_sasl_auth_enable=yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd

#tls
smtp_use_tls = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
smtp_tls_note_starttls_offer = yes
tls_random_source = dev:/dev/urandom
smtp_tls_enforce_peername = no

Very easy as creating the cert was the fiddly bit - and one that I wished to automate, as I&#039;m adding a profile for an Amazon EC2 instances which will do this automatically when you start up a new instance (it is a pain to relay email from Amazon EC2 as it is generally not trusted).

Once written the profile will be here: http://www.practicalclouds.com/content/guide/gmailrelay (I&#039;ll be sure to link back here)

Many thanks



Dave]]></description>
		<content:encoded><![CDATA[<p>Great article, thanks &#8211; still very useful today, despite being a few years old! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I found that simply relaying from a server containing a postfix install via google can work without having to create the SSL certs at all.  I created the /etc/postfix/sasl_passwd file and added this to /etc/postfix/main.cf instead: -</p>
<p>relayhost = [smtp.gmail.com]:587</p>
<p>#auth<br />
smtp_sasl_auth_enable=yes<br />
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd</p>
<p>#tls<br />
smtp_use_tls = yes<br />
smtp_sasl_security_options = noanonymous<br />
smtp_sasl_tls_security_options = noanonymous<br />
smtp_tls_note_starttls_offer = yes<br />
tls_random_source = dev:/dev/urandom<br />
smtp_tls_enforce_peername = no</p>
<p>Very easy as creating the cert was the fiddly bit &#8211; and one that I wished to automate, as I&#8217;m adding a profile for an Amazon EC2 instances which will do this automatically when you start up a new instance (it is a pain to relay email from Amazon EC2 as it is generally not trusted).</p>
<p>Once written the profile will be here: <a href="http://www.practicalclouds.com/content/guide/gmailrelay" rel="nofollow">http://www.practicalclouds.com/content/guide/gmailrelay</a> (I&#8217;ll be sure to link back here)</p>
<p>Many thanks</p>
<p>Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon zendatta</title>
		<link>http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/#comment-1468</link>
		<dc:creator><![CDATA[jon zendatta]]></dc:creator>
		<pubDate>Tue, 07 Jun 2011 18:07:10 +0000</pubDate>
		<guid isPermaLink="false">http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/#comment-1468</guid>
		<description><![CDATA[I got this working on Ubuntu 10.10 Cheers]]></description>
		<content:encoded><![CDATA[<p>I got this working on Ubuntu 10.10 Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lokalt backupscript for Ubuntu &#124; Techsiden</title>
		<link>http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/#comment-1467</link>
		<dc:creator><![CDATA[Lokalt backupscript for Ubuntu &#124; Techsiden]]></dc:creator>
		<pubDate>Tue, 31 May 2011 18:41:39 +0000</pubDate>
		<guid isPermaLink="false">http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/#comment-1467</guid>
		<description><![CDATA[[...] Alt jeg har gjort er å sette opp at scriptet sender en mail til ønsket mailadresse når scriptet er ferdig med å kjøre. For at dette skal fungere må pakken mutt være installert. (aptitude install mutt) og at serveren din kan sende mail. Jeg velger å sende via Google (Gmail) sine SMTP servere. Her er en guide for å få til dette: http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/ [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Alt jeg har gjort er å sette opp at scriptet sender en mail til ønsket mailadresse når scriptet er ferdig med å kjøre. For at dette skal fungere må pakken mutt være installert. (aptitude install mutt) og at serveren din kan sende mail. Jeg velger å sende via Google (Gmail) sine SMTP servere. Her er en guide for å få til dette: <a href="http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/" rel="nofollow">http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Social Expo</title>
		<link>http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/#comment-1456</link>
		<dc:creator><![CDATA[The Social Expo]]></dc:creator>
		<pubDate>Thu, 10 Mar 2011 01:41:34 +0000</pubDate>
		<guid isPermaLink="false">http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/#comment-1456</guid>
		<description><![CDATA[It should be the &quot;+&quot; symbol.]]></description>
		<content:encoded><![CDATA[<p>It should be the &#8220;+&#8221; symbol.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mario Uzae</title>
		<link>http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/#comment-1454</link>
		<dc:creator><![CDATA[Mario Uzae]]></dc:creator>
		<pubDate>Wed, 02 Mar 2011 02:14:27 +0000</pubDate>
		<guid isPermaLink="false">http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/#comment-1454</guid>
		<description><![CDATA[Thaks for everything !!]]></description>
		<content:encoded><![CDATA[<p>Thaks for everything !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael M</title>
		<link>http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/#comment-1444</link>
		<dc:creator><![CDATA[Michael M]]></dc:creator>
		<pubDate>Sat, 01 Jan 2011 12:34:58 +0000</pubDate>
		<guid isPermaLink="false">http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/#comment-1444</guid>
		<description><![CDATA[I just got this working on my Ubuntu 10.10 box with Postfix 2.7.1. This is all I have in the /etc/postfix/main.cf file.

relayhost = [smtp.gmail.com]:587
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_loglevel = 1
smtp_tls_per_site = hash:/etc/postfix/tls_per_site
smtp_tls_CAfile = /etc/ssl/certs/Equifax_Secure_CA.pem
smtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_tls_session_cache

—

% cat sasl_passwd
[smtp.gmail.com]:587 user@gmail.com:pass

—

% cat tls_per_site
smtp.gmail.com MUST]]></description>
		<content:encoded><![CDATA[<p>I just got this working on my Ubuntu 10.10 box with Postfix 2.7.1. This is all I have in the /etc/postfix/main.cf file.</p>
<p>relayhost = [smtp.gmail.com]:587<br />
smtp_use_tls = yes<br />
smtp_sasl_auth_enable = yes<br />
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd<br />
smtp_sasl_security_options = noanonymous<br />
smtp_tls_loglevel = 1<br />
smtp_tls_per_site = hash:/etc/postfix/tls_per_site<br />
smtp_tls_CAfile = /etc/ssl/certs/Equifax_Secure_CA.pem<br />
smtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_tls_session_cache</p>
<p>—</p>
<p>% cat sasl_passwd<br />
[smtp.gmail.com]:587 <a href="mailto:user@gmail.com">user@gmail.com</a>:pass</p>
<p>—</p>
<p>% cat tls_per_site<br />
smtp.gmail.com MUST</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/#comment-1442</link>
		<dc:creator><![CDATA[Joe]]></dc:creator>
		<pubDate>Thu, 16 Dec 2010 00:29:03 +0000</pubDate>
		<guid isPermaLink="false">http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/#comment-1442</guid>
		<description><![CDATA[Thank you.  Great tutorial.]]></description>
		<content:encoded><![CDATA[<p>Thank you.  Great tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sven</title>
		<link>http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/#comment-1395</link>
		<dc:creator><![CDATA[Sven]]></dc:creator>
		<pubDate>Fri, 12 Nov 2010 15:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/#comment-1395</guid>
		<description><![CDATA[Thank you. Great tutorial. Worked within minutes. I just added in main.cf

smtp_tls_CApath = /etc/ssl/certs

In mail.log I still see a minor: Nov 12 14:27:27 voice postfix/smtp[5081]: certificate verification failed for smtp.gmail.com[209.85.227.109]:587: untrusted issuer /C=US/O=Equifax/OU=Equifax Secure Certificate Authority]]></description>
		<content:encoded><![CDATA[<p>Thank you. Great tutorial. Worked within minutes. I just added in main.cf</p>
<p>smtp_tls_CApath = /etc/ssl/certs</p>
<p>In mail.log I still see a minor: Nov 12 14:27:27 voice postfix/smtp[5081]: certificate verification failed for smtp.gmail.com[209.85.227.109]:587: untrusted issuer /C=US/O=Equifax/OU=Equifax Secure Certificate Authority</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: deebocean</title>
		<link>http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/#comment-1394</link>
		<dc:creator><![CDATA[deebocean]]></dc:creator>
		<pubDate>Tue, 09 Nov 2010 04:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/#comment-1394</guid>
		<description><![CDATA[for me (Centos) i had to make &quot;ldd /usr/libexec/postfix/smtp&quot; instead of &quot;ldd /usr/lib/postfix/smtp&quot; to work]]></description>
		<content:encoded><![CDATA[<p>for me (Centos) i had to make &#8220;ldd /usr/libexec/postfix/smtp&#8221; instead of &#8220;ldd /usr/lib/postfix/smtp&#8221; to work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/#comment-1392</link>
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Fri, 22 Oct 2010 21:05:18 +0000</pubDate>
		<guid isPermaLink="false">http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/#comment-1392</guid>
		<description><![CDATA[I have a question, what is all the fuss about setting up a SMTP server that at the other end uses google&#039;s SMTP to send mails?

why not use google&#039;s SMTP service directly, without using postfix?

Alex]]></description>
		<content:encoded><![CDATA[<p>I have a question, what is all the fuss about setting up a SMTP server that at the other end uses google&#8217;s SMTP to send mails?</p>
<p>why not use google&#8217;s SMTP service directly, without using postfix?</p>
<p>Alex</p>
]]></content:encoded>
	</item>
</channel>
</rss>

