LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-27-2009, 12:06 PM   #1
aarav2306
Member
 
Registered: Jan 2009
Posts: 55

Rep: Reputation: 15
Accessing mails from LAN


Hi,
My config is as follows :
Internet - Ubuntu - Switch - LAN (few Windows machines & Ubuntu boxes)
My LAN is able to access internet, but my mail clients are not able to connect to the public IP to retrieve mails from externalmail server. Kindly help
Thanks
 
Old 01-27-2009, 12:17 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
is port 110 to the outside open?
take a look at your firewall

A good pointer is to look at the error messages
 
Old 01-28-2009, 02:57 AM   #3
aarav2306
Member
 
Registered: Jan 2009
Posts: 55

Original Poster
Rep: Reputation: 15
is there a command i can use to check if port 110 is open or not
 
Old 01-28-2009, 03:00 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
from the outside telnet public_IP 110
 
Old 01-29-2009, 08:28 AM   #5
aarav2306
Member
 
Registered: Jan 2009
Posts: 55

Original Poster
Rep: Reputation: 15
yes I think squid is allowing use of only port 3128. DO I need to add a similar line in squid.conf mentioning port 110
from an Ubuntu machine on my lan, telnet 192.168.0.1 110 was refused, but 192.168.0.1 3128 was allowed.
 
Old 01-29-2009, 09:03 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
telnet 192.168.0.1 110 was refused
You need to telnet to the external ip from the mailsever at port 110
 
Old 01-29-2009, 09:04 AM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
telnet 192.168.0.1 110 was refused
You need to telnet to the external ip from the mailsever at port 110
 
Old 01-30-2009, 02:00 AM   #8
aarav2306
Member
 
Registered: Jan 2009
Posts: 55

Original Poster
Rep: Reputation: 15
Hi,
But I am able to download mails onto my Ubuntu box which connects directly to the Internet. This has squid2.7 stable3 version, no firewall, no mailserver, no IPTables.
My LAN (consisting of 2Windows & 1Ubuntu) is able to browse the Internet, but not able to send/receive the mails which are being hosted by an external ISP.
My config is Internet - Ubuntu - Switch - LAN (few Windows machines & Ubuntu boxes). Do the mail clients on LAN need port110 to be open on squid to send/receive mails or does port 3128 suffice.
Should I telnet from LAN or from my Ubuntu m/c connected directly and should I telnet my static IP or the IP where my mails are currently being hosted.
 
Old 01-30-2009, 02:06 AM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Should I telnet from LAN or from my Ubuntu m/c connected directly and should I telnet my static IP or the IP where my mails are currently being hosted.
login on a machine on your lan where you can not get mail
telnet to the external mailserver on port 110
Code:
telnet pop3.server.com 110
 
Old 01-30-2009, 02:44 AM   #10
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Did you setup firewall rules to redirect traffic to port 110 to 3128 ?
should look like:

Code:
iptables -t nat -A PREROUTING -i eth1 -p tcp -m tcp --dport 110 -j DNAT --to-destination 192.168.0.1:3128
iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp –dport 110 -j REDIRECT --to-ports 3128
 
  


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
Accessing LAN computers itstootuff Fedora 1 11-05-2008 05:09 AM
accessing apache from lan mizos13 Linux - Newbie 12 06-19-2008 06:38 AM
accessing internet on LAN outstream Linux - Newbie 4 01-11-2007 02:56 PM
LAN accessing problem aditya1 Linux - Networking 1 03-09-2005 12:42 PM
Accessing LAN from outside OliXNet Linux - Networking 11 02-08-2005 05:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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