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 Matthew Schuyler Peck <mp...@xapsolutions.com> on 2003/03/10 12:02:05 UTC

James for multiple domains

I have spent the last good while searching the james-user archives for
discussion of this issue and reading the messages I've found. I would like
to say the following first:

I understand the limitations of TCP/IP with regard to machines hosting
multiple domains. However, since DNS is an application-layer protocol (and
thus, our use of domain names is necessarily restricted to the application
layer), TCP/IP doesn't get to enter the discussion and it doesn't matter
what IP addresses (be it one or many) various domains resolve to. Thus, I
insist that there is nothing "virtual" about hosting the mail for multiple
domains on a single mail server. Using such terminology leads to a mistaken
notion that hosting "virtual" domains in an application is an extra feature,
rather than a fundamental necessity of that application, be that application
a mail server, web server, or hoojamaboob server (*heh* I really should
write a Hoojamaboob protocol just for the name).

Having said that, I would appreciate it if someone would explain to me why,
exactly, we don't allow for the use of <user>@<domain> as the mailbox
identifier. I only got to the middle of last year in the archives before I
gave up, so maybe this was discussed recently, or it was discussed earlier
and I missed it. The most discussion I found of this was Noel objecting that
multiple email addresses might need to feed into a single mailbox. It seems
to me that aliasing resolves this problem nicely (i.e. all but one of the
addresses which feed into a given mailbox are aliased to the last address).
Further, it seems to me a trivial effort to allow a user to specify any of
the aliases as his POP3 username, checking provided usernames against SMTP
alias lists at login (after all, user administration is already united
across messaging protocols on the backend, so there's no reason not to have
the POP3 implementation check against the SMTP implementation, if it
exists).

I've seen a repeated objection that no single solution has presented itself
as "the best". I submit that "the best" solution, for now, is the solution
that other mail servers use, since it works and is widespread and James
continues to lack its own solution to this important problem. Once this
solution has been identified (I admit, I have not examined
sendmail/qmail/exim/etc to figure out what, precisely, they do, but it
involves using the full email address as the mailbox identifier at some
level), all that remains is the time required to implement the solution. I
am happy to provide the time. I simply want an official solution.

The appeal of James, for me, is that I can process inbound and outbound
messages synchronously. I despise polling mechanisms, and were I to use any
other mail server for the project I am working on, I would have to pop
mailboxes to get message data. I am, therefore, keenly interested in helping
James become a comprehensive messaging solution. Will someone please decide
upon a solution so that I can implement it? I'll decide, if someone will
give me the authority.

Matthew Schuyler Peck, Hoojamaboobitarian


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


Re: read mail from james account via cell-phone?

Posted by Aaron Knauf <ak...@xtra.co.nz>.
Hi Jay,

I work for a telco, writing the kind of software that you are talking 
about.  Unfortunately, I do not know of any packages that do what you 
are after.  As far as I am aware, telco's tend to have this stuff 
written for them.  (We certainly do.)

On the bright side, it ought to be relatively simple to modify an 
existing web-mail package to produce WML output, rather than HTML.  That 
will allow you to browse your mail via your telco's HTTP/WAP gateway.

Cheers

ADK

Jay Kraly wrote:

> I'm looking for a mail repository to have all my mail forwarded to so 
> I can read it on the road.  I've tried using free services like 
> hotmail but with all the spam I get they fill up too quickly and start 
> bouncing. It occurred to me that I could just use my james server to 
> receive mail if I could then read it somehow.
>
> SMS would be good, except my current cellphone plan charges me 10cents 
> per SMS message over the first 40.  Before I realized this I spent a 
> fortune having all my spam forwarded to me.
>
> Anyway, thanks for any help anyone can give me.
>
> -J
>
> Noel J. Bergman wrote:
>
>> Jay,
>>
>> I don't know of any WAP compatible web mails.  I was looking at SMPP 
>> over
>> the weekend, and it would be kind of interesting if someone did work to
>> support SMPP for James, but you sound as if you want more than SMS.
>>
>>     --- Noel
>>
>> -----Original Message-----
>> From: Jay Kraly [mailto:jay@perspectivesoftware.com]
>> Sent: Monday, March 10, 2003 12:18
>> To: James Users List
>> Subject: read mail from james account via cell-phone?
>>
>>
>> This isn't really a james specific question, but I'm hoping somebody has
>> tried this using james and may know a trick or two.  I'm looking for a
>> way to read mail from a james account via a cell-phone, are there any
>> webmail type packages that can pop from james and have a WAP interface?
>> A more integrated solution would be better, like maybe a servlet that
>> could use the james API to serve mail.  Any ideas?
>>
>> Thanks
>>
>> -J
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>>
>>
>>  
>>
>
>
>
>
> ---------------------------------------------------------------------
> 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: read mail from james account via cell-phone?

