Results 1 to 1 of 1
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. ...
- 11-28-2007 #1
nbsmtp cannot connect to Gmail SMTP (Evolution can, mystery)
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:
and it sent my email.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
However It doesn't work when I'm on college network. Maybe this port is filered on firewall. I tried:
(Correct me if i used incorrect options please)Code:$ sudo nmap -p587 smtp.gmail.com ... PORT STATE SERVICE 587/tcp closed submission ...
So I tried to change port number to 465. But when I run it, it just printsand then waits too long (after 10 minutes I ^C-ed it).Code:Creating SSL connection to host (smtp.gmail.com:465)
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:
I have set 'smtp.gmail.com' as SMTP server in Evolution and I also tried to use both IPs with nbsmtp, but neither works.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 ...
However it is same with port 465 when I'm in school network.


Reply With Quote
