SBS Exchange 2003: too many "Current Sessions" opened
Hello All,

Sometimes (usually it happens over weekends) my Exchange 2003 would stop
receiving external emails because of many active "Curresnt Sessions" and here
is why: our organization isn't big, so I lowered the "Limit number of
connections to:" parameter to 50 (it is done to fight the spam).

Now when somebody reports that he or she is not getting any "outside"
emails, I go to Exchange System Manager -> Servers -> <server> ->Protocols ->
SMTP -> Default SMTP Virtual Server - > Current Sessions and I see a bunch of
.br, .it, .ar, OHIOIJHOJOJI, etc, user names with connected times 98353566,
43543543, 3453453 seconds, or in another words with endless connection times.

I understand, that once the exchange reaches the number of connections of
50, it stops accepting new connections, stops receiving emails and here is my
qustions:
1. Why the "Terminate All" command doesn't remedy the problem with email flow?
As the second option, I try to restart SMTP service, but it freezes in a
stopping mode leaving me with only one option to restart entire server. (BTW,
I've also noticed that it feezes after I update IMF filter and I need to
restart the server)
2. what are those connections and how to protect Exchange from them?

Any advise will be greatly appreciated.
Thanks,

Re: SBS Exchange 2003: too many "Current Sessions" opened by Cris

Cris
Wed Aug 13 13:15:53 PDT 2008

This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C8FD57.7A471500
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: quoted-printable

First question is...
How much RAM in the Server?

Second Question is
Do you have Exchange Server 2003 Service Pack 2 installed and IMF =
configured for connection filtering against recognized blacklist =
providers?

--=20
Cris Hanna [SBS-MVP]
-------------------------------------------------
Microsoft MVPs
Independent Experts (MVPs do not work for MS)
Real World Answers
---------------------------------------------------------
Please do not contact me directly regarding issues

"Sann" <Sann@discussions.microsoft.com> wrote in message =
news:12FBED5A-99AC-4821-BB29-5602036459BF@microsoft.com...
SBS Exchange 2003: too many "Current Sessions" opened
Hello All,

Sometimes (usually it happens over weekends) my Exchange 2003 would stop =

receiving external emails because of many active "Curresnt Sessions" and =
here=20
is why: our organization isn't big, so I lowered the "Limit number of=20
connections to:" parameter to 50 (it is done to fight the spam).

Now when somebody reports that he or she is not getting any "outside"=20
emails, I go to Exchange System Manager -> Servers -> <server> =
->Protocols ->=20
SMTP -> Default SMTP Virtual Server - > Current Sessions and I see a =
bunch of=20
.br, .it, .ar, OHIOIJHOJOJI, etc, user names with connected times =
98353566,=20
43543543, 3453453 seconds, or in another words with endless connection =
times.

I understand, that once the exchange reaches the number of connections =
of=20
50, it stops accepting new connections, stops receiving emails and here =
is my=20
qustions:=20
1. Why the "Terminate All" command doesn't remedy the problem with email =
flow?
As the second option, I try to restart SMTP service, but it freezes in a =

stopping mode leaving me with only one option to restart entire server. =
(BTW,=20
I've also noticed that it feezes after I update IMF filter and I need =
to=20
restart the server)
2. what are those connections and how to protect Exchange from them?

Any advise will be greatly appreciated.=20
Thanks,
------=_NextPart_000_0007_01C8FD57.7A471500
Content-Type: text/html;
charset="Utf-8"
Content-Transfer-Encoding: quoted-printable

=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8">
<META content=3D"MSHTML 6.00.2900.3354" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>First question is...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>How much RAM in the =
Server?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Second Question is</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Do you have Exchange Server 2003 =
Service Pack 2=20
installed and IMF configured for connection filtering against recognized =

blacklist providers?</FONT></DIV>
<DIV><BR>-- <BR>Cris Hanna=20
[SBS-MVP]<BR>-------------------------------------------------<BR>Microso=
ft=20
MVPs<BR>&nbsp;Independent Experts (MVPs do not work for MS)<BR>Real =
World=20
Answers<BR>---------------------------------------------------------<BR>P=
lease=20
do not contact me directly regarding issues<BR></DIV>
<DIV>"Sann" &lt;<A=20
href=3D"mailto:Sann@discussions.microsoft.com">Sann@discussions.microsoft=
.com</A>&gt;=20
wrote in message <A=20
href=3D"news:12FBED5A-99AC-4821-BB29-5602036459BF@microsoft.com">news:12F=
BED5A-99AC-4821-BB29-5602036459BF@microsoft.com</A>...</DIV>SBS=20
Exchange 2003: too many "Current Sessions" opened<BR>Hello =
All,<BR><BR>Sometimes=20
(usually it happens over weekends) my Exchange 2003 would stop =
<BR>receiving=20
external emails because of many active "Curresnt Sessions" and here =
<BR>is why:=20
our organization isn't big, so I lowered the "Limit number of =
<BR>connections=20
to:" parameter to 50 (it is done to fight the spam).<BR><BR>Now when =
somebody=20
reports that he or she is not getting any "outside" <BR>emails, I go to =
Exchange=20
System Manager -&gt; Servers -&gt; &lt;server&gt; -&gt;Protocols -&gt; =
<BR>SMTP=20
-&gt; Default SMTP Virtual Server - &gt; Current Sessions and I see a =
bunch of=20
<BR>.br, .it, .ar, OHIOIJHOJOJI, etc, user names with connected times =
98353566,=20
<BR>43543543, 3453453 seconds, or in another words with endless =
connection=20
times.<BR><BR>I understand, that once the exchange reaches the number of =

connections of <BR>50, it stops accepting new connections, stops =
receiving=20
emails and here is my <BR>qustions: <BR>1. Why the "Terminate All" =
command=20
doesn't remedy the problem with email flow?<BR>As the second option, I =
try to=20
restart SMTP service, but it freezes in a <BR>stopping mode leaving me =
with only=20
one option to restart entire server. (BTW, <BR>I've also&nbsp; noticed =
that it=20
feezes after I update IMF filter and I need to <BR>restart the =
server)<BR>2.=20
what are those connections and how to protect Exchange from =
them?<BR><BR>Any=20
advise will be greatly appreciated. <BR>Thanks,</BODY></HTML>

------=_NextPart_000_0007_01C8FD57.7A471500--


Re: SBS Exchange 2003: too many "Current Sessions" opened by Sann

Sann
Wed Aug 13 13:29:00 PDT 2008

Hello Cris, thank you for your prompt reply.

dual core 2.8 GHz with 2 GB memory.
the memory usage averages about 1,5 GB at all times.

Yes, I have installed SP 2 and all latest updates released after, with IMF
and enabled on SMTP.

"Cris Hanna [SBS-MVP]" wrote:

