LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-27-2007, 08:44 AM   #1
RattleSn@ke
Member
 
Registered: Oct 2007
Location: Netherlands, ZH
Posts: 32

Rep: Reputation: 15
Angry [SOLVED] SMTP failed - not receiving 220 message


Hi,

I'm having the following strange problem.
I have a mailserver [2.6.18-1.2798.fc6] based on qmail. Some mail hangs on sending because it does not receive a 220 banner from the receiving mailserver.
The problem is with some mailservers.

So I thought I'll telnet into those servers to eliminate any configuration problems.

But then I telnet into those servers I get:
[root@medusa qmail]# telnet mail-in.<domain>.tld 25
Trying 62.xx.xx.xx...
Connected to mail-in.<domain>.tld (62.xx.xx.xx).
Escape character is '^]'.

And then it would sit there forever.
So I don't get a 220 header.
But when I directly issue a 'ehlo' command after connection, then after a while (about 10-20 sec) I get 220 header directly followed by a 250 welcome header.

When I run the exact same command from my other server [2.6.18-1.2798.fc6] (no qmail), I get a 220 header right away!

I'd searched the internet for 2 days now, and this didn't find a solution.

TCPDUMP reveils a small different between the two servers, but I don't know if it has something to do with my problem: (diff in bold)
Tcpdump -X
From failing server: 21:25:29.076726 IP [server].34674 > [remote].smtp: S 2639015205:2639015205(0) win 5840 <mss 1460,sackOK,timestamp 408922509 0,nop,wscale 7>

From working server: 21:11:43.346551 IP [server].53866 > [remote].smtp: S 2062653912:2062653912(0) win 5840 <mss 1460>


I hope someone had any idea!!
Thanks!
Onno.

Last edited by RattleSn@ke; 10-29-2007 at 03:18 PM. Reason: Problem Solved
 
Old 10-28-2007, 02:32 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
this isn't going to be the network at all if you can happily type stuff into the server to get a response, the network must be fine. can you enable debugging on the server side processes or something? i'd certainly be looking in that direction. moved to Linux - Server.
 
Old 10-28-2007, 04:44 AM   #3
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
How did you start your qmail-smtpd (I am assuming you are using this)?
 
Old 10-29-2007, 03:19 PM   #4
RattleSn@ke
Member
 
Registered: Oct 2007
Location: Netherlands, ZH
Posts: 32

Original Poster
Rep: Reputation: 15
Talking

Dear all,

Thanks for your thoughts.
The problem was caused by window scaling.
Solved it with: echo 0 > /proc/sys/net/ipv4/tcp_window_scaling

Description of window scaling: http://kerneltrap.org/node/6723

So Chris, I do think it is a 'network' problem...

Thanks!

Last edited by RattleSn@ke; 10-29-2007 at 03:21 PM.
 
Old 10-29-2007, 03:49 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
hmm, interesting... i appologise... pretty subtle though of course.
 
Old 10-30-2007, 04:35 PM   #6
RattleSn@ke
Member
 
Registered: Oct 2007
Location: Netherlands, ZH
Posts: 32

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie View Post
hmm, interesting... i appologise... pretty subtle though of course.
No Appologise needed. It was also the last thing I would think of...
Always fun with Linux ... ;-)
 
  


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
Receiving aborted message when running aticonfig markdjones82 Linux - Software 1 07-08-2007 06:43 AM
gaim crashes when receiving a new message squall1986 Linux - Software 2 11-30-2006 04:57 AM
Receiving Email with SMTP server IBall Linux - Networking 1 12-22-2005 10:35 PM
0 Replies message (how do I stop receiving it?) gmartin LQ Suggestions & Feedback 2 02-23-2004 08:13 AM
failed while receiving responses: REFUSED on SLAVE with BIND 9.2.2 cccc Linux - Networking 9 10-07-2003 08:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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