LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-19-2005, 09:49 PM   #1
shadoxity
LQ Newbie
 
Registered: Apr 2005
Location: Lisarow, NSW, Australia
Distribution: FC 3
Posts: 18

Rep: Reputation: 0
setup email client for internal and external mail access


hello all, is there a way to put in the address for a mail server for a computer on my network so that it doesnt have to be changed when the PC is on another connection...i.e.

Home network
192.168.0.254=mail server(FC3), Qmail mail.mydomain.net
192.1680.# (windows XP PC's/laptops connecting to mailserver...)
192.1680.#
192.1680.#

now in the email program for these PC's/laptops i have to put 192.168.0.254 to access the email, cause if you try to access something hosted on ur own network that is on the internet, it wont respond,
so my question is how do i setup the PC/laptop so that when i am on the internal network it will get it from 192.168.0.254, but when i am out of home, it will look for the mail at mail.mydomain.net...

so really i want to know if there is a way to doit?
cause its an inconvinence having to change it every time im away from home...
thanx
 
Old 04-20-2005, 07:37 AM   #2
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
It sounds like the easy answer is to get your dns corrected so that it WILL work from home on your router. That way you can specify mail.yourdomain.com in your mail client and leave it that way forever.

Do you have port forwarding setup on your router so that ports 110 and 25 are forwarded to your mail server?

Is your public IP static or dynamic?

Are you using a 3rd party dns service, like zoneedit.com or dyndns.org? How did you create your dns records and who manages them?
 
Old 04-20-2005, 08:56 AM   #3
shadoxity
LQ Newbie
 
Registered: Apr 2005
Location: Lisarow, NSW, Australia
Distribution: FC 3
Posts: 18

Original Poster
Rep: Reputation: 0
ok i have a static IP, my ports are forwarded, and i use www.godaddy.com (my domain host) for DNS, and i am quite sure DNS is setup correctly, its just that cause its on the same network as the host, it wont resolve the name...

thanx
 
Old 04-20-2005, 09:35 AM   #4
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
I think it should be working. I've done this before and never had problems. When you run a telnet command to mail.yourdomain.com, what happens?

telnet mail.yourdomain.com 25

This should at least give you a greeting banner for your server. If not, then maybe your router sucks. What model is it? Last time I had a problem like this, I ended up having to update the firmware which fixed my problem.
 
Old 04-20-2005, 09:04 PM   #5
shadoxity
LQ Newbie
 
Registered: Apr 2005
Location: Lisarow, NSW, Australia
Distribution: FC 3
Posts: 18

Original Poster
Rep: Reputation: 0
if i put in mail.mydomain.net in the tenet it will goto my router login, if i go mail.mydomain.net:25 it says
C:\Documents and Settings\User>telnet mail.thisspace.net:25
Connecting To mail.thisspace.net:25...Could not open connection to the host, on
port 23: Connect failed

C:\Documents and Settings\User>telnet mail.thisspace.net:110
Connecting To mail.thisspace.net:110...Could not open connection to the host, on
port 23: Connect failed

and my router is a dynalink RTA 230 with the latest firmware

thanx
 
Old 04-20-2005, 09:15 PM   #6
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
>> mail.thisspace.net:25

Don't use a colon here... just put a whitespace instead and see what that does for you.
 
Old 04-20-2005, 09:28 PM   #7
shadoxity
LQ Newbie
 
Registered: Apr 2005
Location: Lisarow, NSW, Australia
Distribution: FC 3
Posts: 18

Original Poster
Rep: Reputation: 0
ok now i get this

C:\Documents and Settings\User>telnet mail.thisspace.net 25
Connecting To mail.thisspace.net...Could not open connection to the host, on por
t 25: Connect failed

?
and if i do port 110
then it takes me to a new screen thats just black and has nothing there, then if i try to type it takes me back to command prompt

Last edited by shadoxity; 04-20-2005 at 09:30 PM.
 
Old 04-20-2005, 09:55 PM   #8
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Hmm.... this could be a problem...

http://www.dnsstuff.com/tools/lookup...ce.net&type=NS

There are no NS records for your domain. I don't know if Godaddy will allow you to make NS records for your domain or not. If they don't, you have 2 options. You can install and configure your own DNS or you can use a 3rd party DNS service like Zoneedit.com or dyndns.org. There are actually several more that are free and you may find them to be more user friendly than these... shop around if you're going to use a free one, but I've found Zoneedit.com to be pretty easy to configure.