> First question is...
> How much RAM in the Server?
>
> Second Question is
> Do you have Exchange Server 2003 Service Pack 2 installed and IMF configured for connection filtering against recognized blacklist providers?
>
> --
> Cris Hanna [SBS-MVP]
> -------------------------------------------------
> Microsoft MVPs
> Independent Experts (MVPs do not work for MS)
> Real World Answers
> ---------------------------------------------------------
> Please do not contact me directly regarding issues
>
> "Sann" <Sann@discussions.microsoft.com> wrote in message news:12FBED5A-99AC-4821-BB29-5602036459BF@microsoft.com...
> SBS Exchange 2003: too many "Current Sessions" opened
> Hello All,
>
> Sometimes (usually it happens over weekends) my Exchange 2003 would stop
> receiving external emails because of many active "Curresnt Sessions" and here
> is why: our organization isn't big, so I lowered the "Limit number of
> connections to:" parameter to 50 (it is done to fight the spam).
>
> Now when somebody reports that he or she is not getting any "outside"
> emails, I go to Exchange System Manager -> Servers -> <server> ->Protocols ->
> SMTP -> Default SMTP Virtual Server - > Current Sessions and I see a bunch of
> ..br, .it, .ar, OHIOIJHOJOJI, etc, user names with connected times 98353566,
> 43543543, 3453453 seconds, or in another words with endless connection times.
>
> I understand, that once the exchange reaches the number of connections of
> 50, it stops accepting new connections, stops receiving emails and here is my
> qustions:
> 1. Why the "Terminate All" command doesn't remedy the problem with email flow?
> As the second option, I try to restart SMTP service, but it freezes in a
> stopping mode leaving me with only one option to restart entire server. (BTW,
> I've also noticed that it feezes after I update IMF filter and I need to
> restart the server)
> 2. what are those connections and how to protect Exchange from them?
>
> Any advise will be greatly appreciated

Re: SBS Exchange 2003: too many "Current Sessions" opened by Cliff

Cliff
Wed Aug 13 13:57:22 PDT 2008

Sann:

Try these things, in this order:

1) Enable recipient filtering and only accept messages from users in AD.
The most common reason for ridiculously long connection times is a spambot
trying to do a directory harvest. Since exchange defaults to accepting
*everything* at connect time and rejecting later, you end up with the bot
just sending name after name to the server and never getting a rejection.
It has no reason to disconnect.

2) Once recipient filtering is enabled, you will actually be exposed to a
directory harvest attack instead of exchange just accepting everything. So,
you should enable tarpitting. This is the point you should see those
connections drop down.

3) IF, after a week, you are still seeing some connections, try *DISABLING*
SenderID filtering on the Virtual SMTP server. There is a bug in one of the
SenderID dll's that can falsely hold open connections. MS has quietly
acknowledged its existence, but has not come clean yet (to my knowledge)
what the exact parameters are that cause this behavior. It is not
consistent in my experience. Some servers have it, some don't exhibit it at
all. And I'm told that it is fixed in Exchange 2007. I haven't seen it
surface on 2007 yet myself, so I'm inclined to believe them...but then
again, SBS 2008 isn't released yet....so it could be an odd interaction
there.

To answer your other questions, the SMTP stack does seem to lock up with
these long connections. That is the reason that 'terminate all' does not
resolve the problem AND why the SMTP service stops responding if you try to
restart it. You do *not* need to restart the server, however.

From the command line, you can run this command:

sc queryex smtpsvc

And in the output, find the process ID (PID). Once you have the PID, you
can kill the process in task manager (usually an inetinfo process, which is
why it is so tough to find.) From there, the process is flushed completely
from memory and can be restarted without problem.

-Cliff

"Sann" <Sann@discussions.microsoft.com> wrote in message
news:6894EB2A-E7E0-4AD7-B799-446E28719BFC@microsoft.com...
> Hello Cris, thank you for your prompt reply.
>
> dual core 2.8 GHz with 2 GB memory.
> the memory usage averages about 1,5 GB at all times.
>
> Yes, I have installed SP 2 and all latest updates released after, with IMF
> and enabled on SMTP.
>
> "Cris Hanna [SBS-MVP]" wrote:
>
>> First question is...
>> How much RAM in the Server?
>>
>> Second Question is
>> Do you have Exchange Server 2003 Service Pack 2 installed and IMF
>> configured for connection filtering against recognized blacklist
>> providers?
>>
>> --
>> Cris Hanna [SBS-MVP]
>> -------------------------------------------------
>> Microsoft MVPs
>> Independent Experts (MVPs do not work for MS)
>> Real World Answers
>> ---------------------------------------------------------
>> Please do not contact me directly regarding issues
>>
>> "Sann" <Sann@discussions.microsoft.com> wrote in message
>> news:12FBED5A-99AC-4821-BB29-5602036459BF@microsoft.com...
>> SBS Exchange 2003: too many "Current Sessions" opened
>> Hello All,
>>
>> Sometimes (usually it happens over weekends) my Exchange 2003 would stop
>> receiving external emails because of many active "Curresnt Sessions" and
>> here
>> is why: our organization isn't big, so I lowered the "Limit number of
>> connections to:" parameter to 50 (it is done to fight the spam).
>>
>> Now when somebody reports that he or she is not getting any "outside"
>> emails, I go to Exchange System Manager -> Servers ->
>> <server> ->Protocols ->
>> SMTP -> Default SMTP Virtual Server - > Current Sessions and I see a
>> bunch of
>> ..br, .it, .ar, OHIOIJHOJOJI, etc, user names with connected times
>> 98353566,
>> 43543543, 3453453 seconds, or in another words with endless connection
>> times.
>>
>> I understand, that once the exchange reaches the number of connections of
>> 50, it stops accepting new connections, stops receiving emails and here
>> is my
>> qustions:
>> 1. Why the "Terminate All" command doesn't remedy the problem with email
>> flow?
>> As the second option, I try to restart SMTP service, but it freezes in a
>> stopping mode leaving me with only one option to restart entire server.
>> (BTW,
>> I've also noticed that it feezes after I update IMF filter and I need to
>> restart the server)
>> 2. what are those connections and how to protect Exchange from them?
>>
>> Any advise will be greatly appreciated


Re: SBS Exchange 2003: too many "Current Sessions" opened by Cris

Cris
Wed Aug 13 14:24:07 PDT 2008

This is a multi-part message in MIME format.

------=_NextPart_000_004B_01C8FD61.029A49A0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: quoted-printable

And if you only have 2GB of RAM, RAM is cheap!! bump it to 4GB

And my spam has dropped so much using SBS 2008 RC1 it's a non-issue any =
more

--=20
Cris Hanna [SBS-MVP]
-------------------------------------------------
Microsoft MVPs
Independent Experts (MVPs do not work for MS)
Real World Answers
---------------------------------------------------------
Please do not contact me directly regarding issues

"Cliff Galiher" <cgaliher@gmail.com> wrote in message =
news:Bfmdnb4hrr4v1z7VnZ2dnUVZ_gOdnZ2d@bresnan.com...
Sann:

Try these things, in this order:

1) Enable recipient filtering and only accept messages from users in AD. =

The most common reason for ridiculously long connection times is a =
spambot=20
trying to do a directory harvest. Since exchange defaults to accepting=20
*everything* at connect time and rejecting later, you end up with the =
bot=20
just sending name after name to the server and never getting a =
rejection.=20
It has no reason to disconnect.

2) Once recipient filtering is enabled, you will actually be exposed to =
a=20
directory harvest attack instead of exchange just accepting everything. =
So,=20
you should enable tarpitting. This is the point you should see those=20
connections drop down.

