Dear Noel!
Although I appreciate your spirit to take your time out for helping me , however, what
you wrote is too Java-specific and I really dont want to go into those details.
I have the following Software Configuration:
James 2.1.3
Pheonix 4.0.1
For your information, I m writing out the whole SMTP block here. As far as the
documentation states, what I understand is that this Block controls the SMTP service,
all in all. Though, the <connectionLimit> is an optional parameter, i didnt find any
dependencies. I want only 2 simultaneous connections to be opened to the SMTP service.
However, the <max-connections> parameter is set out to 10 and JAMES obeys the
Connection Manager parameter. Are these two mutually exclusive of each other ? Does
one override the other? Whats the preference rule (if any)? With both parameters in
place; which one will JAMES obey to ? Does the placement of the tag matter, when it is
a direct child of the SMTP block ? (I have even tried placing it into the <handler>
tag)
And, last but not the least, HOW DOES IT WORK ????
I've tried using the parameter for the POP/NNTP as well. It doesnt work there, even.
<smtpserver enabled="true">
<!-- port 25 is the well-known/IANA registered port for SMTP -->
<port>25</port>
<!-- Uncomment this if you want to bind to a specific inetaddress -->
<!--
<bind> </bind>
-->
<!-- Uncomment this if you want to use TLS (SSL) on this port -->
<!--
<useTLS>true</useTLS>
-->
<handler>
<!-- This is the name used by the server to identify itself in the SMTP -->
<!-- protocol. If autodetect is TRUE, the server will discover its -->
<!-- own host name and use that in the protocol. If discovery fails, -->
<!-- the value of 'localhost' is used. If autodetect is FALSE, James -->
<!-- will use the specified value. -->
<helloName autodetect="false">MailMatrix Test Server</helloName>
<connectiontimeout>360000</connectiontimeout>
<!-- Uncomment this if you want to require SMTP authentication. -->
<!--<authRequired>true</authRequired>-->
<!-- Uncomment this if you want to verify sender addresses, ensuring that
-->
<!-- the sender address matches the user who has authenticated. -->
<!-- This prevents a user of your mail server from acting as someone else
-->
<!--
<verifyIdentity>true</verifyIdentity>
-->
<!-- This sets the maximum allowed message size (in kilobytes) for this
-->
<!-- SMTP service. If unspecified, the value defaults to 0, which means
no limit. -->
<maxmessagesize>0</maxmessagesize>
</handler>
<connectionLimit>2</connectionLimit>
</smtpserver>
Cheers and Peace to all
Kashif
"Noel J. Bergman" <[EMAIL PROTECTED]> wrote:
> The "connectionLimit" parameter for the SMTP/POP3/NNTP block
> is not working for me.
What version of James? I don't spot anything wrong at a quick glance in the
code, but would have to look further.
AbstractJamesService.configure() and AbstractJamesService.initialize() are
the key routines. The connectionLimit and max-connections use the same
logic. Looks to me that if the connection manager is not our
SimpleConnectionManager, we won't use the service-specific setting. If
there is a log entry saying that the service "will allow a maximum of #
connections" then we are using our connection manager.
--- Noel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Muhammad Kashif
Information Technology Matrix.
(Your Network/Internet Security Partner)
Tel#: +966-3-8943748, 8961507
Fax#: +966-3-8640748
URL: www.itmatrix.com
---------------------------------
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online