You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by James <ja...@news.utopix.ch> on 2003/12/23 14:24:15 UTC

Sending an email with 100 CCs is very slow and makes James stop !

Hello

when I send an email with 100 recipients (external)... james becomes 
very slow and I can't check correctly my pop3 and so on...
what could cause this ??

Sometimes, James stops .. all emails arrive but they don't go to the 
ROOT processor.. I have to reboot it so that James handles these emails 
(I can see this because the first mailet write to a log .. it's my 
"LogMailet" :o)

thank you.. I've tried to increase the number of threads... any other 
ideas ?

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Sending an email with 100 CCs is very slow and makes James stop !

Posted by Serge Knystautas <se...@lokitech.com>.
James wrote:
> In fact, I've just understood the problem...
> 
> one of my mailet insert a row in a table every time a mail has to be 
> sent...
> so if you write at once to 100 people, it will insert 100 row, each one 
> by one, in the database...
> 
> and this seems to have a problem.....
> it needs several seconds to get a connection... is this possible ??

Very possible if you're using some hack db like Oracle. :)

Looks like you need a connection pooler... you can either stick one 
within your code directly, or look at how James configures other 
database connection pools and maybe check out some mailets that use a 
pool (like JDBCAlias).

-- 
Serge Knystautas
President
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. sergek@lokitech.com


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Creating James Email Accounts

Posted by Fox Sterling <vi...@hotmail.com>.
James, as do all mail server, has very limited virtual domain capability.
The problem is the pop protocol does not have a way to determine the domain
you are trying to read mail from.  To handle this, use the VirtualUserTable
mailet, it is commented out bye default, this does require the use of a
databse.  Then create users that have a way to determine there domain.  I
use user1+abc.com as accounts in james.  Then in the database, map all email
to user1@abc.com to the james account user1+abc.com@localhost.

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Creating James Email Accounts

Posted by Bernard Ong - Entense <be...@entense.com>.
I have been using James for my small business for about 6 months now and
have been very satisfied with it.

As a newbie, I have tried to look for info regarding how to create accounts
for different domains as an admin,

e.g.

I have two domains being managed by my James server, abc.com and xyz.com.

I'd like to be able to create info as an account for 1 person using abc.com
(as info@abc.com), and
info as another account for another person using xyz.com (as info@xyz.com).

Problem is I could only create info as an account and all info targeted mail
just goes into that one account, making no differentiation for abc.com and
xyz.com. How can I create 2 discrete "info" accounts in James served by its
respective domains?

I am not sure what I could be doing wrong here, but your help would be much
appreciated.

This is the way I set up my servernames to serve different domains (all have
its own DNS entries set accordingly):

<servernames autodetect="true" autodetectIP="true">
         <servername>localhost</servername>
         <servername>abc.com</servername>
         <servername>mail.abc.com</servername>
         <servername>xyz.com</servername>
         <servername>mail.xyz.com</servername>
</servernames>

Than in advance,
Bernard


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Sending an email with 100 CCs is very slow and makes James stop !

Posted by James <ja...@news.utopix.ch>.
Jason Webb wrote:

>Very likely.
>Are you using the James database connection pooling or are you using
>your own connection method?
>  
>
the James....

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


RE: Sending an email with 100 CCs is very slow and makes James stop !

Posted by Jason Webb <jw...@inovem.com>.
Very likely.
Are you using the James database connection pooling or are you using
your own connection method?

-- Jason

> -----Original Message-----
> From: James [mailto:james@news.utopix.ch] 
> Sent: 23 December 2003 15:58
> To: James Users List
> Subject: Re: Sending an email with 100 CCs is very slow and 
> makes James stop !
> 
> 
> In fact, I've just understood the problem...
> 
> one of my mailet insert a row in a table every time a mail 
> has to be sent... so if you write at once to 100 people, it 
> will insert 100 row, each one 
> by one, in the database...
> 
> and this seems to have a problem.....
> it needs several seconds to get a connection... is this possible ??
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Sending an email with 100 CCs is very slow and makes James stop !

Posted by James <ja...@news.utopix.ch>.
In fact, I've just understood the problem...

one of my mailet insert a row in a table every time a mail has to be sent...
so if you write at once to 100 people, it will insert 100 row, each one 
by one, in the database...

and this seems to have a problem.....
it needs several seconds to get a connection... is this possible ??

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org