Bare LFs from hotmail (qmail)

Community support for Plesk, CPanel, WebMin and others with insight from two of the founders of Plesk. Ask for help here! No question is too simple or complicated. :-)
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Bare LFs from hotmail (qmail)

Unread post by faris »

I've seeing a huge number of
possible qmail-smtpd exited by timeout, reset connection or with "See http://pobox.com/~djb/docs/smtplf.html.
in the maillogs of one of our servers.

Although I see quite a few of them from other IPs (look like commercial mailers/spammers), I'm seeing most of them in conjuction from mail from Hotmail IPs.

The curious thing is that when I send email via a hotmail webmail account, or via Live Mail (which uses the same range of IPs when sending), the emails come through perfectly. In other words I can't reproduce it.

Has anyone else noticed an increase in these in their logs? Has Hotmail done something stupid? I can't imagine they would be sending bare LFs randomly. I suppose it could be a timeout rather than a bare LF, but again, how could that be happening with hotmail?

I can't, for various unimportant reasons, install spamdyke (which fixes any bare LFs) on this particular machine, unfortunately.

Faris.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Bare LFs from hotmail (qmail)

Unread post by faris »

Oh, problem solved using fixiocr:

http://forum.parallels.com/showthread.php?t=94222

Scott, this is probably worth adding to the ART rpm arsenal as an rpm. Very useful.

Faris.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Bare LFs from hotmail (qmail)

Unread post by faris »

Oops. I've just seen that doing things this way screws up TLS somehow. I can't figure it out unfortunately.

EDIT: Arrgh. Seems it "just won't work" with TLS. You'd have to add DENY_TLS=1 to the env line to disable TLS. Bah!


Faris.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Bare LFs from hotmail (qmail)

Unread post by scott »

are you serious, TLS with hotmail is the problem?
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Bare LFs from hotmail (qmail)

Unread post by faris »

No, Hotmail is sending bare LFs in messages from some of its servers. qmail rejects them. fixcrio basically adds CRs to any bare LFs, fixing the problem.

Unfortunately in doing so it breaks TLS.

So the only option is to disable TLS if you want to use fixcrio to solve the hotmail problem (and other mailers that send bare LFs, of which there are a lot, but mostly spammers).

Faris.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Bare LFs from hotmail (qmail)

Unread post by scott »

Way to violate the SMTP standards like a spammer microsoft...
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Bare LFs from hotmail (qmail)

Unread post by faris »

There's a patch for fixcrio that bypasses the tls issue by looking out for them then not screwing things up. I've applied it and it works.

So, bottom line, if you have this problem, have a look at the Parallels forum thread mentioned in my second post, patch the .c file mentioned with the patch mentioned, install, and all will be well.

But it would be much better is Hotmail just fixed the damn problem in the first place.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Bare LFs from hotmail (qmail)

Unread post by scott »

fixcrio is a package in what, qmail?
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Bare LFs from hotmail (qmail)

Unread post by faris »

It appears to be part of ucspi-tcp (http://cr.yp.to/ucspi-tcp.html) which includes tcpserver itself, rblsmtpd etc.

Faris.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Bare LFs from hotmail (qmail)

Unread post by scott »

well thats good news, I knew that sounded familiar. I maintain that for Project Gamera. It might be possible to adapt that for plesk again (I had done this before for a custom rblsmtpd)
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Bare LFs from hotmail (qmail)

Unread post by faris »

Did the custom rblsmtp happen to log which rbl triggered the reject? If so, is there any chance of using your custom one too please?
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Bare LFs from hotmail (qmail)

Unread post by scott »

Yes it does, its the same one we use in project gamera now.
laughingbuddha
Forum Regular
Forum Regular
Posts: 512
Joined: Mon Mar 10, 2008 9:12 pm
Location: Southampton, UK

Re: Bare LFs from hotmail (qmail)

Unread post by laughingbuddha »

I've just had a customer of mine email me saying he is getting this error message in Outlook when replying to emails.

"Your outgoing (SMTP) e-mail server has reported an internal error. If you continue to receive this message, contact your server administrator or Internet service provider (ISP). The server responded: 451 See http://pobox.com/~djb/docs/smtplf.html.

Strange this is I've never seen this error before on my server, so my question is, has an update come down the pipe recently that may have caused this to happen?
Matt

"Given that God is infinite, and that the universe is also infinite... would you like a toasted teacake?"

about.me/mattauckland
twitter.com/mattauckland
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Bare LFs from hotmail (qmail)

Unread post by faris »

I hope not. There was a Microsoft update on Tuesday but I've not had any reports of issues. Everything certainly works with Outlook 2010. Not sure about earlier versions.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
laughingbuddha
Forum Regular
Forum Regular
Posts: 512
Joined: Mon Mar 10, 2008 9:12 pm
Location: Southampton, UK

Re: Bare LFs from hotmail (qmail)

Unread post by laughingbuddha »

It is a strange one. I'm monitoring it for now, see what happens, but if anyone has any idea that would be cool.
Matt

"Given that God is infinite, and that the universe is also infinite... would you like a toasted teacake?"

about.me/mattauckland
twitter.com/mattauckland
Post Reply