Posted by Jay Kraly <ja...@perspectivesoftware.com>.
I'm looking for a mail repository to have all my mail forwarded to so I 
can read it on the road.  I've tried using free services like hotmail 
but with all the spam I get they fill up too quickly and start bouncing. 
 It occurred to me that I could just use my james server to receive mail 
if I could then read it somehow.

SMS would be good, except my current cellphone plan charges me 10cents 
per SMS message over the first 40.  Before I realized this I spent a 
fortune having all my spam forwarded to me.

Anyway, thanks for any help anyone can give me.

-J

Noel J. Bergman wrote:

>Jay,
>
>I don't know of any WAP compatible web mails.  I was looking at SMPP over
>the weekend, and it would be kind of interesting if someone did work to
>support SMPP for James, but you sound as if you want more than SMS.
>
>	--- Noel
>
>-----Original Message-----
>From: Jay Kraly [mailto:jay@perspectivesoftware.com]
>Sent: Monday, March 10, 2003 12:18
>To: James Users List
>Subject: read mail from james account via cell-phone?
>
>
>This isn't really a james specific question, but I'm hoping somebody has
>tried this using james and may know a trick or two.  I'm looking for a
>way to read mail from a james account via a cell-phone, are there any
>webmail type packages that can pop from james and have a WAP interface?
> A more integrated solution would be better, like maybe a servlet that
>could use the james API to serve mail.  Any ideas?
>
>Thanks
>
>-J
>
>
>
>---------------------------------------------------------------------
>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
>
>
>  
>




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


James and SMPP (was Re: read mail from james account via cell-phone?)

Posted by Aaron Knauf <ak...@xtra.co.nz>.
Hi Noel,

I would be interested to know what your interest is in SMPP (and how you 
see it fitting in to JAMES).  I am the principal developer for the SMS 
server for the telco that I work for, so I have an interest there. 
 Unfortunately, I am extrremely busy right now, and probably for another 