3) IF, after a week, you are still seeing some connections, try =
*DISABLING*=20
SenderID filtering on the Virtual SMTP server. There is a bug in one of =
the=20
SenderID dll's that can falsely hold open connections. MS has quietly=20
acknowledged its existence, but has not come clean yet (to my knowledge) =

what the exact parameters are that cause this behavior. It is not=20
consistent in my experience. Some servers have it, some don't exhibit =
it at=20
all. And I'm told that it is fixed in Exchange 2007. I haven't seen it =

surface on 2007 yet myself, so I'm inclined to believe them...but then=20
again, SBS 2008 isn't released yet....so it could be an odd interaction=20
there.

To answer your other questions, the SMTP stack does seem to lock up with =

these long connections. That is the reason that 'terminate all' does =
not=20
resolve the problem AND why the SMTP service stops responding if you try =
to=20
restart it. You do *not* need to restart the server, however.

From the command line, you can run this command:

sc queryex smtpsvc

And in the output, find the process ID (PID). Once you have the PID, =
you=20
can kill the process in task manager (usually an inetinfo process, which =
is=20
why it is so tough to find.) From there, the process is flushed =
completely=20
from memory and can be restarted without problem.

-Cliff

"Sann" <Sann@discussions.microsoft.com> wrote in message=20
news:6894EB2A-E7E0-4AD7-B799-446E28719BFC@microsoft.com...
> Hello Cris, thank you for your prompt reply.
>
> dual core 2.8 GHz with 2 GB memory.
> the memory usage averages about 1,5 GB at all times.
>
> Yes, I have installed SP 2 and all latest updates released after, with =
IMF
> and enabled on SMTP.
>
> "Cris Hanna [SBS-MVP]" wrote:
>
>> First question is...
>> How much RAM in the Server?
>>
>> Second Question is
>> Do you have Exchange Server 2003 Service Pack 2 installed and IMF=20
>> configured for connection filtering against recognized blacklist=20
>> providers?
>>
>> --=20
>> Cris Hanna [SBS-MVP]
>> -------------------------------------------------
>> Microsoft MVPs
>> Independent Experts (MVPs do not work for MS)
>> Real World Answers
>> ---------------------------------------------------------
>> Please do not contact me directly regarding issues
>>
>> "Sann" <Sann@discussions.microsoft.com> wrote in message=20
>> news:12FBED5A-99AC-4821-BB29-5602036459BF@microsoft.com...
>> SBS Exchange 2003: too many "Current Sessions" opened
>> Hello All,
>>
>> Sometimes (usually it happens over weekends) my Exchange 2003 would =
stop
>> receiving external emails because of many active "Curresnt Sessions" =
and=20
>> here
>> is why: our organization isn't big, so I lowered the "Limit number of
>> connections to:" parameter to 50 (it is done to fight the spam).
>>
>> Now when somebody reports that he or she is not getting any "outside"
>> emails, I go to Exchange System Manager -> Servers ->=20
>> <server> ->Protocols ->
>> SMTP -> Default SMTP Virtual Server - > Current Sessions and I see a=20
>> bunch of
>> ..br, .it, .ar, OHIOIJHOJOJI, etc, user names with connected times=20
>> 98353566,
>> 43543543, 3453453 seconds, or in another words with endless =
connection=20
>> times.
>>
>> I understand, that once the exchange reaches the number of =
connections of
>> 50, it stops accepting new connections, stops receiving emails and =
here=20
>> is my
>> qustions:
>> 1. Why the "Terminate All" command doesn't remedy the problem with =
email=20
>> flow?
>> As the second option, I try to restart SMTP service, but it freezes =
in a
>> stopping mode leaving me with only one option to restart entire =
server.=20
>> (BTW,
>> I've also noticed that it feezes after I update IMF filter and I =
need to
>> restart the server)
>> 2. what are those connections and how to protect Exchange from them?
>>
>> Any advise will be greatly appreciated=20

------=_NextPart_000_004B_01C8FD61.029A49A0
Content-Type: text/html;
charset="Utf-8"
Content-Transfer-Encoding: quoted-printable

=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8">
<META content=3D"MSHTML 6.00.2900.3354" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>And if you only have 2GB of RAM,&nbsp; =
RAM is=20
cheap!!&nbsp; bump it to 4GB</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>And my spam has dropped so much using =
SBS 2008=20
RC1&nbsp; it's a non-issue any more</FONT></DIV>
<DIV><BR>-- <BR>Cris Hanna=20
[SBS-MVP]<BR>-------------------------------------------------<BR>Microso=
ft=20
MVPs<BR>&nbsp;Independent Experts (MVPs do not work for MS)<BR>Real =
World=20
Answers<BR>---------------------------------------------------------<BR>P=
lease=20
do not contact me directly regarding issues<BR></DIV>
<DIV>"Cliff Galiher" &lt;<A=20
href=3D"mailto:cgaliher@gmail.com">cgaliher@gmail.com</A>&gt; wrote in =
message <A=20
href=3D"news:Bfmdnb4hrr4v1z7VnZ2dnUVZ_gOdnZ2d@bresnan.com">news:Bfmdnb4hr=
r4v1z7VnZ2dnUVZ_gOdnZ2d@bresnan.com</A>...</DIV>Sann:<BR><BR>Try=20
these things, in this order:<BR><BR>1) Enable recipient filtering and =
only=20
accept messages from users in AD. <BR>The most common reason for =
ridiculously=20
long connection times is a spambot <BR>trying to do a directory harvest. =
Since=20
exchange defaults to accepting <BR>*everything* at connect time and =
rejecting=20
later, you end up with the bot <BR>just sending name after name to the =
server=20
and never getting a rejection. <BR>It has no reason to =
disconnect.<BR><BR>2)=20
Once recipient filtering is enabled, you will actually be exposed to a=20
<BR>directory harvest attack instead of exchange just accepting=20
everything.&nbsp; So, <BR>you should enable tarpitting.&nbsp; This is =
the point=20
you should see those <BR>connections drop down.<BR><BR>3) IF, after a =
week, you=20
are still seeing some connections, try *DISABLING* <BR>SenderID =
filtering on the=20
Virtual SMTP server.&nbsp; There is a bug in one of the <BR>SenderID =
dll's that=20
can falsely hold open connections.&nbsp; MS has quietly <BR>acknowledged =
its=20
existence, but has not come clean yet (to my knowledge) <BR>what the =
exact=20
parameters are that cause this behavior.&nbsp; It is not <BR>consistent =
in my=20
experience.&nbsp; Some servers have it, some don't exhibit it at =
<BR>all.&nbsp;=20
And I'm told that it is fixed in Exchange 2007.&nbsp; I haven't seen it=20
<BR>surface on 2007 yet myself, so I'm inclined to believe them...but =
then=20
<BR>again, SBS 2008 isn't released yet....so it could be an odd =
interaction=20
<BR>there.<BR><BR>To answer your other questions, the SMTP stack does =
seem to=20
lock up with <BR>these long connections.&nbsp; That is the reason that=20
'terminate all' does not <BR>resolve the problem AND why the SMTP =
service stops=20
responding if you try to <BR>restart it.&nbsp; You do *not* need to =
restart the=20
server, however.<BR><BR>From the command line, you can run this=20
command:<BR><BR>sc queryex smtpsvc<BR><BR>And in the output, find the =
process ID=20
(PID).&nbsp; Once you have the PID, you <BR>can kill the process in task =
manager=20
(usually an inetinfo process, which is <BR>why it is so tough to =
find.)&nbsp;=20
From there, the process is flushed completely <BR>from memory and can be =

