<?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: How To Use Gmail Account To Relay Email From a Shell Prompt</title> <atom:link href="http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: saravanan</title><link>http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html#comment-179006</link> <dc:creator>saravanan</dc:creator> <pubDate>Sun, 05 Feb 2012 15:32:41 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4596#comment-179006</guid> <description>I have a problem with sending mail in CentOS 5.6.
I need a script to send mail from gmail to other accounts.
Please help me.</description> <content:encoded><![CDATA[<p>I have a problem with sending mail in CentOS 5.6.<br
/> I need a script to send mail from gmail to other accounts.<br
/> Please help me.</p> ]]></content:encoded> </item> <item><title>By: William Notowidagdo</title><link>http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html#comment-178986</link> <dc:creator>William Notowidagdo</dc:creator> <pubDate>Thu, 02 Feb 2012 06:50:39 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4596#comment-178986</guid> <description>Works like a charm. Thanks for sharing.</description> <content:encoded><![CDATA[<p>Works like a charm. Thanks for sharing.</p> ]]></content:encoded> </item> <item><title>By: Bill Cunningham</title><link>http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html#comment-175951</link> <dc:creator>Bill Cunningham</dc:creator> <pubDate>Wed, 23 Nov 2011 15:54:01 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4596#comment-175951</guid> <description>Outstanding information!  This worked exactly right the first time.  I have been mucking around with mail on a Fedora PC for a long time.  This did the trick.</description> <content:encoded><![CDATA[<p>Outstanding information!  This worked exactly right the first time.  I have been mucking around with mail on a Fedora PC for a long time.  This did the trick.</p> ]]></content:encoded> </item> <item><title>By: Best Brain Teaser</title><link>http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html#comment-175646</link> <dc:creator>Best Brain Teaser</dc:creator> <pubDate>Sun, 13 Nov 2011 16:54:38 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4596#comment-175646</guid> <description>/usr/sbin/sendmail: No such file or directory
&quot;/home/lavesh/dead.letter&quot; 9/227
. . . message not sent.</description> <content:encoded><![CDATA[<p>/usr/sbin/sendmail: No such file or directory<br
/> &#8220;/home/lavesh/dead.letter&#8221; 9/227<br
/> . . . message not sent.</p> ]]></content:encoded> </item> <item><title>By: Daniel Kanafany</title><link>http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html#comment-174781</link> <dc:creator>Daniel Kanafany</dc:creator> <pubDate>Wed, 12 Oct 2011 17:54:58 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4596#comment-174781</guid> <description>for those who has problems like this:
Null message body; hope that’s ok
mail: /usr/sbin/sendmail: No such file or directory
Can’t send mail: sendmail process failed with error code 1
try this:
the manual says that we must create a symlink:
ln -s /usr/local/ssmtp/sbin/ssmtp /usr/sbin/sendmail
but, depends on ur distro or version the correct location of this directories. In my case I use Fedora 12-64 and find that &quot;/usr/local/ssmtp/sbin/ssmtp&quot; is &quot;/usr/sbin/ssmtp&quot;, why:
[root@kanafas ssmtp]# whereis ssmtp
ssmtp: /usr/sbin/ssmtp /etc/ssmtp /usr/share/man/man8/ssmtp.8.gz
so I change the link to &quot; ln -s /usr/sbin/ssmtp /usr/sbin/sendmail &quot;
and now is working, any doubts or comments Ill be glad to help you.</description> <content:encoded><![CDATA[<p>for those who has problems like this:</p><p>Null message body; hope that’s ok<br
/> mail: /usr/sbin/sendmail: No such file or directory<br
/> Can’t send mail: sendmail process failed with error code 1</p><p>try this:</p><p>the manual says that we must create a symlink:</p><p> ln -s /usr/local/ssmtp/sbin/ssmtp /usr/sbin/sendmail</p><p>but, depends on ur distro or version the correct location of this directories. In my case I use Fedora 12-64 and find that &#8220;/usr/local/ssmtp/sbin/ssmtp&#8221; is &#8220;/usr/sbin/ssmtp&#8221;, why:</p><p>[root@kanafas ssmtp]# whereis ssmtp<br
/> ssmtp: /usr/sbin/ssmtp /etc/ssmtp /usr/share/man/man8/ssmtp.8.gz</p><p>so I change the link to &#8221; ln -s /usr/sbin/ssmtp /usr/sbin/sendmail &#8221;</p><p>and now is working, any doubts or comments Ill be glad to help you.</p> ]]></content:encoded> </item> <item><title>By: msk</title><link>http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html#comment-172077</link> <dc:creator>msk</dc:creator> <pubDate>Thu, 23 Jun 2011 10:31:21 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4596#comment-172077</guid> <description>I have tried above mentioned configured on my system. It worked nicely for a day but now it shows me following error.
&quot;SSL_connect: Connection reset by peer. send-mail: Cannot open smtp.gmail.com:587&quot;
Please get me to resolve this issue.</description> <content:encoded><![CDATA[<p>I have tried above mentioned configured on my system. It worked nicely for a day but now it shows me following error.<br
/> &#8220;SSL_connect: Connection reset by peer. send-mail: Cannot open smtp.gmail.com:587&#8243;</p><p>Please get me to resolve this issue.</p> ]]></content:encoded> </item> <item><title>By: adriyas</title><link>http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html#comment-170544</link> <dc:creator>adriyas</dc:creator> <pubDate>Sun, 10 Apr 2011 04:43:09 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4596#comment-170544</guid> <description>As always, Thanks Vivek.
For the sake of others wondering.
# vim /etc/ssmtp/ssmtp.conf
# service sendmail stop
# chkconfig sendmail off
# mkdir /root/.backup
# mv /usr/sbin/sendmail /root/.backup/
# whereis ssmtp
ssmtp: /usr/sbin/ssmtp /etc/ssmtp /usr/share/man/man8/ssmtp.8.gz
# ln -s /usr/sbin/ssmtp /usr/sbin/sendmail
# echo &quot;This is a test email&quot; &#124; mail -s &quot;Test&quot; adriyas@gmail.com
Used it for my nagios email notification for repl</description> <content:encoded><![CDATA[<p>As always, Thanks Vivek.</p><p>For the sake of others wondering.<br
/> # vim /etc/ssmtp/ssmtp.conf<br
/> # service sendmail stop<br
/> # chkconfig sendmail off<br
/> # mkdir /root/.backup<br
/> # mv /usr/sbin/sendmail /root/.backup/<br
/> # whereis ssmtp<br
/> ssmtp: /usr/sbin/ssmtp /etc/ssmtp /usr/share/man/man8/ssmtp.8.gz<br
/> # ln -s /usr/sbin/ssmtp /usr/sbin/sendmail<br
/> # echo &#8220;This is a test email&#8221; | mail -s &#8220;Test&#8221; <a
href="mailto:adriyas@gmail.com">adriyas@gmail.com</a></p><p>Used it for my nagios email notification for repl</p> ]]></content:encoded> </item> <item><title>By: faerrleah</title><link>http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html#comment-168338</link> <dc:creator>faerrleah</dc:creator> <pubDate>Mon, 17 Jan 2011 13:05:24 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4596#comment-168338</guid> <description>Will get your gmail account blocked for abusing service if you send too much email and too often.</description> <content:encoded><![CDATA[<p>Will get your gmail account blocked for abusing service if you send too much email and too often.</p> ]]></content:encoded> </item> <item><title>By: Mats Karlsson</title><link>http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html#comment-160121</link> <dc:creator>Mats Karlsson</dc:creator> <pubDate>Sun, 10 Oct 2010 09:31:45 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4596#comment-160121</guid> <description>There is some parts missing for CentOS 5:
ssmtp is available in the epel repository, that needs to be added before &quot;yum install ssmtp&quot;
The softlink is a bit off:
ln -s /usr/sbin/ssmtp /usr/sbin/sendmail
And I love this article, made my day ;-)</description> <content:encoded><![CDATA[<p>There is some parts missing for CentOS 5:<br
/> ssmtp is available in the epel repository, that needs to be added before &#8220;yum install ssmtp&#8221;</p><p>The softlink is a bit off:<br
/> ln -s /usr/sbin/ssmtp /usr/sbin/sendmail</p><p>And I love this article, made my day ;-)</p> ]]></content:encoded> </item> <item><title>By: Ben</title><link>http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html#comment-156018</link> <dc:creator>Ben</dc:creator> <pubDate>Fri, 14 May 2010 11:38:43 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4596#comment-156018</guid> <description>So much easier than some of the other overkill guides - thanks!</description> <content:encoded><![CDATA[<p>So much easier than some of the other overkill guides &#8211; thanks!</p> ]]></content:encoded> </item> <item><title>By: Me</title><link>http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html#comment-154530</link> <dc:creator>Me</dc:creator> <pubDate>Thu, 25 Mar 2010 20:04:21 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4596#comment-154530</guid> <description>Any way to add multiple email accounts to this list? For example user1 and user2?</description> <content:encoded><![CDATA[<p>Any way to add multiple email accounts to this list? For example user1 and user2?</p> ]]></content:encoded> </item> <item><title>By: Lukas</title><link>http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html#comment-154488</link> <dc:creator>Lukas</dc:creator> <pubDate>Tue, 23 Mar 2010 15:45:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4596#comment-154488</guid> <description>also :
ls -latr /usr/sbin/ &#124; grep mail
-rwxr-sr-x  1 root mail   81304 2008-12-30 21:34 imapd*
lrwxrwxrwx  1 root root       5 2010-03-23 16:36 mailq -&gt; ssmtp*
lrwxrwxrwx  1 root root      27 2010-03-23 16:40 sendmail -&gt; /usr/local/ssmtp/sbin/ssmtp</description> <content:encoded><![CDATA[<p>also :</p><p>ls -latr /usr/sbin/ | grep mail<br
/> -rwxr-sr-x  1 root mail   81304 2008-12-30 21:34 imapd*<br
/> lrwxrwxrwx  1 root root       5 2010-03-23 16:36 mailq -&gt; ssmtp*<br
/> lrwxrwxrwx  1 root root      27 2010-03-23 16:40 sendmail -&gt; /usr/local/ssmtp/sbin/ssmtp</p> ]]></content:encoded> </item> <item><title>By: Lukas</title><link>http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html#comment-154487</link> <dc:creator>Lukas</dc:creator> <pubDate>Tue, 23 Mar 2010 15:45:02 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4596#comment-154487</guid> <description>I Got this error? Any help ? Pleaseeeeee
$ echo &quot;This is a test&quot; &#124; mail -s &quot;Test&quot; sakal@sakal.sk
-su: $: command not found
Null message body; hope that&#039;s ok
mail: /usr/sbin/sendmail: No such file or directory
Can&#039;t send mail: sendmail process failed with error code 1
Thanks</description> <content:encoded><![CDATA[<p>I Got this error? Any help ? Pleaseeeeee</p><p>$ echo &#8220;This is a test&#8221; | mail -s &#8220;Test&#8221; <a
href="mailto:sakal@sakal.sk">sakal@sakal.sk</a><br
/> -su: $: command not found<br
/> Null message body; hope that&#8217;s ok<br
/> mail: /usr/sbin/sendmail: No such file or directory<br
/> Can&#8217;t send mail: sendmail process failed with error code 1</p><p>Thanks</p> ]]></content:encoded> </item> <item><title>By: vuser1</title><link>http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html#comment-152316</link> <dc:creator>vuser1</dc:creator> <pubDate>Wed, 16 Dec 2009 04:02:38 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4596#comment-152316</guid> <description>Is anyone know how to config ssmtp to rewrite the RCPT TO header? Thanks.</description> <content:encoded><![CDATA[<p>Is anyone know how to config ssmtp to rewrite the RCPT TO header? Thanks.</p> ]]></content:encoded> </item> <item><title>By: Tim</title><link>http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html#comment-150353</link> <dc:creator>Tim</dc:creator> <pubDate>Tue, 25 Aug 2009 16:14:16 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4596#comment-150353</guid> <description>TO: Sergio Montini
[Ideally, I would like a script to email me my system logs (cron, login, etc)]
Here is a line of code that may help.  It was pulled from Linux Pro Magazine August2009 issue, page 61.  You should be able to add it to your backup script that cron launches.  You&#039;ll probably need to tweak it to suit your needs and not copy it verbatim, but this is the basic idea.  Rather than sending the list of files in a backup directory, you could also send the contents of a log file.
ls -l /my-backups/&#039;date +%y-%m-%d&#039; &#124; mail -s &quot;daily backup report&quot; your@email.address</description> <content:encoded><![CDATA[<p>TO: Sergio Montini<br
/> [Ideally, I would like a script to email me my system logs (cron, login, etc)]</p><p>Here is a line of code that may help.  It was pulled from Linux Pro Magazine August2009 issue, page 61.  You should be able to add it to your backup script that cron launches.  You&#8217;ll probably need to tweak it to suit your needs and not copy it verbatim, but this is the basic idea.  Rather than sending the list of files in a backup directory, you could also send the contents of a log file.</p><p>ls -l /my-backups/&#8217;date +%y-%m-%d&#8217; | mail -s &#8220;daily backup report&#8221; <a
href="mailto:your@email.address">your@email.address</a></p> ]]></content:encoded> </item> <item><title>By: anonymous</title><link>http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html#comment-150239</link> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 19 Aug 2009 17:49:47 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4596#comment-150239</guid> <description>OMG you are the best if it weren&#039;t for you i&#039;d still be messing around with nc/sendmail (sendmail.mc,m4)/telnet
I have a single user comp (root+my user) and this is perfect</description> <content:encoded><![CDATA[<p>OMG you are the best if it weren&#8217;t for you i&#8217;d still be messing around with nc/sendmail (sendmail.mc,m4)/telnet<br
/> I have a single user comp (root+my user) and this is perfect</p> ]]></content:encoded> </item> <item><title>By: Asaduzzaman</title><link>http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html#comment-149510</link> <dc:creator>Asaduzzaman</dc:creator> <pubDate>Thu, 16 Jul 2009 07:25:58 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4596#comment-149510</guid> <description>Dear Sir/ Madam,
Recently I have configured sandmail on Linux RH 9, and capable to send and receive mail from outlook express. But problem is domain name show diffenence in outlook express Inbox , that is :  but I have configured domain name &quot;bgdnyk.com&quot; on linux send mail server.
Could you please asists, how can I get accurate domain name in outlook express.</description> <content:encoded><![CDATA[<p>Dear Sir/ Madam,<br
/> Recently I have configured sandmail on Linux RH 9, and capable to send and receive mail from outlook express. But problem is domain name show diffenence in outlook express Inbox , that is :  but I have configured domain name &#8220;bgdnyk.com&#8221; on linux send mail server.<br
/> Could you please asists, how can I get accurate domain name in outlook express.</p> ]]></content:encoded> </item> <item><title>By: Robert McKenzie</title><link>http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html#comment-149446</link> <dc:creator>Robert McKenzie</dc:creator> <pubDate>Sun, 12 Jul 2009 02:11:55 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4596#comment-149446</guid> <description>Awesome .. exactly what I needed for the machines at home .. I refuse to use my ISP&#039;s unauthenticated mail server, mostly because it&#039;s a bit of a blackhole.. and I&#039;ve been moving away from using mail on my hosted servers ... most stuff has been ported to gmail servers.
Thanks for the quick and easy fix to using gmail as my smarthost!</description> <content:encoded><![CDATA[<p>Awesome .. exactly what I needed for the machines at home .. I refuse to use my ISP&#8217;s unauthenticated mail server, mostly because it&#8217;s a bit of a blackhole.. and I&#8217;ve been moving away from using mail on my hosted servers &#8230; most stuff has been ported to gmail servers.</p><p>Thanks for the quick and easy fix to using gmail as my smarthost!</p> ]]></content:encoded> </item> <item><title>By: Andres Rodriguez Guapacha</title><link>http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html#comment-149097</link> <dc:creator>Andres Rodriguez Guapacha</dc:creator> <pubDate>Tue, 23 Jun 2009 15:53:57 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4596#comment-149097</guid> <description>Thanks for the Info! I have a Debian Squeeze system and when I tried to install ssmtp I couldn&#039;t because exim4 was already installed. aptitude gave me the option to uninstall it, but I decided to try and use exim4 with gmail, so I ended in http://wiki.debian.org/GmailAndExim4 and followed those steps. It now works perfectly!</description> <content:encoded><![CDATA[<p>Thanks for the Info! I have a Debian Squeeze system and when I tried to install ssmtp I couldn&#8217;t because exim4 was already installed. aptitude gave me the option to uninstall it, but I decided to try and use exim4 with gmail, so I ended in <a
href="http://wiki.debian.org/GmailAndExim4" rel="nofollow">http://wiki.debian.org/GmailAndExim4</a> and followed those steps. It now works perfectly!</p> ]]></content:encoded> </item> <item><title>By: Sergio Montini</title><link>http://www.cyberciti.biz/tips/linux-use-gmail-as-a-smarthost.html#comment-148868</link> <dc:creator>Sergio Montini</dc:creator> <pubDate>Mon, 08 Jun 2009 09:51:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4596#comment-148868</guid> <description>Great! I can now email directly from my NSLU2 (Slug).
Ideally, I would like a script to email me my system logs (cron, login, etc)
Any suggestions?
Many thanks!</description> <content:encoded><![CDATA[<p>Great! I can now email directly from my NSLU2 (Slug).</p><p>Ideally, I would like a script to email me my system logs (cron, login, etc)</p><p>Any suggestions?</p><p>Many thanks!</p> ]]></content:encoded> </item> </channel> </rss>