2-3 weeks (hence no progress on the JAMES JNDI front,) so I am unlikely 
to be of any use right away. :-(

Cheers

ADK

Noel J. Bergman wrote:

>Jay,
>
>I don't know of any WAP compatible web mails.  I was looking at SMPP over
>the weekend, and it would be kind of interesting if someone did work to
>support SMPP for James, but you sound as if you want more than SMS.
>
>	--- Noel
>
>-----Original Message-----
>From: Jay Kraly [mailto:jay@perspectivesoftware.com]
>Sent: Monday, March 10, 2003 12:18
>To: James Users List
>Subject: read mail from james account via cell-phone?
>
>
>This isn't really a james specific question, but I'm hoping somebody has
>tried this using james and may know a trick or two.  I'm looking for a
>way to read mail from a james account via a cell-phone, are there any
>webmail type packages that can pop from james and have a WAP interface?
> A more integrated solution would be better, like maybe a servlet that
>could use the james API to serve mail.  Any ideas?
>
>Thanks
>
>-J
>
>
>
>---------------------------------------------------------------------
>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
>
>
>  
>



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


RE: read mail from james account via cell-phone?

Posted by Siraj Shakil <sh...@yahoo.com>.
Done. Can forward me those URL's? U can send them at
james-dev :>.

--- "Noel J. Bergman" <no...@devtech.com> wrote:
> Siraj,
> 
> It would be more appropriate to discuss development
> topics on james-dev,
> rather than james-user.  :-)
> 
> We have some good examples that you could use to
> model a service and
> protocol handler.  Also, I've recently put together
> a list of references on
> SMPP.
> 
> Why don't subscribe to james-dev, and we can discuss
> it over there?  :-)
> 
> 	--- Noel
> 
> -----Original Message-----
> From: Siraj Shakil [mailto:shakilsiraj@yahoo.com]
> Sent: Tuesday, March 11, 2003 0:48
> To: James Users List
> Subject: RE: read mail from james account via
> cell-phone?
> 
> 
> Hi Noel,
> 
> I have implemented a Email2SMS gateway using James
> and
> SMPP 3.4 spec.But i had to create an intermediate
> ESME
> application which will take Email from James and
> send
> them to SMSC. I didn't write the full implementation
> as a james service, because:
> 1. Avalon Framework seemed very complicated and not
> well documented(at least i couldn't find).
> 2. I didn't have much time to play with James and
> Avalon :>.
> 
> But a service like SMS Push-Pull using james is
> possible and is pretty easy. Just need to understand
> Avalon in depth. Can u send me some URLs which might
> be helpful?
> 
> Best regards, Shakil
> 
> --- "Noel J. Bergman" <no...@devtech.com> wrote:
> > Jay,
> >
> > I don't know of any WAP compatible web mails.  I
> was
> > looking at SMPP over
> > the weekend, and it would be kind of interesting
> if
> > someone did work to
> > support SMPP for James, but you sound as if you
> want
> > more than SMS.
> >
> > 	--- Noel
> >
> > -----Original Message-----
> > From: Jay Kraly
> [mailto:jay@perspectivesoftware.com]
> > Sent: Monday, March 10, 2003 12:18
> > To: James Users List
> > Subject: read mail from james account via
> > cell-phone?
> >
> >
> > This isn't really a james specific question, but
> I'm
> > hoping somebody has
> > tried this using james and may know a trick or
> two.
> > I'm looking for a
> > way to read mail from a james account via a
> > cell-phone, are there any
> > webmail type packages that can pop from james and
> > have a WAP interface?
> >  A more integrated solution would be better, like
> > maybe a servlet that
> > could use the james API to serve mail.  Any ideas?
> >
> > Thanks
> >
> > -J
> >
> >
> >
> >
>
---------------------------------------------------------------------
> > 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
> >
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Web Hosting - establish your business online
> http://webhosting.yahoo.com
> 
>
---------------------------------------------------------------------
> 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
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

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


RE: read mail from james account via cell-phone?

Posted by "Noel J. Bergman" <no...@devtech.com>.
Siraj,

It would be more appropriate to discuss development topics on james-dev,
rather than james-user.  :-)

We have some good examples that you could use to model a service and
protocol handler.  Also, I've recently put together a list of references on
SMPP.

Why don't subscribe to james-dev, and we can discuss it over there?  :-)

	--- Noel

-----Original Message-----
From: Siraj Shakil [mailto:shakilsiraj@yahoo.com]
Sent: Tuesday, March 11, 2003 0:48
To: James Users List
Subject: RE: read mail from james account via cell-phone?


Hi Noel,