restarted without problem.<BR><BR>-Cliff<BR><BR>"Sann" &lt;<A=20
href=3D"mailto:Sann@discussions.microsoft.com">Sann@discussions.microsoft=
.com</A>&gt;=20
wrote in message <BR><A=20
href=3D"news:6894EB2A-E7E0-4AD7-B799-446E28719BFC@microsoft.com">news:689=
4EB2A-E7E0-4AD7-B799-446E28719BFC@microsoft.com</A>...<BR>&gt;=20
Hello Cris, thank you for your prompt reply.<BR>&gt;<BR>&gt; dual core =
2.8 GHz=20
with 2 GB memory.<BR>&gt; the memory usage averages about 1,5 GB at all=20
times.<BR>&gt;<BR>&gt; Yes, I have installed SP 2 and all latest updates =

released after, with IMF<BR>&gt; and enabled on SMTP.<BR>&gt;<BR>&gt; =
"Cris=20
Hanna [SBS-MVP]" wrote:<BR>&gt;<BR>&gt;&gt; First question =
is...<BR>&gt;&gt; How=20
much RAM in the Server?<BR>&gt;&gt;<BR>&gt;&gt; Second Question =
is<BR>&gt;&gt;=20
Do you have Exchange Server 2003 Service Pack 2 installed and IMF =
<BR>&gt;&gt;=20
configured for connection filtering against recognized blacklist =
<BR>&gt;&gt;=20
providers?<BR>&gt;&gt;<BR>&gt;&gt; -- <BR>&gt;&gt; Cris Hanna=20
[SBS-MVP]<BR>&gt;&gt;=20
-------------------------------------------------<BR>&gt;&gt; Microsoft=20
MVPs<BR>&gt;&gt;&nbsp; Independent Experts (MVPs do not work for =
MS)<BR>&gt;&gt;=20
Real World Answers<BR>&gt;&gt;=20
---------------------------------------------------------<BR>&gt;&gt; =
Please do=20
not contact me directly regarding issues<BR>&gt;&gt;<BR>&gt;&gt; "Sann" =
&lt;<A=20
href=3D"mailto:Sann@discussions.microsoft.com">Sann@discussions.microsoft=
.com</A>&gt;=20
wrote in message <BR>&gt;&gt; <A=20
href=3D"news:12FBED5A-99AC-4821-BB29-5602036459BF@microsoft.com">news:12F=
BED5A-99AC-4821-BB29-5602036459BF@microsoft.com</A>...<BR>&gt;&gt;=20
SBS Exchange 2003: too many "Current Sessions" opened<BR>&gt;&gt; Hello=20
All,<BR>&gt;&gt;<BR>&gt;&gt; Sometimes (usually it happens over =
weekends) my=20
Exchange 2003 would stop<BR>&gt;&gt; receiving external emails because =
of many=20
active "Curresnt Sessions" and <BR>&gt;&gt; here<BR>&gt;&gt; is why: our =

organization isn't big, so I lowered the "Limit number of<BR>&gt;&gt;=20
connections to:" parameter to 50 (it is done to fight the=20
spam).<BR>&gt;&gt;<BR>&gt;&gt; Now when somebody reports that he or she =
is not=20
getting any "outside"<BR>&gt;&gt; emails, I go to Exchange System =
Manager -&gt;=20
Servers -&gt; <BR>&gt;&gt; &lt;server&gt; -&gt;Protocols =
-&gt;<BR>&gt;&gt; SMTP=20
-&gt; Default SMTP Virtual Server - &gt; Current Sessions and I see a=20
<BR>&gt;&gt; bunch of<BR>&gt;&gt; ..br, .it, .ar, OHIOIJHOJOJI, etc, =
user names=20
with connected times <BR>&gt;&gt; 98353566,<BR>&gt;&gt; 43543543, =
3453453=20
seconds, or in another words with endless connection <BR>&gt;&gt;=20
times.<BR>&gt;&gt;<BR>&gt;&gt; I understand, that once the exchange =
reaches the=20
number of connections of<BR>&gt;&gt; 50, it stops accepting new =
connections,=20
stops receiving emails and here <BR>&gt;&gt; is my<BR>&gt;&gt;=20
qustions:<BR>&gt;&gt; 1. Why the "Terminate All" command doesn't remedy =
the=20
problem with email <BR>&gt;&gt; flow?<BR>&gt;&gt; As the second option, =
I try to=20
restart SMTP service, but it freezes in a<BR>&gt;&gt; stopping mode =
leaving me=20
with only one option to restart entire server. <BR>&gt;&gt; =
(BTW,<BR>&gt;&gt;=20
I've also&nbsp; noticed that it feezes after I update IMF filter and I =
need=20
to<BR>&gt;&gt; restart the server)<BR>&gt;&gt; 2. what are those =
connections and=20
how to protect Exchange from them?<BR>&gt;&gt;<BR>&gt;&gt; Any advise =
will be=20
greatly appreciated <BR></BODY></HTML>

------=_NextPart_000_004B_01C8FD61.029A49A0--


Re: SBS Exchange 2003: too many "Current Sessions" opened by Sann

Sann
Thu Aug 14 06:28:05 PDT 2008

Thanks a lot for your advices and information - will start experimenting....

btw, a quick side question to Cris: how did you move your users to SBS2008:
using migration tool in exchange or csv, ldi tools? I'm asking this question
in responce to your suggestion to bump the RAM to 4 GB. I'm installing a new
server hardware: 2x4 proc-s, 4 GB, RAID 10 on SAS, etc...

"Cris Hanna [SBS-MVP]" wrote:

