Hi, 

Serge Knystautas wrote:
> 
> ----- Original Message -----
> From: "Mathieu Marache" <[EMAIL PROTECTED]>
> 
> >  I'm trying to figure out how to forward mails from a virtual domain to
> > "real" email addresses based on user data....
> 
> Can you explain a bit more what you're trying to do?  Effectively you're
> trying to rewrite [EMAIL PROTECTED] to [EMAIL PROTECTED], or
> something like this? 

Yes, that is correct

> What part of this information is in LDAP and what is
> constant, for instance, is it always fakedomain.com to realdomain.com, is it
> various custom mappings?  

It is various, more or less user configurable just like if you had a
mail address in your "~/.forward" file on a unix box

> It sounds like you would want to write a mailet
> that models the TownAlias mailet.

Sorry for not seing this mailet before... I'm very new to james. But in
fact yes it's tring to do the same thing but the mail address to forward
to is locate in a LDAP repository. No problem about this unless I want
to use the same LDAP Repository that uses james for its UserRepository.
 
> >From what I do understand, I don't think this requires any changes to the
> mailet API... sounds like just another mailet (and maybe a matcher) that
> needs to get written.

I've got it running but I needed to implement the Object
getAttributes(String name) from UserLDAPReposiroty to send me back some
information (the forward address from a user called "name"). Then add a
method both to MailContext and James with same prototypes that calls
"users.getAttributes" so I could use it from a mailet...

I believe this is not very good...

Anyway what is the plans with this method getAttributes from
UserRepository ? It's not used anywhere ?

Kind regard,
Mat

> Serge Knystautas
> Loki Technologies
> http://www.lokitech.com/
> 
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives:  <http://www.mail-archive.com/james%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]

--
Mathieu Marache  | Centre Scientifique & | +33 (0)4 93956 407 
[EMAIL PROTECTED]  | Technique du B�timent | http://www.cstb.fr


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives:  <http://www.mail-archive.com/james%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to