LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-09-2007, 03:26 AM   #1
cja1
LQ Newbie
 
Registered: Mar 2007
Distribution: Debian
Posts: 5

Rep: Reputation: 0
Network timeout for IMAP, SMTP, NNTP


Hi,

I have a new installation of Debian Etch. I experience network timeout problems using a mail client to connect to our mailserver (tried 3 different clients, icedove (=thunderbird), evolution, balsa)) using IMAP or SMTP, but also when I try to connect to a news server on the internet. I can access the same mail server from my old machine, right next to me. The settings are the same as far as I can find out.

What works:

- internet connection (web surfing)
- "manual" smtp connections to the mail server (telnet port 25)
- "manual" imap connections to the mail server (telnet port 143)
- connecting a network share on the mail server (this is a Windows server)

I tried to search the log files for unusual entries, but didn't find anything which looks strange to me. I tried tcpdump to watch the communication between my machine and the mail server, there is one packet from me to the server and one packet back, then timeout. I have no firewall settings on my machine.

What did I oversee? There must be something very simple an obvious going wrong here, but I just can not find out. Please someone give me a hint!

Thanks,

Christoph Jäger
 
Old 03-09-2007, 03:45 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Sounds a bit like a dns problem. Did you telnet by IP? Can you ping to the relevant server by hostname?
 
Old 03-09-2007, 03:50 AM   #3
cja1
LQ Newbie
 
Registered: Mar 2007
Distribution: Debian
Posts: 5

Original Poster
Rep: Reputation: 0
Ping works, I also tried specifying the IP address directly in the mail clients, got the same result.
 
Old 03-09-2007, 03:51 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
have you required authentication on the server or anything similar?
 
Old 03-09-2007, 03:57 AM   #5
cja1
LQ Newbie
 
Registered: Mar 2007
Distribution: Debian
Posts: 5

Original Poster
Rep: Reputation: 0
Of course to do IMAP I need to specify a username and password. But SMTP for instance works without any authentication (I can send emails when I simply telnet to port 25 and speak SMTP with helo, mail from, rcpt to, data, quit).
 
Old 03-09-2007, 03:59 AM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
And nothing in the logs of either the client machine or server? Surely there must be something?
 
Old 03-09-2007, 04:37 AM   #7
cja1
LQ Newbie
 
Registered: Mar 2007
Distribution: Debian
Posts: 5

Original Poster
Rep: Reputation: 0
Hi Billy,

I did a "tail -f messages syslog daemon.log auth.log dmesg exim4/mainlog kern.log mail.* user.log" in the /var/log directory (just to be sure to not miss any log file), and there wasn't a single new entry from when I hit "Get Mail" in the email client to the timeout message. Also, I can not find log entries in the Event Viewer on the Windows machine. And nothing in the logs of the two firewalls between me and the mailserver (the server is located at a different office with a VPN connection in between).

Maybe I need to enable some more debugging to get some log entries / error messages? But where can I do this?
 
Old 03-09-2007, 08:15 PM   #8
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Sounds to me like a VPN issue

What MTA are you using

Last edited by billymayday; 03-09-2007 at 08:29 PM.
 
Old 03-12-2007, 08:54 AM   #9
cja1
LQ Newbie
 
Registered: Mar 2007
Distribution: Debian
Posts: 5

Original Poster
Rep: Reputation: 0
Hi Billy,

Thanks for your help, it a little bit lead me in the right direction. I found enough evidence for the source of the problem to finally solve it.

To make it short, I had to disable tcp window scaling (I suspect my Zyxel firewall to be the reason for this, but have not yet confirmed it).

Here is how I found out:

- used the default installed exim4, but as I don't have any experience with it, switched to postfix (as I have a little bit of experience with this).
- switched on debugging with postfix -> same connection problems as with mailclient talking directly to the server
- used tcpdump to log network packets.
- used wireshark to inspect packages, tried sending emails with my mailclient (which does not work) and manually with telnet on port 25 (which does work) to see what is different. Now suddenly I see a "TCP previous segment lost" error message just after I typed "helo HOSTNAME". With the manual method, I didn't wait for the server's greeting, just used the helo command. My mailclient waited to see the server's greeting, but this never arrived.
- typed "TCP previous segment lost" in Google, found this: http://www.linuxquestions.org/questi...d.php?t=458634
- sysctl -w net.ipv4.tcp_window_scaling=0 really solved my problem

Thanks again for your help,

Best Regards,

Christoph Jäger
 
  


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 timeout jonken Linux - Networking 2 08-02-2006 03:33 PM
Exim4 SMTP command timeout (some servers) KurtAKARebuild Linux - Networking 7 04-20-2005 08:13 AM
Looking for help on IMAP and SMTP AZIMBD03 Linux - Newbie 1 11-20-2003 10:32 AM
smtp timeout medrew Linux - Software 7 04-09-2003 05:16 PM
qmail, imap and smtp help please yosh9779 Linux - Software 1 03-18-2003 10:43 AM

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

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