> And if you only have 2GB of RAM, RAM is cheap!! bump it to 4GB
>
> And my spam has dropped so much using SBS 2008 RC1 it's a non-issue any more
>
> --
> Cris Hanna [SBS-MVP]
> -------------------------------------------------
> Microsoft MVPs
> Independent Experts (MVPs do not work for MS)
> Real World Answers
> ---------------------------------------------------------
> Please do not contact me directly regarding issues
>
> "Cliff Galiher" <cgaliher@gmail.com> wrote in message news:Bfmdnb4hrr4v1z7VnZ2dnUVZ_gOdnZ2d@bresnan.com...
> Sann:
>
> Try these things, in this order:
>
> 1) Enable recipient filtering and only accept messages from users in AD.
> The most common reason for ridiculously long connection times is a spambot
> trying to do a directory harvest. Since exchange defaults to accepting
> *everything* at connect time and rejecting later, you end up with the bot
> just sending name after name to the server and never getting a rejection.
> It has no reason to disconnect.
>
> 2) Once recipient filtering is enabled, you will actually be exposed to a
> directory harvest attack instead of exchange just accepting everything. So,
> you should enable tarpitting. This is the point you should see those
> connections drop down.
>
> 3) IF, after a week, you are still seeing some connections, try *DISABLING*
> SenderID filtering on the Virtual SMTP server. There is a bug in one of the
> SenderID dll's that can falsely hold open connections. MS has quietly
> acknowledged its existence, but has not come clean yet (to my knowledge)
> what the exact parameters are that cause this behavior. It is not
> consistent in my experience. Some servers have it, some don't exhibit it at
> all. And I'm told that it is fixed in Exchange 2007. I haven't seen it
> surface on 2007 yet myself, so I'm inclined to believe them...but then
> again, SBS 2008 isn't released yet....so it could be an odd interaction
> there.
>
> To answer your other questions, the SMTP stack does seem to lock up with
> these long connections. That is the reason that 'terminate all' does not
> resolve the problem AND why the SMTP service stops responding if you try to
> restart it. You do *not* need to restart the server, however.
>
> From the command line, you can run this command:
>
> sc queryex smtpsvc
>
> And in the output, find the process ID (PID). Once you have the PID, you
> can kill the process in task manager (usually an inetinfo process, which is
> why it is so tough to find.) From there, the process is flushed completely
> from memory and can be restarted without problem.
>
> -Cliff
>
> "Sann" <Sann@discussions.microsoft.com> wrote in message
> news:6894EB2A-E7E0-4AD7-B799-446E28719BFC@microsoft.com...
> > Hello Cris, thank you for your prompt reply.
> >
> > dual core 2.8 GHz with 2 GB memory.
> > the memory usage averages about 1,5 GB at all times.
> >
> > Yes, I have installed SP 2 and all latest updates released after, with IMF
> > and enabled on SMTP.
> >
> > "Cris Hanna [SBS-MVP]" wrote:
> >
> >> First question is...
> >> How much RAM in the Server?
> >>
> >> Second Question is
> >> Do you have Exchange Server 2003 Service Pack 2 installed and IMF
> >> configured for connection filtering against recognized blacklist
> >> providers?
> >>
> >> --
> >> Cris Hanna [SBS-MVP]
> >> -------------------------------------------------
> >> Microsoft MVPs
> >> Independent Experts (MVPs do not work for MS)
> >> Real World Answers
> >> ---------------------------------------------------------
> >> Please do not contact me directly regarding issues
> >>
> >> "Sann" <Sann@discussions.microsoft.com> wrote in message
> >> news:12FBED5A-99AC-4821-BB29-5602036459BF@microsoft.com...
> >> SBS Exchange 2003: too many "Current Sessions" opened
> >> Hello All,
> >>
> >> Sometimes (usually it happens over weekends) my Exchange 2003 would stop
> >> receiving external emails because of many active "Curresnt Sessions" and
> >> here
> >> is why: our organization isn't big, so I lowered the "Limit number of
> >> connections to:" parameter to 50 (it is done to fight the spam).
> >>
> >> Now when somebody reports that he or she is not getting any "outside"
> >> emails, I go to Exchange System Manager -> Servers ->
> >> <server> ->Protocols ->
> >> SMTP -> Default SMTP Virtual Server - > Current Sessions and I see a
> >> bunch of
> >> ..br, .it, .ar, OHIOIJHOJOJI, etc, user names with connected times
> >> 98353566,
> >> 43543543, 3453453 seconds, or in another words with endless connection
> >> times.
> >>
> >> I understand, that once the exchange reaches the number of connections of
> >> 50, it stops accepting new connections, stops receiving emails and here
> >> is my
> >> qustions:
> >> 1. Why the "Terminate All" command doesn't remedy the problem with email
> >> flow?
> >> As the second option, I try to restart SMTP service, but it freezes in a
> >> stopping mode leaving me with only one option to restart entire server.
> >> (BTW,
> >> I've also noticed that it feezes after I update IMF filter and I need to
> >> restart the server)
> >> 2. what are those connections and how to protect Exchange from them?
> >>
> >> Any advise will be greatly appreciated
>

Re: SBS Exchange 2003: too many "Current Sessions" opened by Cris

Cris
Thu Aug 14 08:01:03 PDT 2008

This is a multi-part message in MIME format.

------=_NextPart_000_004F_01C8FDF4.A9607E60
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: quoted-printable

SBS 2008 is not a production server since it only RC1...its my test =
server and I'm the only user...so there was no "migration" as such

SBS 2008 does include the option during installation, to install fresh =
or to perform a migration installation, which allows you to introduce it =
into an existing SBS 2003 organizations.



--=20
Cris Hanna [SBS-MVP]
Co-Author, Windows Small Business Server 2008 Unleashed=20
http://www.amazon.com/Windows-Small-Business-Server-Unleashed/dp/06723295=
73/ref=3Dpd_bbs_sr_1?ie=3DUTF8&s=3Dbooks&qid=3D1217269967&sr=3D8-1
-------------------------------------------------
Microsoft MVPs
Independent Experts (MVPs do not work for MS)
Real World Answers
---------------------------------------------------------
Please do not contact me directly regarding issues

"Sann" <Sann@discussions.microsoft.com> wrote in message =
news:19118D7F-6331-44AF-A64B-58E77F8F43B2@microsoft.com...
Thanks a lot for your advices and information - will start =
experimenting....

btw, a quick side question to Cris: how did you move your users to =
SBS2008:=20
using migration tool in exchange or csv, ldi tools? I'm asking this =
question=20
in responce to your suggestion to bump the RAM to 4 GB. I'm installing a =
new=20
server hardware: 2x4 proc-s, 4 GB, RAID 10 on SAS, etc...

"Cris Hanna [SBS-MVP]" wrote:

> And if you only have 2GB of RAM, RAM is cheap!! bump it to 4GB
>=20
> And my spam has dropped so much using SBS 2008 RC1 it's a non-issue =
any more
>=20
> --=20
> Cris Hanna [SBS-MVP]
> -------------------------------------------------
> Microsoft MVPs
> Independent Experts (MVPs do not work for MS)
> Real World Answers
> ---------------------------------------------------------
> Please do not contact me directly regarding issues
>=20
> "Cliff Galiher" <cgaliher@gmail.com> wrote in message =
news:Bfmdnb4hrr4v1z7VnZ2dnUVZ_gOdnZ2d@bresnan.com...
> Sann:
>=20
> Try these things, in this order:
>=20
> 1) Enable recipient filtering and only accept messages from users in =
AD.=20
> The most common reason for ridiculously long connection times is a =
spambot=20
> trying to do a directory harvest. Since exchange defaults to accepting =

> *everything* at connect time and rejecting later, you end up with the =
bot=20
> just sending name after name to the server and never getting a =
rejection.=20
> It has no reason to disconnect.
>=20
> 2) Once recipient filtering is enabled, you will actually be exposed =
to a=20
> directory harvest attack instead of exchange just accepting =
everything. So,=20
> you should enable tarpitting. This is the point you should see those=20
> connections drop down.
>=20
> 3) IF, after a week, you are still seeing some connections, try =
*DISABLING*=20
> SenderID filtering on the Virtual SMTP server. There is a bug in one =
of the=20
> SenderID dll's that can falsely hold open connections. MS has quietly =

