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 Claude Duguay <re...@verizon.net> on 2003/04/07 17:16:15 UTC

Processing Chain

Can someone point me to documentation or explain the processing chain
and where it's appropriate to put new Mailets? My application has three
Mailets. The first two intercept all messages from unavailable@host and
available@host and save or delete a message (respectively) before seding
a confirmation email. The third one mathes any incoming mail for a user
that is marked unavailable and sends the stored content to nitify
senders of their absense.

My first notion was to set up another processor, but that seemed like it
would have a lot of overhead and I put my declarations right before the
mailet in the root process that dispatches all the messages. I am
presuming that this is common, but a better understanding of processing
chains would be helpful. When is it appropriate to branch to another
processor, should they chain through several procesors or fan out like a
tree? Any help here woul dbe approeciated. Thanks in advance.

Possible unrelated, I have seen my confirmation message get replicated
unintentionally durring testing and haven't figured this out yet. Any
clues that can lead me to a faster solution would also be appreciated.
Thanks again.


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


Configuring a different mail server with James

Posted by ak...@eurosoftindia.com.
hi

to be more specific i need to do a following thing

Like i have my mail server xxx running on a different IP and i want my
james to be located at different place at different IP to handle all the
mail accounts of xxx mail server in a manner that......

All mails to xxx should also be forwarded to other server
Mails from this server must goes through xxx in way that the receiver
receives the senders mail server address of xxx

Same for the replies to the mails that account holder receives.


Please Suggest ...........

Akshay Saluja




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


RE: Configuring remote mail server with James

Posted by ak...@eurosoftindia.com.
hi

to be more specific i need to do a following thing

Like i have my mail server xxx running on a different IP and i want my
james to be located at different place at different IP to handle all the
mail accounts of xxx mail server in a manner that......

All mails to xxx should also be forwarded to other server
Mails from this server must goes through xxx in way that the receiver
receives the senders mail server address of xxx

Same for the replies to the mails that account holder receives.


Please Suggest ...........

Akshay Saluja

>> I want to configure my mail server and other mail accounts to be
>> managed by James Server. How can i do it.
>
> Install James.  Configure James.  See:
> http://james.apache.org/documentation_2_1.html
>
> We can be more specific if you can be more specific.
>
> 	--- Noel
>
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org




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


RE: Configuring remote mail server with James

Posted by "Noel J. Bergman" <no...@devtech.com>.
> I want to configure my mail server and other mail accounts to be managed
> by James Server. How can i do it.

Install James.  Configure James.  See:
http://james.apache.org/documentation_2_1.html

We can be more specific if you can be more specific.

	--- Noel


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


Re: Configuring remote mail server with James

Posted by Akshay <ak...@eurosoftindia.com>.
hi

I want to configure my mail server and other mail accounts to be managed 
by James Server. How can i do it.

Please Suggest

Akshay Saluja


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


RE: Processing Chain

Posted by Danny Angus <da...@apache.org>.
Claude,

> Can someone point me to documentation or explain the processing chain
> and where it's appropriate to put new Mailets? 

<snip>

> My first notion was to set up another processor, but that seemed like it
> would have a lot of overhead and I put my declarations right before the
> mailet in the root process that dispatches all the messages. 

This would be a reasonable idea, there is in fact very little overhead in terms of system resources for extra processors.
Linear processors (the only kind we have so far) are little more than an ordered collection of matcher/mailet pairs which are called in turn with the mail being processed.

There might be a time penalty associated with a new processor.
Sending a mail to a new process or changes a state flag on the mail object and returns it to the spool, it waits there to be de-spooled and fed to the new processor. So there could be a slightly extended delay. I wouldn't think that it would amount to enough to worry about, particularly in your case.

>I am
> presuming that this is common, but a better understanding of processing
> chains would be helpful. When is it appropriate to branch to another
> processor, 

On the whole I work to these rules..

If a single matcher rule can be used to divert mail into a processor containing more than one mailet I use a new processor for clarity.
If a set of mutually exclusive matcher conditions exist I use a new processor to fork the pipeline.
If a common rule or set of rules may have several entry points I use a processor to ensure that I have only one mailet configuration for a specified task (eg spam notifications) to avoid confusion.

> should they chain through several procesors or fan out like a
> tree? Any help here woul dbe approeciated. Thanks in advance.

Processors kill any mail which still exists at the end of them. I'm still not 100% sure that this is the right behaviour but it is the behaviour which exists.

Matcher "All" is cheaper in theory (clock cycles) than a conditional matcher.

I would therefore recommend branching like a tree. 

Bear in mind that branching allows you to jump from branch to branch, so in a complex scenario you might end up with more of a web than a tree.

> Possible unrelated, I have seen my confirmation message get replicated
> unintentionally durring testing and haven't figured this out yet. 

Be aware that messages created by a mailet to replace an existing message are started at the root of the processing tree. This might cause your new message to trigger another the same.

d.


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