LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-28-2007, 03:05 PM   #1
mutable
LQ Newbie
 
Registered: Nov 2007
Posts: 8

Rep: Reputation: 0
nbsmtp cannoct connect to Gmail SMTP, but Evolution can? why?


Hello.
I'm trying to set up nbsmtp (tool similar to nullmailer or ssmtp, sendmail compatible, SMTP relay). So far I've used just Evolution, but now I want to try mutt. I compiled nbsmtp with SSL support. I have problems when connecting to Gmail SMTP server over SSL. From school network I tried this:
Code:
/usr/local/bin/nbsmtp -V -h smtp.gmail.com -f myname@gmail.com -U myname@gmail.com -P 'fish' -p 587 -s -S < mail/postponed
and it sent my email.
However It doesn't work when I'm on college network. Maybe this port is filered on firewall. I tried:
Code:
$ sudo nmap -p587 smtp.gmail.com
...
PORT    STATE  SERVICE
587/tcp closed submission
...
(Correct me if i used incorrect options please)

So I tried to change port number to 465. But when I run it, it just prints
Code:
Creating SSL connection to host (smtp.gmail.com:465)
and then waits too long.

So I tried to send mail from Evolution where I have configured Gmail SMTP server over SSL (to which I can connect) and then compared results from netstat:
Code:
$ netstat -tpn
...
tcp        0      0 x.x.x.x:37758       64.233.183.109:465      ESTABLISHED18340/nbsmtp        
tcp        0     27 x.x.x.x:56751       64.233.183.111:465      ESTABLISHED18166/evolution
...
I have set 'smtp.gmail.com' as SMTP server in Evolution and I also tried to use both IPs with nbsmtp, but neither works.

However it is same with port 465 when I'm in school network.

Last edited by mutable; 11-28-2007 at 06:11 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with perl sending email with Gmail SMTP sadarax Programming 3 09-12-2009 07:17 PM
How to get POP Gmail to work with Evolution? Rundi Linux - Software 12 12-17-2008 02:11 PM
exim4 sends with smtp.gmail.com otoomet LinuxQuestions.org Member Success Stories 0 09-10-2007 11:22 PM
pop3 retrieval from gmail on evolution dipenchaudhary Linux - Networking 1 02-03-2006 11:53 AM
Gmail and Evolution jorisb Linux - Software 1 10-15-2005 01:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:18 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