> acknowledged its existence, but has not come clean yet (to my =
knowledge)=20
> what the exact parameters are that cause this behavior. It is not=20
> consistent in my experience. Some servers have it, some don't exhibit =
it at=20
> all. And I'm told that it is fixed in Exchange 2007. I haven't seen =
it=20
> surface on 2007 yet myself, so I'm inclined to believe them...but then =

> again, SBS 2008 isn't released yet....so it could be an odd =
interaction=20
> there.
>=20
> To answer your other questions, the SMTP stack does seem to lock up =
with=20
> these long connections. That is the reason that 'terminate all' does =
not=20
> resolve the problem AND why the SMTP service stops responding if you =
try to=20
> restart it. You do *not* need to restart the server, however.
>=20
> From the command line, you can run this command:
>=20
> sc queryex smtpsvc
>=20
> And in the output, find the process ID (PID). Once you have the PID, =
you=20
> can kill the process in task manager (usually an inetinfo process, =
which is=20
> why it is so tough to find.) From there, the process is flushed =
completely=20
> from memory and can be restarted without problem.
>=20
> -Cliff
>=20
> "Sann" <Sann@discussions.microsoft.com> wrote in message=20
> news:6894EB2A-E7E0-4AD7-B799-446E28719BFC@microsoft.com...
> > Hello Cris, thank you for your prompt reply.
> >
> > dual core 2.8 GHz with 2 GB memory.
> > the memory usage averages about 1,5 GB at all times.
> >
> > Yes, I have installed SP 2 and all latest updates released after, =
with IMF
> > and enabled on SMTP.
> >
> > "Cris Hanna [SBS-MVP]" wrote:
> >
> >> First question is...
> >> How much RAM in the Server?
> >>
> >> Second Question is
> >> Do you have Exchange Server 2003 Service Pack 2 installed and IMF=20
> >> configured for connection filtering against recognized blacklist=20
> >> providers?
> >>
> >> --=20
> >> Cris Hanna [SBS-MVP]
> >> -------------------------------------------------
> >> Microsoft MVPs
> >> Independent Experts (MVPs do not work for MS)
> >> Real World Answers
> >> ---------------------------------------------------------
> >> Please do not contact me directly regarding issues
> >>
> >> "Sann" <Sann@discussions.microsoft.com> wrote in message=20
> >> news:12FBED5A-99AC-4821-BB29-5602036459BF@microsoft.com...
> >> SBS Exchange 2003: too many "Current Sessions" opened
> >> Hello All,
> >>
> >> Sometimes (usually it happens over weekends) my Exchange 2003 would =
stop
> >> receiving external emails because of many active "Curresnt =
Sessions" and=20
> >> here
> >> is why: our organization isn't big, so I lowered the "Limit number =
of
> >> connections to:" parameter to 50 (it is done to fight the spam).
> >>
> >> Now when somebody reports that he or she is not getting any =
"outside"
> >> emails, I go to Exchange System Manager -> Servers ->=20
> >> <server> ->Protocols ->
> >> SMTP -> Default SMTP Virtual Server - > Current Sessions and I see =
a=20
> >> bunch of
> >> ..br, .it, .ar, OHIOIJHOJOJI, etc, user names with connected times=20
> >> 98353566,
> >> 43543543, 3453453 seconds, or in another words with endless =
connection=20
> >> times.
> >>
> >> I understand, that once the exchange reaches the number of =
connections of
> >> 50, it stops accepting new connections, stops receiving emails and =
here=20
> >> is my
> >> qustions:
> >> 1. Why the "Terminate All" command doesn't remedy the problem with =
email=20
> >> flow?
> >> As the second option, I try to restart SMTP service, but it freezes =
in a
> >> stopping mode leaving me with only one option to restart entire =
server.=20
> >> (BTW,
> >> I've also noticed that it feezes after I update IMF filter and I =
need to
> >> restart the server)
> >> 2. what are those connections and how to protect Exchange from =
them?
> >>
> >> Any advise will be greatly appreciated=20
>
------=_NextPart_000_004F_01C8FDF4.A9607E60
Content-Type: text/html;
charset="Utf-8"
Content-Transfer-Encoding: quoted-printable

=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8">
<META content=3D"MSHTML 6.00.2900.3354" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>SBS 2008 is not a production server =
since it only=20
RC1...its my test server and I'm the only user...so there was no =
"migration" as=20
such</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>SBS 2008 does include the option during =

installation, to install fresh or to perform a migration installation, =
which=20
allows you to introduce it into an existing SBS 2003 =
organizations.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV><FONT face=3DArial =
size=3D2></FONT>
<DIV><BR>-- <BR>Cris Hanna [SBS-MVP]</DIV>
<DIV>Co-Author, <SPAN id=3DbtAsinTitle>Windows Small Business Server =
2008=20
Unleashed </SPAN></DIV>
<DIV><A=20
href=3D"https://mail.cpuservices.net/owa/redir.aspx?C=3D48b50e97f1d34273a=
bb875fd9e053a75&amp;URL=3Dhttp%3a%2f%2fwww.amazon.com%2fWindows-Small-Bus=
iness-Server-Unleashed%2fdp%2f0672329573%2fref%3dpd_bbs_sr_1%3fie%3dUTF8%=
26s%3dbooks%26qid%3d1217269967%26sr%3d8-1"=20
target=3D_blank>http://www.amazon.com/Windows-Small-Business-Server-Unlea=
shed/dp/0672329573/ref=3Dpd_bbs_sr_1?ie=3DUTF8&amp;s=3Dbooks&amp;qid=3D12=
17269967&amp;sr=3D8-1</A><BR>--------------------------------------------=
-----<BR>Microsoft=20
MVPs<BR>&nbsp;Independent Experts (MVPs do not work for MS)<BR>Real =
World=20
Answers<BR>---------------------------------------------------------<BR>P=
lease=20
do not contact me directly regarding issues<BR></DIV>
<DIV>"Sann" &lt;<A=20
href=3D"mailto:Sann@discussions.microsoft.com">Sann@discussions.microsoft=
.com</A>&gt;=20
wrote in message <A=20
href=3D"news:19118D7F-6331-44AF-A64B-58E77F8F43B2@microsoft.com">news:191=
18D7F-6331-44AF-A64B-58E77F8F43B2@microsoft.com</A>...</DIV>Thanks=20
a lot for your advices and information - will start=20
experimenting....<BR><BR>btw, a quick side question to Cris: how did you =
move=20
your users to SBS2008: <BR>using migration tool in exchange or csv, ldi =
tools?=20
I'm asking this question <BR>in responce to your suggestion to bump the =
RAM to 4=20
GB. I'm installing a new <BR>server hardware: 2x4 proc-s, 4 GB, RAID 10 =
on SAS,=20
etc...<BR><BR>"Cris Hanna [SBS-MVP]" wrote:<BR><BR>&gt; And if you only =
have 2GB=20
of RAM,&nbsp; RAM is cheap!!&nbsp; bump it to 4GB<BR>&gt; <BR>&gt; And =
my spam=20
has dropped so much using SBS 2008 RC1&nbsp; it's a non-issue any =
more<BR>&gt;=20
<BR>&gt; -- <BR>&gt; Cris Hanna [SBS-MVP]<BR>&gt;=20
-------------------------------------------------<BR>&gt; Microsoft=20
MVPs<BR>&gt;&nbsp; Independent Experts (MVPs do not work for MS)<BR>&gt; =
Real=20
World Answers<BR>&gt;=20
---------------------------------------------------------<BR>&gt; Please =
do not=20
contact me directly regarding issues<BR>&gt; <BR>&gt; "Cliff Galiher" =
&lt;<A=20
href=3D"mailto:cgaliher@gmail.com">cgaliher@gmail.com</A>&gt; wrote in =
message <A=20
href=3D"news:Bfmdnb4hrr4v1z7VnZ2dnUVZ_gOdnZ2d@bresnan.com">news:Bfmdnb4hr=
r4v1z7VnZ2dnUVZ_gOdnZ2d@bresnan.com</A>...<BR>&gt;=20
Sann:<BR>&gt; <BR>&gt; Try these things, in this order:<BR>&gt; <BR>&gt; =
1)=20
Enable recipient filtering and only accept messages from users in AD. =
<BR>&gt;=20
The most common reason for ridiculously long connection times is a =
spambot=20
<BR>&gt; trying to do a directory harvest. Since exchange defaults to =
accepting=20
<BR>&gt; *everything* at connect time and rejecting later, you end up =
with the=20
bot <BR>&gt; just sending name after name to the server and never =
getting a=20
rejection. <BR>&gt; It has no reason to disconnect.<BR>&gt; <BR>&gt; 2) =
Once=20
recipient filtering is enabled, you will actually be exposed to a =
<BR>&gt;=20
directory harvest attack instead of exchange just accepting =
everything.&nbsp;=20
So, <BR>&gt; you should enable tarpitting.&nbsp; This is the point you =
should=20
see those <BR>&gt; connections drop down.<BR>&gt; <BR>&gt; 3) IF, after =
a week,=20
you are still seeing some connections, try *DISABLING* <BR>&gt; SenderID =

