<?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/"
		>
<channel>
	<title>Comments on: Configure sendmail to work with Gmail smtp relay</title>
	<atom:link href="http://www.phinesolutions.com/sendmail-gmail-smtp-relay-howto.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.phinesolutions.com/sendmail-gmail-smtp-relay-howto.html</link>
	<description>A web log for web work</description>
	<lastBuildDate>Sun, 29 Jan 2012 09:00:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Allan Brinton</title>
		<link>http://www.phinesolutions.com/sendmail-gmail-smtp-relay-howto.html/comment-page-2#comment-1854</link>
		<dc:creator>Allan Brinton</dc:creator>
		<pubDate>Sun, 29 Jan 2012 09:00:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.phinesolutions.com/?p=179#comment-1854</guid>
		<description>Thanks-a-mundo for the post.Really thank you! Wonderful.</description>
		<content:encoded><![CDATA[<p>Thanks-a-mundo for the post.Really thank you! Wonderful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco</title>
		<link>http://www.phinesolutions.com/sendmail-gmail-smtp-relay-howto.html/comment-page-2#comment-1793</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Thu, 05 Jan 2012 22:04:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.phinesolutions.com/?p=179#comment-1793</guid>
		<description>Thank you, thank you, thank you for your tutorial. I have discovered another caveat though.

If you are using a *brand new* Gmail account you may get the following error in /var/log/maillog:

relay=smtp.gmail.com, dsn=5.0.0, stat=Service unavailable

One cause for this error is that you have to log-in at least once into your Gmail account from your browser! This is due to the fact that Google needs you to accept the terms of service.

After spending half a day tweaking my sendmail configuration I finally bothered to read a &quot;Delivery Status Notification&quot; that bounced back and it was right there in front of my eyes:

   ----- Transcript of session follows -----
... while talking to smtp.gmail.com:
&gt;&gt;&gt; AUTH dialogue
&lt;&lt;&lt; 535-5.7.1 Please log in with your web browser and then try again. Learn more
 at
&lt;&lt;&lt; 535 5.7.1 https://mail.google.com/support/bin/answer.py?answer=78754 cv10sm1
20709067igc.0

It never hurts to double check every part of your system!</description>
		<content:encoded><![CDATA[<p>Thank you, thank you, thank you for your tutorial. I have discovered another caveat though.</p>
<p>If you are using a *brand new* Gmail account you may get the following error in /var/log/maillog:</p>
<p>relay=smtp.gmail.com, dsn=5.0.0, stat=Service unavailable</p>
<p>One cause for this error is that you have to log-in at least once into your Gmail account from your browser! This is due to the fact that Google needs you to accept the terms of service.</p>
<p>After spending half a day tweaking my sendmail configuration I finally bothered to read a &#8220;Delivery Status Notification&#8221; that bounced back and it was right there in front of my eyes:</p>
<p>   &#8212;&#8211; Transcript of session follows &#8212;&#8211;<br />
&#8230; while talking to smtp.gmail.com:<br />
&gt;&gt;&gt; AUTH dialogue<br />
&lt;&lt;&lt; 535-5.7.1 Please log in with your web browser and then try again. Learn more<br />
 at<br />
&lt;&lt;&lt; 535 5.7.1 <a href="https://mail.google.com/support/bin/answer.py?answer=78754" rel="nofollow">https://mail.google.com/support/bin/answer.py?answer=78754</a> cv10sm1<br />
20709067igc.0</p>
<p>It never hurts to double check every part of your system!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Setup sendmail (notifications) for GMAIL SMTP &#171; darryn van tonder</title>
		<link>http://www.phinesolutions.com/sendmail-gmail-smtp-relay-howto.html/comment-page-2#comment-1791</link>
		<dc:creator>Setup sendmail (notifications) for GMAIL SMTP &#171; darryn van tonder</dc:creator>
		<pubDate>Wed, 04 Jan 2012 04:44:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.phinesolutions.com/?p=179#comment-1791</guid>
		<description>[...] for a long time now and needed to configure my server to relay mail through it. Here’s a nice article that walks you through exactly what needs to be done to configure your sendmail MTA to relay [...]</description>
		<content:encoded><![CDATA[<p>[...] for a long time now and needed to configure my server to relay mail through it. Here’s a nice article that walks you through exactly what needs to be done to configure your sendmail MTA to relay [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gmail SMTP? sendmail ???? ???? &#171; Help Work</title>
		<link>http://www.phinesolutions.com/sendmail-gmail-smtp-relay-howto.html/comment-page-2#comment-1665</link>
		<dc:creator>Gmail SMTP? sendmail ???? ???? &#171; Help Work</dc:creator>
		<pubDate>Mon, 10 Oct 2011 08:50:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.phinesolutions.com/?p=179#comment-1665</guid>
		<description>[...] http://www.phinesolutions.com/sendmail-gmail-smtp-relay-howto.html Like this:LikeBe the first to like this [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.phinesolutions.com/sendmail-gmail-smtp-relay-howto.html" rel="nofollow">http://www.phinesolutions.com/sendmail-gmail-smtp-relay-howto.html</a> Like this:LikeBe the first to like this [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mav3</title>
		<link>http://www.phinesolutions.com/sendmail-gmail-smtp-relay-howto.html/comment-page-1#comment-1573</link>
		<dc:creator>mav3</dc:creator>
		<pubDate>Wed, 31 Aug 2011 10:28:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.phinesolutions.com/?p=179#comment-1573</guid>
		<description>hi folks,

iam getting this error, any idea? 

m4:sendmail.mc:176: Warning: excess arguments to builtin `define&#039; ignored
m4:sendmail.mc:176: cannot open `/usr/share/sendmail-cf/feature/&#039;authinfo’.m4&#039;: No such file or directory
*** ERROR: MAILER(smtp) already included


My config

FEATURE(&#039;authinfo’,&#039;hash /etc/mail/client-info.db’)dnl
define(&#039;SMART_HOST’,&#039;smtp.gmail.com’)dnl
define(&#039;RELAY_MAILER_ARGS’, &#039;TCP $h 587?)
define(&#039;ESMTP_MAILER_ARGS’, &#039;TCP $h 587?)
define(&#039;CERT_DIR’, &#039;/etc/mail/certs’)
define(&#039;confCACERT_PATH’, &#039;CERT_DIR’)
define(&#039;confCACERT’, &#039;CERT_DIR/ca-bundle.crt’)
define(&#039;confCRL’, &#039;CERT_DIR/ca-bundle.crt’)
define(&#039;confSERVER_CERT’, &#039;CERT_DIR/sendmail.pem’)
define(&#039;confSERVER_KEY’, &#039;CERT_DIR/sendmail.pem’)
define(&#039;confCLIENT_CERT’, &#039;CERT_DIR/sendmail.pem’)
define(&#039;confCLIENT_KEY’, &#039;CERT_DIR/sendmail.pem’)
define(&#039;confAUTH_MECHANISMS’, &#039;EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN’)
TRUST_AUTH_MECH(&#039;EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN’)</description>
		<content:encoded><![CDATA[<p>hi folks,</p>
<p>iam getting this error, any idea? </p>
<p>m4:sendmail.mc:176: Warning: excess arguments to builtin `define&#8217; ignored<br />
m4:sendmail.mc:176: cannot open `/usr/share/sendmail-cf/feature/&#8217;authinfo’.m4&#8242;: No such file or directory<br />
*** ERROR: MAILER(smtp) already included</p>
<p>My config</p>
<p>FEATURE(&#8216;authinfo’,&#8217;hash /etc/mail/client-info.db’)dnl<br />
define(&#8216;SMART_HOST’,&#8217;smtp.gmail.com’)dnl<br />
define(&#8216;RELAY_MAILER_ARGS’, &#8216;TCP $h 587?)<br />
define(&#8216;ESMTP_MAILER_ARGS’, &#8216;TCP $h 587?)<br />
define(&#8216;CERT_DIR’, &#8216;/etc/mail/certs’)<br />
define(&#8216;confCACERT_PATH’, &#8216;CERT_DIR’)<br />
define(&#8216;confCACERT’, &#8216;CERT_DIR/ca-bundle.crt’)<br />
define(&#8216;confCRL’, &#8216;CERT_DIR/ca-bundle.crt’)<br />
define(&#8216;confSERVER_CERT’, &#8216;CERT_DIR/sendmail.pem’)<br />
define(&#8216;confSERVER_KEY’, &#8216;CERT_DIR/sendmail.pem’)<br />
define(&#8216;confCLIENT_CERT’, &#8216;CERT_DIR/sendmail.pem’)<br />
define(&#8216;confCLIENT_KEY’, &#8216;CERT_DIR/sendmail.pem’)<br />
define(&#8216;confAUTH_MECHANISMS’, &#8216;EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN’)<br />
TRUST_AUTH_MECH(&#8216;EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN’)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vne</title>
		<link>http://www.phinesolutions.com/sendmail-gmail-smtp-relay-howto.html/comment-page-1#comment-1568</link>
		<dc:creator>vne</dc:creator>
		<pubDate>Mon, 29 Aug 2011 07:42:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.phinesolutions.com/?p=179#comment-1568</guid>
		<description>Hi, 
Thanks a lot for the help...my issue got resolved by following the trail comments...

Thanks a lot again..</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thanks a lot for the help&#8230;my issue got resolved by following the trail comments&#8230;</p>
<p>Thanks a lot again..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Easiest way to configure local SMTP server to relay through gmail on Windows? - Admins Goodies</title>
		<link>http://www.phinesolutions.com/sendmail-gmail-smtp-relay-howto.html/comment-page-1#comment-1562</link>
		<dc:creator>Easiest way to configure local SMTP server to relay through gmail on Windows? - Admins Goodies</dc:creator>
		<pubDate>Sun, 21 Aug 2011 08:33:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.phinesolutions.com/?p=179#comment-1562</guid>
		<description>[...] I need to use something like sendmail to do this &#8211; or some other free SMTP relay that gives me better control? I even found a sourceforge [...]</description>
		<content:encoded><![CDATA[<p>[...] I need to use something like sendmail to do this &#8211; or some other free SMTP relay that gives me better control? I even found a sourceforge [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WrinkledCheese</title>
		<link>http://www.phinesolutions.com/sendmail-gmail-smtp-relay-howto.html/comment-page-1#comment-1554</link>
		<dc:creator>WrinkledCheese</dc:creator>
		<pubDate>Fri, 29 Jul 2011 20:01:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.phinesolutions.com/?p=179#comment-1554</guid>
		<description>I followed this and I was getting service unavailable.  So I started reading comments.  I added the line MAILER(smtp)dnl and everything seemed to work.

Here is my sendmail.mc
include(`../m4/cf.m4&#039;)
VERSIONID(`GMail Support&#039;)dnl
OSTYPE(`linux&#039;)dnl
FEATURE(`authinfo&#039;,`hash /etc/mail/client-info.db&#039;)dnl
define(`SMART_HOST&#039;,`smtp.gmail.com&#039;)dnl
define(`RELAY_MAILER_ARGS&#039;, `TCP $h 587&#039;)
define(`ESMTP_MAILER_ARGS&#039;, `TCP $h 587&#039;)
define(`CERT_DIR&#039;, `/etc/mail/certs&#039;)
define(`confCACERT_PATH&#039;, `CERT_DIR&#039;)
define(`confCACERT&#039;, `CERT_DIR/ca-bundle.crt&#039;)
define(`confCRL&#039;, `CERT_DIR/ca-bundle.crt&#039;)
define(`confSERVER_CERT&#039;, `CERT_DIR/sendmail.pem&#039;)
define(`confSERVER_KEY&#039;, `CERT_DIR/sendmail.pem&#039;)
define(`confCLIENT_CERT&#039;, `CERT_DIR/sendmail.pem&#039;)
define(`confCLIENT_KEY&#039;, `CERT_DIR/sendmail.pem&#039;)
define(`confAUTH_MECHANISMS&#039;, `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN&#039;)
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN&#039;)
define(`confAUTH_OPTIONS&#039;, `A&#039;)dnl
MAILER(smtp)dnl

I am running Slackware so I copy this to /usr/share/sendmail/cf/cf so that the include line works.  Due to the size of cf.m4 and it&#039;s includes, I will leave them out.  If you want to see them get a copy of slackware, or browse an online repository, and look for /usr/share/sendmail/cf/m4 which should be in the sendmail package for slackware.

I will also note that I successfully sent an email without the ca-bundle.cert</description>
		<content:encoded><![CDATA[<p>I followed this and I was getting service unavailable.  So I started reading comments.  I added the line MAILER(smtp)dnl and everything seemed to work.</p>
<p>Here is my sendmail.mc<br />
include(`../m4/cf.m4&#8242;)<br />
VERSIONID(`GMail Support&#8217;)dnl<br />
OSTYPE(`linux&#8217;)dnl<br />
FEATURE(`authinfo&#8217;,`hash /etc/mail/client-info.db&#8217;)dnl<br />
define(`SMART_HOST&#8217;,`smtp.gmail.com&#8217;)dnl<br />
define(`RELAY_MAILER_ARGS&#8217;, `TCP $h 587&#8242;)<br />
define(`ESMTP_MAILER_ARGS&#8217;, `TCP $h 587&#8242;)<br />
define(`CERT_DIR&#8217;, `/etc/mail/certs&#8217;)<br />
define(`confCACERT_PATH&#8217;, `CERT_DIR&#8217;)<br />
define(`confCACERT&#8217;, `CERT_DIR/ca-bundle.crt&#8217;)<br />
define(`confCRL&#8217;, `CERT_DIR/ca-bundle.crt&#8217;)<br />
define(`confSERVER_CERT&#8217;, `CERT_DIR/sendmail.pem&#8217;)<br />
define(`confSERVER_KEY&#8217;, `CERT_DIR/sendmail.pem&#8217;)<br />
define(`confCLIENT_CERT&#8217;, `CERT_DIR/sendmail.pem&#8217;)<br />
define(`confCLIENT_KEY&#8217;, `CERT_DIR/sendmail.pem&#8217;)<br />
define(`confAUTH_MECHANISMS&#8217;, `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN&#8217;)<br />
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN&#8217;)<br />
define(`confAUTH_OPTIONS&#8217;, `A&#8217;)dnl<br />
MAILER(smtp)dnl</p>
<p>I am running Slackware so I copy this to /usr/share/sendmail/cf/cf so that the include line works.  Due to the size of cf.m4 and it&#8217;s includes, I will leave them out.  If you want to see them get a copy of slackware, or browse an online repository, and look for /usr/share/sendmail/cf/m4 which should be in the sendmail package for slackware.</p>
<p>I will also note that I successfully sent an email without the ca-bundle.cert</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johnny</title>
		<link>http://www.phinesolutions.com/sendmail-gmail-smtp-relay-howto.html/comment-page-1#comment-1550</link>
		<dc:creator>Johnny</dc:creator>
		<pubDate>Sat, 23 Jul 2011 18:26:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.phinesolutions.com/?p=179#comment-1550</guid>
		<description>This is really a great write-up! It could do with placing a note adjacent to the code-sections though, in the lines of:

NOTE: Be aware that smart-quotes used in the code examples will not be recognised if pasted into your files! Ensure replacing smart-quotes by regular quotes (see comments below for further detail).

or similar. I spent a frustrating three hours due to this before finally scrolling down to read some of the comments. But as soon as I realised that, a flawless writeup!</description>
		<content:encoded><![CDATA[<p>This is really a great write-up! It could do with placing a note adjacent to the code-sections though, in the lines of:</p>
<p>NOTE: Be aware that smart-quotes used in the code examples will not be recognised if pasted into your files! Ensure replacing smart-quotes by regular quotes (see comments below for further detail).</p>
<p>or similar. I spent a frustrating three hours due to this before finally scrolling down to read some of the comments. But as soon as I realised that, a flawless writeup!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.phinesolutions.com/sendmail-gmail-smtp-relay-howto.html/comment-page-1#comment-1544</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Tue, 12 Jul 2011 03:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.phinesolutions.com/?p=179#comment-1544</guid>
		<description>Why install your own sendmail just to route it back to gmail. The whole object of this exercise should be to avoid your mail going out with the &quot;mail sent on behalf of&quot;  tag that makes your email look really amateurish for people receiving your mail in outlook.</description>
		<content:encoded><![CDATA[<p>Why install your own sendmail just to route it back to gmail. The whole object of this exercise should be to avoid your mail going out with the &#8220;mail sent on behalf of&#8221;  tag that makes your email look really amateurish for people receiving your mail in outlook.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

