Hurricane Electric's IPv6 Tunnel Broker Forums
May 18, 2013, 10:57:42 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Hurricane Electric's Tunnelbroker.net forums!
 
   Home   Help Search Login Register  
Pages: [1] 2
  Print  
Author Topic: Ipv6 enabled e-mail address fails due to non-standards compliant mailer on HE en  (Read 6492 times)
sosdg
Newbie
*
Posts: 6


View Profile WWW
« on: July 27, 2009, 01:07:14 am »

Hello all,

Apparently, the mail server used to test out certification for an ipv6 enabled e-mail address doesn't follow RFC standards when sending mail, and gets rejected by my server:

Code:
2009-07-27 01:55:50 SMTP protocol synchronization error (next input sent too soon: pipelining was
 advertised): rejected "DATA" H=ipv6.he.net [2001:470:0:64::2] next input="To: \r\nFrom: ipv6@he.net\r
\nMessage-ID: <4a6d5d86d0209.1248681350@ipv6.he.net>\r\nSubject: IPv6 Certification Mail Test\r
\n\r\nPlease insert the following code"

Basically, our mail server located at 2001:470:e867::2 uses a simple way of breaking alot spambots - it inserts a 2 second delay before showing the first '220-' line.  This won't break RFC compliant mail servers, but will break mail servers (mostly spam bots) that dump out the entire conversation without bothering to check to see if its okay to do so yet.

Unfortunately, it seems to affect the HE ipv6 testing mail server as well.  Any way this could get fixed?   Smiley

Brielle

Logged
dataless
Newbie
*
Posts: 26


View Profile
« Reply #1 on: July 27, 2009, 09:58:26 am »

Interesting..

I also filter pipelining and I did not encounter this problem with them.

Postfix (which I use) handles it differently than Sendmail though.
Logged
sosdg
Newbie
*
Posts: 6


View Profile WWW
« Reply #2 on: July 27, 2009, 01:10:23 pm »

I believe its the initial delay thats causing the problem.  I'm going to have to sniff packets later on to get the exact idea on whats happening, but from observation, it looks like its either not waiting for the final '220' (without the - at the end) before sending the initial EHLO/HELO then pipelining, or its trying to pipeline without telling my end to pipeline.

I think its the former rather then latter personally.  I've seen Exchange servers do the exact same thing in the past.
Logged
kcochran
Sr. Network Engineer, Hurricane Electric
Administrator
Sr. Member
*****
Posts: 251



View Profile
« Reply #3 on: July 27, 2009, 02:48:28 pm »

It's actually not a mailserver, but the certification script you're interfacing with that's sending the mail.

We wait for data back from the server before sending the next line, and ensure we see a valid status number before moving on.  The one thing I do see that probably tripped up our script on your server is the very long banner and command delays likely got what we were sending out of sync from what you were expecting.  I've made some changes and it should be smarter.
Logged
sosdg
Newbie
*
Posts: 6


View Profile WWW
« Reply #4 on: July 27, 2009, 03:51:04 pm »

It's actually not a mailserver, but the certification script you're interfacing with that's sending the mail.

We wait for data back from the server before sending the next line, and ensure we see a valid status number before moving on.  The one thing I do see that probably tripped up our script on your server is the very long banner and command delays likely got what we were sending out of sync from what you were expecting.  I've made some changes and it should be smarter.

Cool.  Smiley  Thanks for checking this out!

Brielle
Logged
sosdg
Newbie
*
Posts: 6


View Profile WWW
« Reply #5 on: July 27, 2009, 03:53:17 pm »

I spoke too soon - getting the following error:

"Didn't get expected welcome"

From the test now.

Brielle
Logged
kcochran
Sr. Network Engineer, Hurricane Electric
Administrator
Sr. Member
*****
Posts: 251



View Profile
« Reply #6 on: July 27, 2009, 04:01:17 pm »

Blargh, the code really didn't handle multi-line banners well.  This time for sure!
Logged
jimb
Hero Member
*****
Posts: 804


^^^ Warped picture


View Profile
« Reply #7 on: July 27, 2009, 04:18:20 pm »

What's it written in BTW, Perl?
Logged

sosdg
Newbie
*
Posts: 6


View Profile WWW
« Reply #8 on: July 27, 2009, 04:23:52 pm »

Blargh, the code really didn't handle multi-line banners well.  This time for sure!

Code:
No '220 ' found in welcome banner

 Tongue

I didn't realize my mail server could be this troublesome.  heh.

Brielle
Logged
kcochran
Sr. Network Engineer, Hurricane Electric
Administrator
Sr. Member
*****
Posts: 251



View Profile
« Reply #9 on: July 27, 2009, 04:42:53 pm »

It's in PHP.

I this doesn't do it, I'm going to beat up a penguin.  A small foam one, mind you, but a penguin nonetheless.
Logged
sosdg
Newbie
*
Posts: 6


View Profile WWW
« Reply #10 on: July 27, 2009, 08:12:52 pm »

It's in PHP.

I this doesn't do it, I'm going to beat up a penguin.  A small foam one, mind you, but a penguin nonetheless.

Worked!  Smiley  Awesome!

Thank you

Brielle
Logged
kcochran
Sr. Network Engineer, Hurricane Electric
Administrator
Sr. Member
*****
Posts: 251



View Profile
« Reply #11 on: July 27, 2009, 09:47:22 pm »

Glad to hear that.

Penguin, you get a reprieve.
Logged
tclement
Newbie
*
Posts: 8


View Profile
« Reply #12 on: November 05, 2010, 07:38:27 pm »

I'm also getting the error

Didn't get expected welcome

error message

My domain is theclements.info

thanks
Tim
Logged
tclement
Newbie
*
Posts: 8


View Profile
« Reply #13 on: November 06, 2010, 06:49:33 am »

I figured out the problem on my end. 

the hmailserver requires a new "ip range" for it to accept connections from ipv6
Logged
snarked
Hero Member
*****
Posts: 577



View Profile
« Reply #14 on: November 06, 2010, 03:11:34 pm »

RE - Reply #9:  Oh, No!  Not a penguin, let alone "Tux."

Anyone want to start a "save the penguin" fund here?  Wink
Save the penguin, save the world!  The penguin must survive.
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!