filtering on the Virtual SMTP server.&nbsp; There is a bug in one of the =

<BR>&gt; SenderID dll's that can falsely hold open connections.&nbsp; MS =
has=20
quietly <BR>&gt; acknowledged its existence, but has not come clean yet =
(to my=20
knowledge) <BR>&gt; what the exact parameters are that cause this=20
behavior.&nbsp; It is not <BR>&gt; consistent in my experience.&nbsp; =
Some=20
servers have it, some don't exhibit it at <BR>&gt; all.&nbsp; And I'm =
told that=20
it is fixed in Exchange 2007.&nbsp; I haven't seen it <BR>&gt; surface =
on 2007=20
yet myself, so I'm inclined to believe them...but then <BR>&gt; again, =
SBS 2008=20
isn't released yet....so it could be an odd interaction <BR>&gt; =
there.<BR>&gt;=20
<BR>&gt; To answer your other questions, the SMTP stack does seem to =
lock up=20
with <BR>&gt; these long connections.&nbsp; That is the reason that =
'terminate=20
all' does not <BR>&gt; resolve the problem AND why the SMTP service =
stops=20
responding if you try to <BR>&gt; restart it.&nbsp; You do *not* need to =
restart=20
the server, however.<BR>&gt; <BR>&gt; From the command line, you can run =
this=20
command:<BR>&gt; <BR>&gt; sc queryex smtpsvc<BR>&gt; <BR>&gt; And in the =
output,=20
find the process ID (PID).&nbsp; Once you have the PID, you <BR>&gt; can =
kill=20
the process in task manager (usually an inetinfo process, which is =
<BR>&gt; why=20
it is so tough to find.)&nbsp; From there, the process is flushed =
completely=20
<BR>&gt; from memory and can be restarted without problem.<BR>&gt; =
<BR>&gt;=20
-Cliff<BR>&gt; <BR>&gt; "Sann" &lt;<A=20
href=3D"mailto:Sann@discussions.microsoft.com">Sann@discussions.microsoft=
.com</A>&gt;=20
wrote in message <BR>&gt; <A=20
href=3D"news:6894EB2A-E7E0-4AD7-B799-446E28719BFC@microsoft.com">news:689=
4EB2A-E7E0-4AD7-B799-446E28719BFC@microsoft.com</A>...<BR>&gt;=20
&gt; Hello Cris, thank you for your prompt reply.<BR>&gt; &gt;<BR>&gt; =
&gt; dual=20
core 2.8 GHz with 2 GB memory.<BR>&gt; &gt; the memory usage averages =
about 1,5=20
GB at all times.<BR>&gt; &gt;<BR>&gt; &gt; Yes, I have installed SP 2 =
and all=20
latest updates released after, with IMF<BR>&gt; &gt; and enabled on=20
SMTP.<BR>&gt; &gt;<BR>&gt; &gt; "Cris Hanna [SBS-MVP]" wrote:<BR>&gt;=20
&gt;<BR>&gt; &gt;&gt; First question is...<BR>&gt; &gt;&gt; How much RAM =
in the=20
Server?<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Second Question is<BR>&gt; =
&gt;&gt; Do=20
you have Exchange Server 2003 Service Pack 2 installed and IMF <BR>&gt; =
&gt;&gt;=20
configured for connection filtering against recognized blacklist =
<BR>&gt;=20
&gt;&gt; providers?<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; -- <BR>&gt; =
&gt;&gt; Cris=20
Hanna [SBS-MVP]<BR>&gt; &gt;&gt;=20
-------------------------------------------------<BR>&gt; &gt;&gt; =
Microsoft=20
MVPs<BR>&gt; &gt;&gt;&nbsp; Independent Experts (MVPs do not work for=20
MS)<BR>&gt; &gt;&gt; Real World Answers<BR>&gt; &gt;&gt;=20
---------------------------------------------------------<BR>&gt; =
&gt;&gt;=20
Please do not contact me directly regarding issues<BR>&gt; =
&gt;&gt;<BR>&gt;=20
&gt;&gt; "Sann" &lt;<A=20
href=3D"mailto:Sann@discussions.microsoft.com">Sann@discussions.microsoft=
.com</A>&gt;=20
wrote in message <BR>&gt; &gt;&gt; <A=20
href=3D"news:12FBED5A-99AC-4821-BB29-5602036459BF@microsoft.com">news:12F=
BED5A-99AC-4821-BB29-5602036459BF@microsoft.com</A>...<BR>&gt;=20
&gt;&gt; SBS Exchange 2003: too many "Current Sessions" opened<BR>&gt; =
&gt;&gt;=20
Hello All,<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Sometimes (usually it =
happens over=20
weekends) my Exchange 2003 would stop<BR>&gt; &gt;&gt; receiving =
external emails=20
because of many active "Curresnt Sessions" and <BR>&gt; &gt;&gt; =
here<BR>&gt;=20
&gt;&gt; is why: our organization isn't big, so I lowered the "Limit =
number=20
of<BR>&gt; &gt;&gt; connections to:" parameter to 50 (it is done to =
fight the=20
spam).<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Now when somebody reports that =
he or=20
she is not getting any "outside"<BR>&gt; &gt;&gt; emails, I go to =
Exchange=20
System Manager -&gt; Servers -&gt; <BR>&gt; &gt;&gt; &lt;server&gt;=20
-&gt;Protocols -&gt;<BR>&gt; &gt;&gt; SMTP -&gt; Default SMTP Virtual =
Server -=20
&gt; Current Sessions and I see a <BR>&gt; &gt;&gt; bunch of<BR>&gt; =
&gt;&gt;=20
..br, .it, .ar, OHIOIJHOJOJI, etc, user names with connected times =
<BR>&gt;=20
&gt;&gt; 98353566,<BR>&gt; &gt;&gt; 43543543, 3453453 seconds, or in =
another=20
words with endless connection <BR>&gt; &gt;&gt; times.<BR>&gt; =
&gt;&gt;<BR>&gt;=20
&gt;&gt; I understand, that once the exchange reaches the number of =
connections=20
of<BR>&gt; &gt;&gt; 50, it stops accepting new connections, stops =
receiving=20
emails and here <BR>&gt; &gt;&gt; is my<BR>&gt; &gt;&gt; =
qustions:<BR>&gt;=20
&gt;&gt; 1. Why the "Terminate All" command doesn't remedy the problem =
with=20
email <BR>&gt; &gt;&gt; flow?<BR>&gt; &gt;&gt; As the second option, I =
try to=20
restart SMTP service, but it freezes in a<BR>&gt; &gt;&gt; stopping mode =
leaving=20
me with only one option to restart entire server. <BR>&gt; &gt;&gt;=20
(BTW,<BR>&gt; &gt;&gt; I've also&nbsp; noticed that it feezes after I =
update IMF=20
filter and I need to<BR>&gt; &gt;&gt; restart the server)<BR>&gt; =
&gt;&gt; 2.=20
what are those connections and how to protect Exchange from =
them?<BR>&gt;=20
&gt;&gt;<BR>&gt; &gt;&gt; Any advise will be greatly appreciated=20
<BR>&gt;</BODY></HTML>