I have implemented a Email2SMS gateway using James and
SMPP 3.4 spec.But i had to create an intermediate ESME
application which will take Email from James and send
them to SMSC. I didn't write the full implementation
as a james service, because:
1. Avalon Framework seemed very complicated and not
well documented(at least i couldn't find).
2. I didn't have much time to play with James and
Avalon :>.

But a service like SMS Push-Pull using james is
possible and is pretty easy. Just need to understand
Avalon in depth. Can u send me some URLs which might
be helpful?

Best regards, Shakil

--- "Noel J. Bergman" <no...@devtech.com> wrote:
> Jay,
>
> I don't know of any WAP compatible web mails.  I was
> looking at SMPP over
> the weekend, and it would be kind of interesting if
> someone did work to
> support SMPP for James, but you sound as if you want
> more than SMS.
>
> 	--- Noel
>
> -----Original Message-----
> From: Jay Kraly [mailto:jay@perspectivesoftware.com]
> Sent: Monday, March 10, 2003 12:18
> To: James Users List
> Subject: read mail from james account via
> cell-phone?
>
>
> This isn't really a james specific question, but I'm
> hoping somebody has
> tried this using james and may know a trick or two.
> I'm looking for a
> way to read mail from a james account via a
> cell-phone, are there any
> webmail type packages that can pop from james and
> have a WAP interface?
>  A more integrated solution would be better, like
> maybe a servlet that
> could use the james API to serve mail.  Any ideas?
>
> Thanks
>
> -J
>
>
>
>
---------------------------------------------------------------------
> 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
>


__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

---------------------------------------------------------------------
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: read mail from james account via cell-phone?

Posted by Siraj Shakil <sh...@yahoo.com>.
Hi Noel,

I have implemented a Email2SMS gateway using James and
SMPP 3.4 spec.But i had to create an intermediate ESME
application which will take Email from James and send
them to SMSC. I didn't write the full implementation
as a james service, because:
1. Avalon Framework seemed very complicated and not
well documented(at least i couldn't find).
2. I didn't have much time to play with James and
Avalon :>.

But a service like SMS Push-Pull using james is
possible and is pretty easy. Just need to understand
Avalon in depth. Can u send me some URLs which might
be helpful?

Best regards, Shakil

--- "Noel J. Bergman" <no...@devtech.com> wrote:
> Jay,
> 
> I don't know of any WAP compatible web mails.  I was
> looking at SMPP over
> the weekend, and it would be kind of interesting if
> someone did work to
> support SMPP for James, but you sound as if you want
> more than SMS.
> 
> 	--- Noel
> 
> -----Original Message-----
> From: Jay Kraly [mailto:jay@perspectivesoftware.com]
> Sent: Monday, March 10, 2003 12:18
> To: James Users List
> Subject: read mail from james account via
> cell-phone?
> 
> 
> This isn't really a james specific question, but I'm
> hoping somebody has
> tried this using james and may know a trick or two. 
> I'm looking for a
> way to read mail from a james account via a
> cell-phone, are there any
> webmail type packages that can pop from james and
> have a WAP interface?
>  A more integrated solution would be better, like
> maybe a servlet that
> could use the james API to serve mail.  Any ideas?
> 
> Thanks
> 
> -J
> 
> 
> 
>
---------------------------------------------------------------------
> 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
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

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


RE: read mail from james account via cell-phone?

Posted by "Noel J. Bergman" <no...@devtech.com>.
Jay,

I don't know of any WAP compatible web mails.  I was looking at SMPP over
the weekend, and it would be kind of interesting if someone did work to
support SMPP for James, but you sound as if you want more than SMS.

	--- Noel

-----Original Message-----
From: Jay Kraly [mailto:jay@perspectivesoftware.com]
Sent: Monday, March 10, 2003 12:18
To: James Users List
Subject: read mail from james account via cell-phone?


This isn't really a james specific question, but I'm hoping somebody has
tried this using james and may know a trick or two.  I'm looking for a
way to read mail from a james account via a cell-phone, are there any
webmail type packages that can pop from james and have a WAP interface?
 A more integrated solution would be better, like maybe a servlet that
could use the james API to serve mail.  Any ideas?

Thanks

-J



---------------------------------------------------------------------
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


read mail from james account via cell-phone?

Posted by Jay Kraly <ja...@perspectivesoftware.com>.
This isn't really a james specific question, but I'm hoping somebody has 
tried this using james and may know a trick or two.  I'm looking for a 
way to read mail from a james account via a cell-phone, are there any 
webmail type packages that can pop from james and have a WAP interface? 
 A more integrated solution would be better, like maybe a servlet that 
could use the james API to serve mail.  Any ideas?

Thanks

-J



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


RE: James for multiple domains

Posted by Matthew Schuyler Peck <mp...@xapsolutions.com>.
I checked with a mail admin friend of mine. According to him, sendmail is as
you say. Exim, qmail, and postfix, on the other hand, support multiple
<user>@ for multiple domains. Should we take a look at these three to see
how they do it?

Matthew Schuyler Peck

-----Original Message-----
From: bill parducci [mailto:bill@parducci.net]
Sent: Monday, March 10, 2003 9:01 AM
To: James Users List
Subject: Re: James for multiple domains


Matthew Schuyler Peck wrote:
> I've seen a repeated objection that no single solution has presented
itself
> as "the best". I submit that "the best" solution, for now, is the solution
> that other mail servers use, since it works and is widespread and James
> continues to lack its own solution to this important problem. Once this
> solution has been identified (I admit, I have not examined
> sendmail/qmail/exim/etc to figure out what, precisely, they do, but it
> involves using the full email address as the mailbox identifier at some
> level), all that remains is the time required to implement the solution. I
> am happy to provide the time. I simply want an official solution.

actually, sendmail does NOT use the 'full address' for processing mail. yes,
you can tell sendmail that it represents multiple domains, however,
processing beyond that is done solely upon the name of the recipient. this
is why a server representing myfoo.com and mybar.com cannot have aliases of
bob@myfoo.com and bob@mybar.com. sendmail will tell you that this is a
duplicate entry. why? because domain validation is only done at the initial
point of SMTP transaction (so that a reject can be issued prior to accepting
data where unauthorized relays are attempted.). this is in contrast to
james, which accepts all mail then determines propriety of addressing
(*that* discussion you will find at least a few times on the list ! :o)

i struggled with this problem as well some time ago and it seems that this
behavior is due to the incestuous relationship between SMTP and DNS (tcp has
nothing to do with the discussion other than the fact that the agreed upon
port is 25 for SMTP and tcp was selected over udp for guaranteed
delivery--contrasting dns which is just fine with udp). it seems that the
guys who came up with the whole mail idea felt that it was best that the
defacto naming system, dns, was better suited to being the keeper of
machine/subdomain/domain identity and to limit mail systems to being only
consumers of that information (which is why i think the currentl rbl
solutions are so damn clever! :o)

the caveat above was implemented because it became apparent that mail
systems could be easily exploited to perform tasks outside of those desired
by the owner. in other words, the only reason that mail systems consider
domain at all is something of an afterthought. as the needs of users grew
(and things like ISPs) showed up, there needed to be more add-ons to
accommodate the multiple domains on a single server. sendmail addressed this
via the use of virtualusertables (yes, that ugly 'virtual' word :o) the idea
here was that you could create specific aliases that need not be defined as
'real' users by the host machine. last i checked, james had the same idea:

http://james.apache.org/javadocs/org/apache/james/transport/mailets/JDBCVirt
ualUserTable.html

so to make a long story a little longer, i would say that james is really
not different from other mailing systems in the way that it handles
users/identities, it is really *when* it decides to do something about that
information that makes it unique.

that's how it looks in my little corner of the universe anyway...

b


---------------------------------------------------------------------
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: James for multiple domains

Posted by bill parducci <bi...@parducci.net>.
Matthew Schuyler Peck wrote:
> I've seen a repeated objection that no single solution has presented itself
> as "the best". I submit that "the best" solution, for now, is the solution
> that other mail servers use, since it works and is widespread and James
> continues to lack its own solution to this important problem. Once this
> solution has been identified (I admit, I have not examined
> sendmail/qmail/exim/etc to figure out what, precisely, they do, but it
> involves using the full email address as the mailbox identifier at some
> level), all that remains is the time required to implement the solution. I
> am happy to provide the time. I simply want an official solution.

actually, sendmail does NOT use the 'full address' for processing mail. yes, you can tell sendmail that it represents multiple domains, however, processing beyond that is done solely upon the name of the recipient. this is why a server representing myfoo.com and mybar.com cannot have aliases of bob@myfoo.com and bob@mybar.com. sendmail will tell you that this is a duplicate entry. why? because domain validation is only done at the initial point of SMTP transaction (so that a reject can be issued prior to accepting data where unauthorized relays are attempted.). this is in contrast to james, which accepts all mail then determines propriety of addressing (*that* discussion you will find at least a few times on the list ! :o)

i struggled with this problem as well some time ago and it seems that this behavior is due to the incestuous relationship between SMTP and DNS (tcp has nothing to do with the discussion other than the fact that the agreed upon port is 25 for SMTP and tcp was selected over udp for guaranteed delivery--contrasting dns which is just fine with udp). it seems that the guys who came up with the whole mail idea felt that it was best that the defacto naming system, dns, was better suited to being the keeper of machine/subdomain/domain identity and to limit mail systems to being only consumers of that information (which is why i think the currentl rbl solutions are so damn clever! :o) 

the caveat above was implemented because it became apparent that mail systems could be easily exploited to perform tasks outside of those desired by the owner. in other words, the only reason that mail systems consider domain at all is something of an afterthought. as the needs of users grew (and things like ISPs) showed up, there needed to be more add-ons to accommodate the multiple domains on a single server. sendmail addressed this via the use of virtualusertables (yes, that ugly 'virtual' word :o) the idea here was that you could create specific aliases that need not be defined as 'real' users by the host machine. last i checked, james had the same idea:

http://james.apache.org/javadocs/org/apache/james/transport/mailets/JDBCVirtualUserTable.html

so to make a long story a little longer, i would say that james is really not different from other mailing systems in the way that it handles users/identities, it is really *when* it decides to do something about that information that makes it unique.

that's how it looks in my little corner of the universe anyway...

b


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


Re: James for multiple domains

Posted by Serge Knystautas <se...@lokitech.com>.
Matthew Schuyler Peck wrote:
> I understand the limitations of TCP/IP with regard to machines hosting
> multiple domains. However, since DNS is an application-layer protocol (and
> thus, our use of domain names is necessarily restricted to the application
> layer), TCP/IP doesn't get to enter the discussion and it doesn't matter
> what IP addresses (be it one or many) various domains resolve to. Thus, I
> insist that there is nothing "virtual" about hosting the mail for multiple
> domains on a single mail server. Using such terminology leads to a mistaken
> notion that hosting "virtual" domains in an application is an extra feature,
> rather than a fundamental necessity of that application, be that application
> a mail server, web server, or hoojamaboob server (*heh* I really should
> write a Hoojamaboob protocol just for the name).

Unfortunately, you did not contribute to writing the POP3 (or IMAP4) 
spec, so we're stuck with the protocol we have.

> identifier. I only got to the middle of last year in the archives before I
> gave up, so maybe this was discussed recently, or it was discussed earlier
> and I missed it. The most discussion I found of this was Noel objecting that

Always check the FAQ... #7 discusses this 
(http://james.apache.org/FAQ.html#7)

> multiple email addresses might need to feed into a single mailbox. It seems
> to me that aliasing resolves this problem nicely (i.e. all but one of the
> addresses which feed into a given mailbox are aliased to the last address).
> Further, it seems to me a trivial effort to allow a user to specify any of
> the aliases as his POP3 username, checking provided usernames against SMTP
> alias lists at login (after all, user administration is already united
> across messaging protocols on the backend, so there's no reason not to have
> the POP3 implementation check against the SMTP implementation, if it
> exists).

The issue is POP3 does not support domains... you login with solely the 
username.  So the challenge is, how do you map username PLUS domain to 
usernames that avoids namespace collision and makes it easy to provide 
distributed administration.

> I've seen a repeated objection that no single solution has presented itself
> as "the best". I submit that "the best" solution, for now, is the solution
> that other mail servers use, since it works and is widespread and James
> continues to lack its own solution to this important problem. Once this
> solution has been identified (I admit, I have not examined
> sendmail/qmail/exim/etc to figure out what, precisely, they do, but it
> involves using the full email address as the mailbox identifier at some
> level), all that remains is the time required to implement the solution. I
> am happy to provide the time. I simply want an official solution.

None of those servers do it particularly great.

I mean, first sendmail is moot because it doesn't have pop3 support. 
SMTP has virtual hosting capabilities, and James has those same 
capabilities.  The issue is the mailbox.

qmail, exim and other have had to build a username PLUS domain to 
username mapping (the qmail was discussed in a reply), but you can see 
it's still somewhat unfriendly to end-users.  We would like a solution 
that allowed a small (< 500 accounts) to allow for some centralized 
administration and friendlier usernames, that allowed an ISP to offer to 
small busiensses the use of a mail server with very little awareness 
that this is a hosted solution (i.e., have completely delegated domain 
administration), and maybe some other wrinkles.

Granted, it has been very hard and is somewhat unrealistic to expect a 
single bullet to solve all these problems, but we are looking for 
solutions that do not predispose how other parts of James have to work. 
  The JDBC aliasing discussed in the FAQ is one way to solve this.

Beyond that, it comes to somewhat rigorously defining what they want, 
discussing it so the community sees it will not cause large parts of 
James to change for this exclusive issue, and then implementing it. 
IMAP is in the same boat... a lot of people want it, but it's a lot of 
work, and nobody has gotten across the finish line.

> The appeal of James, for me, is that I can process inbound and outbound
> messages synchronously. I despise polling mechanisms, and were I to use any
> other mail server for the project I am working on, I would have to pop
> mailboxes to get message data. I am, therefore, keenly interested in helping
> James become a comprehensive messaging solution. Will someone please decide
> upon a solution so that I can implement it? I'll decide, if someone will
> give me the authority.

Well, this is open source... looks like you've got a keyboard in front 
of you and have a reasonable idea of what you want.  So get started! :) 
  The only limitation will be your desire to convince us of the 
brilliance of your solution.

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


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