LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-09-2004, 11:28 PM   #1
htm
Member
 
Registered: Mar 2004
Posts: 162

Rep: Reputation: 30
my imap problem


Folks,

When I do the follwong query at my remote Redhat 9.0 server,


tcp 0 0 new_domain_name:imap *:* LISTEN 20027/couriertcpd
...
tcp 0 0 *:smtp *:* LISTEN 22769/

Now I am sure my SMTP server works fine, through telnet 25 port remotely

But for my imap server, I got connection refused when I telnet 143 port remotely,
even login in the remote server, and do a local telnet, I got the follwing:

telnet 127.0.0.1 25 - connection refused

telnet real_ip_addr 25 - it's just fine

So my questions is if I can manage to change

tcp 0 0 new_domain_name:imap *:* LISTEN 20027/couriertcpd

to

tcp 0 0 *:imap *:* LISTEN 20027/couriertcpd

Will that fix my problem? If yes, how can I?

Thx,
HTM
 
Old 04-10-2004, 12:29 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
What IP does new_domain_name resolve to? How did you define it, in /etc/hosts, in DNS, how?
Did you remember to open 143/TCP through your firewall???
 
Old 04-10-2004, 08:18 PM   #3
htm
Member
 
Registered: Mar 2004
Posts: 162

Original Poster
Rep: Reputation: 30
how to fix my fake domain problem?


I am sure port 143 (imap) is open, since when
I do the following query at my remote Redhat 9.0 server,

tcp 0 0 fake_domain_name:imap *:* LISTEN 20027/couriertcpd
...
tcp 0 0 *:smtp *:* LISTEN 22769/

The fake_domain_name was there is because I set up impad before
I ask my ISP to bind my domain name (different to domain_name)
to my real IP address

So my questions is if I can manage to change

tcp 0 0 fake_domain_name:imap *:* LISTEN 20027/couriertcpd

to

tcp 0 0 *:imap *:* LISTEN 20027/couriertcpd

Will that fix my problem? If yes, how can I? - done in
imap( where to do), ask my ISP to put fake_domain_name through
DNS (not a good way to go) or edit or /etc/hsosts?


Thx,
HTM

Thx,
HTM

Last edited by htm; 04-10-2004 at 08:46 PM.
 
Old 04-11-2004, 03:03 AM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
No, I mean open through your firewall. You can't tell if there's a hole through your firewall by using netstat! You need to use telnet to test the port remotely (143). Note that it's not the same to ssh from box 1 to box 2, then telnet (from your ssh session) to box 2, that will only test from box 2 to itself. You need to telnet from box 1 to box 2 on port 143 and see if you get the IMAP banner.

You still didn't answer where you mapped the domain name, I can't help you unless you tell me that. Also, use the -n flag to netstat so it doesn't resolve domain and hostnames, that would be much more helpful.

I suggest that if you want help, you should answer the questions that people ask you, instead of coming up with your own answers to different questions.
 
Old 04-11-2004, 06:11 AM   #5
htm
Member
 
Registered: Mar 2004
Posts: 162

Original Poster
Rep: Reputation: 30
my situations

Yeah, I did try that as well remotely from my server in my LAN:

telnet real_ip_addr 143

Now if I do the same on port 25, it works

telnet real_ip_addr 25

I am suspecting that is because I could not go through

telnet 127.0.0.1 143 (but telnet real_ip_address 143 OK at the remote server)

The mapped domain name story is as follows:

The remote server was named temporailiy named new_domain.com before
I move my domain from hostway.com to my own remote server, and imap
was installed before the server was renamed from new_domain.com to domain.com,
how come imap record my old domain name? I am gathering that may cause
my local telnet 25 problem as well as remote telnet 25 problem?

Thx,
HTM


> No, I mean open through your firewall. You can't tell if there's a hole through your firewall by using netstat! You need to use telnet to test the port remotely (143). Note that it's not the same to ssh from box 1 to box 2, then telnet (from your ssh session) to box 2, that will only test from box 2 to itself. You need to telnet from box 1 to box 2 on port 143 and see if you get the IMAP banner.

> You still didn't answer where you mapped the domain name, I can't help you unless you tell me that. Also, use the -n flag to netstat so it doesn't resolve domain and hostnames, that would be much more helpful.

>I suggest that if you want help, you should answer the questions that people ask you, instead of coming up with your own answers to different questions.
 
  


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
qmail-ldap + courier-imap woes (imap capability) syahid Linux - General 1 10-12-2005 12:03 AM
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 07:01 PM
IMAP problem dominant Linux - Networking 10 01-25-2004 12:08 PM
IMAP works but IMAP TLS doesn't under PHP (Horde IMP) theparadigm Linux - Software 0 11-17-2003 12:35 AM
UW IMAP problem downloading IMAP folders nuzzy Linux - Software 1 04-17-2003 04:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:18 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
Open Source Consulting | Domain Registration