------=_NextPart_000_004F_01C8FDF4.A9607E60--


Re: SBS Exchange 2003: too many "Current Sessions" opened by Sann

Sann
Thu Aug 14 08:23:01 PDT 2008

I see.
And for the current topic (as a quick report), to kill the "current
sessions" and make sure SMTP is running I created and scheduled to run on a
daily basis a small batch, that kills inetinfo.exe and starts SMTP - should
work for now until I put into production new server hardware with sbs 2003 r2.
And if I won't be able to resolve my problem in the new enviroment, I will
be bugging you guys again. :))

"Cris Hanna [SBS-MVP]" wrote:

> SBS 2008 is not a production server since it only RC1...its my test server and I'm the only user...so there was no "migration" as such
>
> SBS 2008 does include the option during installation, to install fresh or to perform a migration installation, which allows you to introduce it into an existing SBS 2003 organizations.
>
>
>
> --
> Cris Hanna [SBS-MVP]
> Co-Author, Windows Small Business Server 2008 Unleashed
> http://www.amazon.com/Windows-Small-Business-Server-Unleashed/dp/0672329573/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1217269967&sr=8-1
> -------------------------------------------------
> Microsoft MVPs
> Independent Experts (MVPs do not work for MS)
> Real World Answers
> ---------------------------------------------------------
> Please do not contact me directly regarding issues
>
> "Sann" <Sann@discussions.microsoft.com> wrote in message news:19118D7F-6331-44AF-A64B-58E77F8F43B2@microsoft.com...
> Thanks a lot for your advices and information - will start experimenting....
>
> btw, a quick side question to Cris: how did you move your users to SBS2008:
> using migration tool in exchange or csv, ldi tools? I'm asking this question
> in responce to your suggestion to bump the RAM to 4 GB. I'm installing a new
> server hardware: 2x4 proc-s, 4 GB, RAID 10 on SAS, etc...
>
> "Cris Hanna [SBS-MVP]" wrote:
>
> > And if you only have 2GB of RAM, RAM is cheap!! bump it to 4GB
> >
> > And my spam has dropped so much using SBS 2008 RC1 it's a non-issue any more
> >
> > --
> > Cris Hanna [SBS-MVP]
> > -------------------------------------------------
> > Microsoft MVPs
> > Independent Experts (MVPs do not work for MS)
> > Real World Answers
> > ---------------------------------------------------------
> > Please do not contact me directly regarding issues
> >
> > "Cliff Galiher" <cgaliher@gmail.com> wrote in message news:Bfmdnb4hrr4v1z7VnZ2dnUVZ_gOdnZ2d@bresnan.com...
> > Sann:
> >
> > Try these things, in this order:
> >
> > 1) Enable recipient filtering and only accept messages from users in AD.
> > The most common reason for ridiculously long connection times is a spambot
> > trying to do a directory harvest. Since exchange defaults to accepting
> > *everything* at connect time and rejecting later, you end up with the bot
> > just sending name after name to the server and never getting a rejection.
> > It has no reason to disconnect.
> >
> > 2) Once recipient filtering is enabled, you will actually be exposed to a
> > directory harvest attack instead of exchange just accepting everything. So,
> > you should enable tarpitting. This is the point you should see those
> > connections drop down.
> >
> > 3) IF, after a week, you are still seeing some connections, try *DISABLING*
> > SenderID filtering on the Virtual SMTP server. There is a bug in one of the
> > SenderID dll's that can falsely hold open connections. MS has quietly
> > acknowledged its existence, but has not come clean yet (to my knowledge)
> > what the exact parameters are that cause this behavior. It is not
> > consistent in my experience. Some servers have it, some don't exhibit it at
> > all. And I'm told that it is fixed in Exchange 2007. I haven't seen it
> > surface on 2007 yet myself, so I'm inclined to believe them...but then
> > again, SBS 2008 isn't released yet....so it could be an odd interaction
> > there.
> >
> > To answer your other questions, the SMTP stack does seem to lock up with
> > these long connections. That is the reason that 'terminate all' does not
> > resolve the problem AND why the SMTP service stops responding if you try to
> > restart it. You do *not* need to restart the server, however.
> >
> > From the command line, you can run this command:
> >
> > sc queryex smtpsvc
> >
> > And in the output, find the process ID (PID). Once you have the PID, you
> > can kill the process in task manager (usually an inetinfo process, which is
> > why it is so tough to find.) From there, the process is flushed completely
> > from memory and can be restarted without problem.
> >
> > -Cliff
> >
> > "Sann" <Sann@discussions.microsoft.com> wrote in message
> > news:6894EB2A-E7E0-4AD7-B799-446E28719BFC@microsoft.com...
> > > Hello Cris, thank you for your prompt reply.
> > >
> > > dual core 2.8 GHz with 2 GB memory.
> > > the memory usage averages about 1,5 GB at all times.
> > >
> > > Yes, I have installed SP 2 and all latest updates released after, with IMF
> > > and enabled on SMTP.
> > >
> > > "Cris Hanna [SBS-MVP]" wrote:
> > >
> > >> First question is...
> > >> How much RAM in the Server?
> > >>
> > >> Second Question is
> > >> Do you have Exchange Server 2003 Service Pack 2 installed and IMF
> > >> configured for connection filtering against recognized blacklist
> > >> providers?
> >