LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-23-2010, 04:57 AM   #1
limadario
LQ Newbie
 
Registered: Jun 2010
Posts: 2

Rep: Reputation: 0
Configure gmail in linux shell for sending email


Hello, i have a problem sending emails in the command line. I have introduced this command:
sendEmail -f my.account@gmail.com -t myself@domain.tld \
-u this is the test tile -m “this is a test message” \
-s smtp.gmail.com \
-o tls=yes \
-xu usernameonly -xp mypasswd

but then i received this message:
sendEmail[13230]: ERROR => Connection attempt to smtp.gmail.com:25 failed: IO::Socket::INET: connect: Connection timed out

Can anyone tell me what to do so i can resolve this problem?
Edit/Delete Message
 
Old 06-23-2010, 05:08 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

It looks like outgoing traffic to port 25 is blocked (possibly by your ISP). Use telnet to verify if that's the case:
Code:
telnet smtp.gmail.com 25
Regards
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending email from Ubuntu server to gmail. bluesword1969 Linux - Server 5 02-09-2010 03:39 PM
Problems with perl sending email with Gmail SMTP sadarax Programming 3 09-12-2009 07:17 PM
Gmail Application and Sending Email to Local Domain kelepirci Linux - Server 1 10-07-2008 09:50 AM
Making GMail Work With the Linux Email Client Evolution paragkalra LinuxAnswers Discussion 1 02-18-2007 07:57 PM
Gmail style desktop email client for linux? rorzer Linux - Software 15 01-05-2006 04:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration