Fedora Linux Support Community & Resources Center
  #1  
Old 17th May 2012, 01:25 PM
peacepanda Offline
Registered User
 
Join Date: Dec 2011
Posts: 11
windows_xp_2003ie
Question sendmail conbfigurations for sending mail to gmail

Hi All I am trying to send a simple mail from my fedora 16 command line to my gmail or yahoo account.I did downlaod sendmail and other things needed but still I am not able to send the mail.Can someone please point me how do I go about doing this
Reply With Quote
  #2  
Old 17th May 2012, 02:33 PM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,298
linuxfirefox
Re: sendmail conbfigurations for sending mail to gmail

If you are just sending outbound emails this way, use ssmtp rather than sendmail.

It's *roughly* as follows
su -
<rootpasswd>
yum install ssmtp
alternatives --config mta # select the number for /usr/sbin/sendmail.ssmtp
vi /etc/ssmtp/ssmtp.conf
>> #add a line to the file like ...
>> mailhub=some.smtp.server
>> # you need to add gmail authentication info
>> # see example here http://wiki.debian.org/sSMTP
exit


The outbound mail is only sent when activated by a use of sendmail (from 'mail' or 'mailx' for example. There is no constantly running service.

---------- Post added at 09:33 AM ---------- Previous post was at 09:29 AM ----------

I think you need this for gmail setup of ssmtp

Quote:
AuthMethod=LOGIN
AuthUser=username@gmail.com
AuthPass=your-gmail-password
UseTLS=YES
UseSTARTTLS=YES
mailhub=smtp.gmail.com:587
But if you are using google+ you *may* need to generate one of those app specific passwords. Not sure.

Sendmail is way overkill.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe

Last edited by stevea; 17th May 2012 at 02:36 PM.
Reply With Quote
  #3  
Old 17th May 2012, 03:25 PM
peacepanda Offline
Registered User
 
Join Date: Dec 2011
Posts: 11
windows_xp_2003ie
Re: sendmail conbfigurations for sending mail to gmail

Thanks for your response.I did follow all your instructions.When I am running
ssmtp "testing setup " xyz@yyy.com I dont get my command promt back.Also I didnt get the meaning of your following line The outbound mail is only sent when activated by use of sendmail (from mail or mailx ....)
Reply With Quote
Reply

Tags
conbfigurations, gmail, mail, sending, sendmail

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Facing Problem While sending Mail using sendmail Ashish Sood Using Fedora 5 30th November 2010 05:01 PM
Sendmail -- sending mail with the mail command -- doesn't work :-( carolinevdh Servers & Networking 1 13th August 2009 07:18 PM
sendmail not sending mail: Connection timed out trispad Using Fedora 0 8th March 2009 12:43 AM
setting up sendmail to use ISP server for sending mail homebase Servers & Networking 4 5th June 2008 04:43 AM
sending mail in sendmail - fc2 zackjz Using Fedora 7 23rd February 2005 08:24 PM


Current GMT-time: 13:15 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat