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 mp...@xapsolutions.com on 2003/03/11 19:43:38 UTC

Domain-specific user repositories working

I don't know the RFC for SMTP well enough to know if what I did violates the 
protocol, but I did the following to James.java (org.apache.james.James) in a 
James 2.1.2 installation:
- comment out lines 726 to 739 (beginning "if (ignoreCase)" and ending "}")
- add "username = recipient.toString();" immediately after
- change method-call in line 743 (was line 742) 
to "getUserByNameCaseInsensitive()" instead of "getUserByName()"

I now have domain-granular repository resolution in James. I didn't have to 
change anything in the POP3 implementation. I didn't have to do more than 
comment out a few lines, add one line, and change another in one file of the 
SMTP implementation. I didn't have to set up virtual tables or change my 
mailet configurations. When I add users through the RemoteManager I add them 
with their full email address for the username. When I connect with a POP3 
client, I specify the full email address for the username.

Maybe there could be a flag added to config.xml that allows the installer to 
specify domain-specific user repositories and then wrap the changes I made in 
a conditional. Again, this might violate SMTP and therefore be an 
unacceptable solution from a "pure" perspective. It works for me, though.

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