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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-28-2005, 11:53 AM
|
#1
|
LQ Newbie
Registered: Jun 2004
Posts: 15
Rep:
|
Checking Email
I am trying to connect to my server (Red Hat 9) to check mail and am not able to connect to it at all. I did netstat and imap and smtp are both running
[root root]# netstat -ap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:32768 *:* LISTEN 2226/rpc.statd
tcp 0 0 *:imap *:* LISTEN 4633/xinetd
tcp 0 0 *:sunrpc *:* LISTEN 2207/portmap
tcp 0 0 *:http *:* LISTEN 21119/httpd
tcp 0 0 *:x11 *:* LISTEN 2572/X
tcp 0 0 *:ssh *:* LISTEN 2323/sshd
tcp 0 0 *:smtp *:* LISTEN 21526/sendmail: acc
tcp 0 0 *:https *:* LISTEN 21119/httpd
....
is there something else I should check or do?
Thanks,
kihtap
|
|
|
02-28-2005, 12:59 PM
|
#2
|
Member
Registered: Feb 2005
Posts: 42
Rep:
|
So doing a `telnet your_mail_server 25` doesn't connect?
Is your firewall is blocking the packets?
|
|
|
02-28-2005, 01:25 PM
|
#3
|
LQ Newbie
Registered: Jun 2004
Posts: 15
Original Poster
Rep:
|
I did telnet and I got the sendmail response. So its not being blocked, but when i attempt to connect to it from outlook I cant connect to it.
|
|
|
02-28-2005, 04:16 PM
|
#4
|
Member
Registered: Feb 2005
Posts: 42
Rep:
|
Outlook is probably using imap, so I'd double-check that you've got the right settings there.
To find out what's going wrong, I'd try running tcpdump to sniff the packets which are actually being sent.
Worst comes to worst, you could always build up a debugging version of imapd. The combination of these two efforts ought to nail the problem.
|
|
|
02-28-2005, 04:31 PM
|
#5
|
LQ Newbie
Registered: Jun 2004
Posts: 15
Original Poster
Rep:
|
I tried setting up 2 accounts one with imap and one with pop3. It seems that imap works but I am getting some error with pop3 -->
Your server has unexpectedly terminated the connection. Possible causes for this include server problems, network problems, or a long period of inactivity. Account: 'example.com', Server: 'example.com', Protocol: POP3, Port: 110, Secure(SSL): No, Error Number: 0x800CCC0F
I also tried doing 'tcpdump [ipaddress of my outlook computer]' but I get some parsing error. What is the command I should use for tcpdump?
how can I debug imapd?
Thanks!
|
|
|
02-28-2005, 10:32 PM
|
#6
|
Member
Registered: Feb 2005
Posts: 42
Rep:
|
If your network connections are coming through on eth0 (say), you'd do something like:
tcpdump -i eth0 port 143
That should show you all traffic on the imap port. See the man page for how to get more info, if needed.
To debug imapd, just grab a copy of the source code. While I haven't worked with the imapd source myself, all (or mostly all) of these daemons have the ability to be built with various levels debugging, as well as being run in the foreground. This is what the developers typically use.
You should read through the docs and the source code to see how to enable these features.
If the source doesn't have enhanced debugging and/or foreground output, then you'll need to put this in yourself.
|
|
|
All times are GMT -5. The time now is 10:28 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|