**Edit... When you're done, go here and make sure your server passes as many of these tests as possible...

http://www.dnsreport.com/

Last edited by Donboy; 04-20-2005 at 09:56 PM.
 
Old 04-20-2005, 10:04 PM   #9
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
By the way... I noticed you have a port open...

1666/tcp open netview-aix-6

I dont' know what this program is, but I hope it is very secure! This is exactly the sort of thing a hacker will look for when trying to break into your box. If "netview-aix-6" is really that important to you, I would definitely make sure you have all the latest updates... otherwise, you should think about closing this port.

While you're at it, you may want to think about closing some other ports that aren't so important. LIke if you dont have anyone using your IMAP or IMAPS services, I would close these ports until you're ready to start using them.
 
Old 04-20-2005, 10:08 PM   #10
shadoxity
LQ Newbie
 
Registered: Apr 2005
Location: Lisarow, NSW, Australia
Distribution: FC 3
Posts: 18

Original Poster
Rep: Reputation: 0
ok thanx and i do have an NS record for www.thisspace.net or thisspace.net
but it doesnt come up with one for mail.thisspace.net...
http://www.dnsstuff.com/tools/lookup...ce.net&type=NS
 
Old 04-20-2005, 10:35 PM   #11
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
In that case, maybe in your mail client, you need to just put "thisspace.net" instead of "mail.thisspace.net". I just checked your domain on dnsreport.com and it looked pretty good for "thisspace.net".

The main warning that was shown at dnsreport was you have no reverse DNS. Sometimes your ISP will allow you to setup reverse DNS records for your IP address. You can call them and ask. If they won't do it, I would be very disappointed. If they are giving you a static IP and if you're on a "business" type account that allows servers, then you SHOULD be able to get reverse dns records created for your IP.
 
Old 04-20-2005, 11:04 PM   #12
shadoxity
LQ Newbie
 
Registered: Apr 2005
Location: Lisarow, NSW, Australia
Distribution: FC 3
Posts: 18

Original Poster
Rep: Reputation: 0
ok i will try just thisspace.net
 
Old 04-20-2005, 11:19 PM   #13
shadoxity
LQ Newbie
 
Registered: Apr 2005
Location: Lisarow, NSW, Australia
Distribution: FC 3
Posts: 18

Original Poster
Rep: Reputation: 0
nope just says the connection was refused...
 
Old 04-21-2005, 06:53 AM   #14
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Hmmm, well then I'm running out of good ideas. I know this can be done because I've done it before myself with a cheap d-link router. Maybe if your router supports VPN, you could setup a VPN tunnel so that when you're away from home, you can still access the machines in your house using 192.168 IP addresses. Basically with VPN, the router assigns you an IP as if you were part of the LAN, even though traffic from you happens to be coming from a public (external) IP address. This would solve your problem. You could put in the LAN ips into your mail client and even when you're away from home, you'll still be able to connect to your servers. Just an idea.... cause I'm not sure what else to check.

You may want to search this site for recent posts by me. I was just talking to someone else about possibly getting a new router that is more sophisticated. I'm using a SonicWALL TZ170 which supports 1-to1 NAT and also has excellent VPN abilities. Either one of these solutions would solve your problem, and it would make adding more servers in the future a breeze. You'd just need an ISP that will allow you to have multiple static IPs coming down the same line.

Last edited by Donboy; 04-21-2005 at 06:54 AM.
 
Old 04-21-2005, 08:13 AM   #15
shadoxity
LQ Newbie
 
Registered: Apr 2005
Location: Lisarow, NSW, Australia
Distribution: FC 3
Posts: 18

Original Poster
Rep: Reputation: 0
ok thanx, i will try out vpn, and i will prob get a new router in around a month or so, unless this works
 
  


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
Internal/External Mail Server Aeiedil Linux - Software 27 10-13-2009 09:16 AM
block internal user to access external proxy server ckamheng Linux - Security 7 09-09-2005 03:37 AM
Mail Redirection from external id to internal id ! please help thiyagu4u Linux - Networking 4 07-14-2005 10:38 PM
vsftpd only can access for internal but not external bbmak Linux - Software 9 04-29-2005 08:36 PM
How to Setup an Internal Mail Server with Linux? denu_love Linux - Networking 1 09-04-2004 09:10 AM


All times are GMT -5. The time now is 08:54 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration