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 - 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, 02:10 PM   #1
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707

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 01:50 AM.
 
Old 08-28-2010, 01:53 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

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

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, 05:16 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

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, 09:21 AM   #5
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707

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, 12:16 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

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


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

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

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