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 John Saxton <th...@hotmail.com> on 2007/07/09 22:50:06 UTC
documentation & configuration
Hi,
I've recently downloaded James binary & source & am trying to get myself
acquainted with it.
Although there is some good documentation around, I can't seem to find
answers to some of my questions (apologies if I haven't looked hard
enough/spent enough time reading up on general ideas)
So,
Is there a general overview of how the different services work together -
the process of receiving mail, putting it onto spools & subsequent
processing?
I looked through the posting archives, but couldn't find an answer to the
following question - is it possible to have multiple James instances running
& have each instance responsible for a predetermined clump of users?
Is there accessible documentation on Phoenix? Since Avalon is closed, I
couldn't find a source of information on it.
I'm looking to try & get James up & running locally in a usable manner (Only
got it running in a test configuration so far) and possibly to work on the
code. The above requested information would help me greatly in this.
Thanks,
John
_________________________________________________________________
The next generation of Hotmail is here! http://www.newhotmail.co.uk
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: documentation & configuration
Posted by John Saxton <th...@hotmail.com>.
Hi,
Thanks for your assistance so far, however, I'm still unsure as to some
details.
I'm currently trying to work out how to do different things with James.
The scenario I'm considering is: -
Two computers running James
Each computer has a mail server, but the user mailboxes are split up between
the two boxes (I'd be using a db repository).
I believe that you're suggesting that I write a custom matcher/mailet pair
to pull out any non-local users & send it over to the other.
I guess for the extra spool I'd need to just have another mail table
created, I've not yet looked into how this is done.
"In this case you have a custom remotedelivery (with its
> >> own spool, separated from the outgoin) that deliver mails to the other
> >> JAMES server (you can use the gateway configuration)"
How were you envisining the mail being sent to the other computer in this
scenario?
I'll start looking in to this further, but will probably have a lot more
questions on configuration. The xml files aren't always self explanatory.
Thanks,
John
> >> Then before the HostIsLocal+LocalDelivery you use
> >> RecipientIsRegex+RemoteDelivery to check if the recipient is for the
> >> other server. In this case you have a custom remotedelivery (with its
> >> own spool, separated from the outgoin) that deliver mails to the other
> >> JAMES server (you can use the gateway configuration).
> >>
> >> The same thing can be done in the other server.
> >>
> >> Otherwise you can also use the ToRepository to place mails in a given
> >> repository instead of using the RemoteDelivery and move the mail via
> >> SMTP.
>
>John Saxton ha scritto:
> > Hi,
> >
> > I think you lost some of your explanation I'm afraid..
>
>Right. I probably deleted an introduction sentece by mistake.
>Btw after thr "Then" there is an explanation of what to do.
>
>Otherwise give us the details of what you want to do and what you expect
>from each server.
>
>Stefano
>
> >> John Saxton ha scritto:
> >> >> > I looked through the posting archives, but couldn't find an
> >> answer to
> >> >> > the following question - is it possible to have multiple James
> >> >> instances
> >> >> > running & have each instance responsible for a predetermined
> >> clump of
> >> >> > users?
> >> >>
> >> >> users or domains?
> >> >> Try explaining better what you expect/you're trying to achieve and
> >> I'll
> >> >> try to give you an hint.
> >> >
> >> > Is it possible to have multiple james instance servicing one domain,
> >> > with the users divided between the James instances? I suspect it is,
> >> but
> >> > not sure whether this is immediately configurable.
> >> > What approach would you take to get this configuration running?
> >>
> >> This is not supported. Depending on the details it can be done via
> >> configuration or programmatically.
> >>
> >> E.g:
> >>
> >> Then before the HostIsLocal+LocalDelivery you use
> >> RecipientIsRegex+RemoteDelivery to check if the recipient is for the
> >> other server. In this case you have a custom remotedelivery (with its
> >> own spool, separated from the outgoin) that deliver mails to the other
> >> JAMES server (you can use the gateway configuration).
> >>
> >> The same thing can be done in the other server.
> >>
> >> Otherwise you can also use the ToRepository to place mails in a given
> >> repository instead of using the RemoteDelivery and move the mail via
> >> SMTP.
> >>
> >>
> >> Stefano
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>For additional commands, e-mail: server-user-help@james.apache.org
>
_________________________________________________________________
Tell MSN about your most memorable emails! http://www.emailbritain.co.uk/
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: documentation & configuration
Posted by Stefano Bagnara <ap...@bago.org>.
John Saxton ha scritto:
> Hi,
>
> I think you lost some of your explanation I'm afraid..
Right. I probably deleted an introduction sentece by mistake.
Btw after thr "Then" there is an explanation of what to do.
Otherwise give us the details of what you want to do and what you expect
from each server.
Stefano
>> John Saxton ha scritto:
>> >> > I looked through the posting archives, but couldn't find an
>> answer to
>> >> > the following question - is it possible to have multiple James
>> >> instances
>> >> > running & have each instance responsible for a predetermined
>> clump of
>> >> > users?
>> >>
>> >> users or domains?
>> >> Try explaining better what you expect/you're trying to achieve and
>> I'll
>> >> try to give you an hint.
>> >
>> > Is it possible to have multiple james instance servicing one domain,
>> > with the users divided between the James instances? I suspect it is,
>> but
>> > not sure whether this is immediately configurable.
>> > What approach would you take to get this configuration running?
>>
>> This is not supported. Depending on the details it can be done via
>> configuration or programmatically.
>>
>> E.g:
>>
>> Then before the HostIsLocal+LocalDelivery you use
>> RecipientIsRegex+RemoteDelivery to check if the recipient is for the
>> other server. In this case you have a custom remotedelivery (with its
>> own spool, separated from the outgoin) that deliver mails to the other
>> JAMES server (you can use the gateway configuration).
>>
>> The same thing can be done in the other server.
>>
>> Otherwise you can also use the ToRepository to place mails in a given
>> repository instead of using the RemoteDelivery and move the mail via
>> SMTP.
>>
>>
>> Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: documentation & configuration
Posted by John Saxton <th...@hotmail.com>.
Hi,
I think you lost some of your explanation I'm afraid..
>
>John Saxton ha scritto:
> >> > I looked through the posting archives, but couldn't find an answer to
> >> > the following question - is it possible to have multiple James
> >> instances
> >> > running & have each instance responsible for a predetermined clump of
> >> > users?
> >>
> >> users or domains?
> >> Try explaining better what you expect/you're trying to achieve and I'll
> >> try to give you an hint.
> >
> > Is it possible to have multiple james instance servicing one domain,
> > with the users divided between the James instances? I suspect it is, but
> > not sure whether this is immediately configurable.
> > What approach would you take to get this configuration running?
>
>This is not supported. Depending on the details it can be done via
>configuration or programmatically.
>
>E.g:
>
>Then before the HostIsLocal+LocalDelivery you use
>RecipientIsRegex+RemoteDelivery to check if the recipient is for the
>other server. In this case you have a custom remotedelivery (with its
>own spool, separated from the outgoin) that deliver mails to the other
>JAMES server (you can use the gateway configuration).
>
>The same thing can be done in the other server.
>
>Otherwise you can also use the ToRepository to place mails in a given
>repository instead of using the RemoteDelivery and move the mail via SMTP.
>
>
>Stefano
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>For additional commands, e-mail: server-user-help@james.apache.org
>
_________________________________________________________________
Tell MSN about your most memorable emails! http://www.emailbritain.co.uk/
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: documentation & configuration
Posted by Stefano Bagnara <ap...@bago.org>.
John Saxton ha scritto:
>> > I looked through the posting archives, but couldn't find an answer to
>> > the following question - is it possible to have multiple James
>> instances
>> > running & have each instance responsible for a predetermined clump of
>> > users?
>>
>> users or domains?
>> Try explaining better what you expect/you're trying to achieve and I'll
>> try to give you an hint.
>
> Is it possible to have multiple james instance servicing one domain,
> with the users divided between the James instances? I suspect it is, but
> not sure whether this is immediately configurable.
> What approach would you take to get this configuration running?
This is not supported. Depending on the details it can be done via
configuration or programmatically.
E.g:
Then before the HostIsLocal+LocalDelivery you use
RecipientIsRegex+RemoteDelivery to check if the recipient is for the
other server. In this case you have a custom remotedelivery (with its
own spool, separated from the outgoin) that deliver mails to the other
JAMES server (you can use the gateway configuration).
The same thing can be done in the other server.
Otherwise you can also use the ToRepository to place mails in a given
repository instead of using the RemoteDelivery and move the mail via SMTP.
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: documentation & configuration
Posted by John Saxton <th...@hotmail.com>.
>John Saxton ha scritto:
> > Hi,
> >
> > I've recently downloaded James binary & source & am trying to get myself
> > acquainted with it.
> >
> > Although there is some good documentation around, I can't seem to find
> > answers to some of my questions (apologies if I haven't looked hard
> > enough/spent enough time reading up on general ideas)
> >
> > So,
> >
> > Is there a general overview of how the different services work together
> > - the process of receiving mail, putting it onto spools & subsequent
> > processing?
>
>Unfortunately no.
>
>But I can give you some hint:
>
>1) SMTPServer: receives messages and send them to the spool.
> 1b) FetchMail: similar to SMTPServer, but it is scheduled and read
>messages from another POP3 server.
>2) SpoolManager: manage messages in the spool, reading the new one and
>executing processors.
>3) RemoteDelivery is a special mailet: it manage its own delivery spool
>and do the actual delivery.
>4) LocalDelivery is a special mailet: it store the message in the inboxes.
>5) POP3Server read the messages from the inboxes.
>
Thanks, I had taken a look through the code before you replied & it is
generally quite simple to understand.
> > I looked through the posting archives, but couldn't find an answer to
> > the following question - is it possible to have multiple James instances
> > running & have each instance responsible for a predetermined clump of
> > users?
>
>users or domains?
>Try explaining better what you expect/you're trying to achieve and I'll
>try to give you an hint.
>
Is it possible to have multiple james instance servicing one domain, with
the users divided between the James instances? I suspect it is, but not sure
whether this is immediately configurable.
What approach would you take to get this configuration running?
> > Is there accessible documentation on Phoenix? Since Avalon is closed, I
> > couldn't find a source of information on it.
>
>Unfortunately no. Phoenix/Avalon are not difficult, but documentation is
>really lacking. I remember it took a lot to me to find out what exactly
>happens under the hood.
>
>Btw the key part to understand what are the componens and how they
>interact is looking at the assembly.xml descriptor (james-assembly.xml
>in the source tree). This show you what components are used and what are
>their dependencies. The initialize/configure/service methods from the
>components main classes will explain what exactly happens then.
>
> > I'm looking to try & get James up & running locally in a usable manner
> > (Only got it running in a test configuration so far) and possibly to
> > work on the code. The above requested information would help me greatly
> > in this.
> >
> > Thanks,
> >
> > John
>
>Unfortunately you only get the javadocs for JAMES Server, some docs in
>the website and some page (maybe outdated) in the WIKI. Not too much,
>but please ask specific questions and I'll try to reply.
>
>Stefano
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>For additional commands, e-mail: server-user-help@james.apache.org
>
Thanks.
_________________________________________________________________
Tell MSN about your most memorable emails! http://www.emailbritain.co.uk/
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: documentation & configuration
Posted by Stefano Bagnara <ap...@bago.org>.
John Saxton ha scritto:
> Hi,
>
> I've recently downloaded James binary & source & am trying to get myself
> acquainted with it.
>
> Although there is some good documentation around, I can't seem to find
> answers to some of my questions (apologies if I haven't looked hard
> enough/spent enough time reading up on general ideas)
>
> So,
>
> Is there a general overview of how the different services work together
> - the process of receiving mail, putting it onto spools & subsequent
> processing?
Unfortunately no.
But I can give you some hint:
1) SMTPServer: receives messages and send them to the spool.
1b) FetchMail: similar to SMTPServer, but it is scheduled and read
messages from another POP3 server.
2) SpoolManager: manage messages in the spool, reading the new one and
executing processors.
3) RemoteDelivery is a special mailet: it manage its own delivery spool
and do the actual delivery.
4) LocalDelivery is a special mailet: it store the message in the inboxes.
5) POP3Server read the messages from the inboxes.
> I looked through the posting archives, but couldn't find an answer to
> the following question - is it possible to have multiple James instances
> running & have each instance responsible for a predetermined clump of
> users?
users or domains?
Try explaining better what you expect/you're trying to achieve and I'll
try to give you an hint.
> Is there accessible documentation on Phoenix? Since Avalon is closed, I
> couldn't find a source of information on it.
Unfortunately no. Phoenix/Avalon are not difficult, but documentation is
really lacking. I remember it took a lot to me to find out what exactly
happens under the hood.
Btw the key part to understand what are the componens and how they
interact is looking at the assembly.xml descriptor (james-assembly.xml
in the source tree). This show you what components are used and what are
their dependencies. The initialize/configure/service methods from the
components main classes will explain what exactly happens then.
> I'm looking to try & get James up & running locally in a usable manner
> (Only got it running in a test configuration so far) and possibly to
> work on the code. The above requested information would help me greatly
> in this.
>
> Thanks,
>
> John
Unfortunately you only get the javadocs for JAMES Server, some docs in
the website and some page (maybe outdated) in the WIKI. Not too much,
but please ask specific questions and I'll try to reply.
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org