Hi Lee,
I think you should try to look rewrite tables. I should do the trick (but I didn't test it yet ) An other way of doing things would be to use the RecipientIsRegex matcher ( something like .*@rcp.com ) If you want to develop your custom mailet : - create a separated maven project with james-mailet as a depandancy - Create a class that implements Mailet or Matcher ( depanding on wether you are filtering or adding a functionnality ) . You may want to inherit GenericMailet or GenericMatcher classes. These classes helps you with configuration, logging ... You then just have to override the service ( or match ) method, customize your init method, provide the mailet name, and if needed provide a destroy method. - Compile your mailet and put it in a jar. Put this jar in your James conf/lib forlder with its depandancies ( not satisfied by James ) - A few more thing : modify conf/wrapper.conf so that you add your jars to the class path ( don't believe in conf/lib/* import ) - Mailet configuration time ! It works as if it was a standrad mailet but you have to use fully qualified class names. To know the exact list of provided mailets have a look to the mailet subproject ( those you can find a list on the official website ) but you may also want to have a look at james-server mailet subproject. I hope this helps :-) Benoit Le 2015-01-22 23:08, Lee Chalupa a écrit : > Hello: > > I have James version 3 running with no problems. > > I have a couple of requirements I need to meet. > > I'm learning James but it is a struggle. > > I'm familiar with mailets and matchers. I have not used them yet. > > Here is the requirement. > > The client has two domains: rcp.com and RobertCasePlumbing.com. > The rcp.com domain is used for saving key strokes by avoiding typing out > the longer domain name RobertCasePlumbing.com. For example. I could then > send an mail to b...@rcp.com and avoid typing b...@robertcaseplumbing.com. > > I want to define an alias for a domain: rcp.com is the alias for > RobertCasePlumbing.com. > > So when James is processing mail and it sees the rcp.com alias domain, > it will look up the original > domain and use it to deliver the mail. > > Does James have any functionality out of the box to handle domain aliases? > > Could I provide this functionality using the existing mailets and matchers? > > Does anyone have any instructions on how to develop and deploy mailets > and matchers that is written > for version 3 of James? > > Thanks for any help you can provide. > > lee > > --------------------------------------------------------------------- > To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org > For additional commands, e-mail: server-user-h...@james.apache.org