LinuxQuestions.org
Register a domain and help support LQ
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 08-27-2010, 03:10 PM   #1
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
telnet to smtp.gmail.com 587 not connecting


Hi All,

In my home we have got an internet connection which is connected to desktop machine having two network cards. One card is connected to external internet and second is used for internal LAN.

We have installed a proxy on desktop machine so that we can connect to internet through proxy. So we are not able to telnet to smtp.gmail.com 587 from laptops of internal LAN laptop installed with ubuntu and fedora.

At the same time we are able to ping smtp.gmail.com from the desktop machine which is exposed to internet.

I want to automate email through shell script using smtp.gmail.com.

Please advice me to overcome this issue.

Last edited by vinaytp; 08-28-2010 at 02:50 AM.
 
Old 08-28-2010, 02:53 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Is your squid proxy working in a transparent mode? Or you configure browsers for proxy settings?
 
Old 08-28-2010, 05:10 AM   #3
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by linuxlover.chaitanya View Post
Is your squid proxy working in a transparent mode? Or you configure browsers for proxy settings?
Thanks for your inputs chaitanya,

I am using freeproxy as proxy to connect to internet. Now I configured freeproxy to forward the incoming smtp traffic to smtp.gmail.com 587.

I followed this guide

Now its working fine..
 
Old 08-28-2010, 06:16 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally Posted by vinaytp View Post
Thanks for your inputs chaitanya,

I am using freeproxy as proxy to connect to internet. Now I configured freeproxy to forward the incoming smtp traffic to smtp.gmail.com 587.

I followed this guide

Now its working fine..
But this would forward all the smtp traffic to smtp.gmail.com. It would create issues if other smtp traffic is also forwarded to gmail. Have you installed freeproxy on some Linux distribution or is on windows? If you are linux then just MASQUERADE the outgoing connections and you should be able to connect.
 
Old 08-28-2010, 10:21 AM   #5
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by linuxlover.chaitanya View Post
But this would forward all the smtp traffic to smtp.gmail.com.
Yes I wanted to achieve same.

Quote:
It would create issues if other smtp traffic is also forwarded to gmail.
Yes, definitely this redirects all smtp traffic to smtp.gmail.com

Quote:
Have you installed freeproxy on some Linux distribution or is on windows?
I have installed freeproxy on Windows which is exposed directly to the internet.

Quote:
If you are linux then just MASQUERADE the outgoing connections and you should be able to connect.
Under what circumstances that masquerading outgoing connections of Windows would help me ?

Please Advice
 
Old 08-30-2010, 01:16 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
I do not know how to masquerade the connections on windows. In Linux you can easily do that using iptables.
 
  


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
smtp error on sendmail but not on squirrelmail after opening port 587 bigspot Linux - Server 4 10-18-2009 07:49 PM
PHP SMTP connection to gmail SMTP protocol violation ratcateme Programming 9 02-23-2009 04:58 AM
CHANGE SMTP port to 587 in Evolution Email Mgr Fedora 10 KFL Fedora 3 01-22-2009 11:45 AM
PHP mail not connecting to SMTP server but can connect with telnet mrJimmbo Linux - Server 1 12-12-2006 06:51 PM
Switch SMTP port from 25 to 587 hardwired Linux - Networking 7 05-31-2004 09:48 AM


All times are GMT -5. The time now is 11:20 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration