@Deprecated public class XMLRecipientRewriteTable extends AbstractRecipientRewriteTable
Implements a Virtual User Table to translate virtual users to real users.
This implementation has the same functionality as
JDBCRecipientRewriteTable
, but is configured in the JAMES
configuration and is thus probably most suitable for smaller and less dynamic
mapping requirements.
The configuration is specified in the form:
<mailet match="All" class="XMLRecipientRewriteTable"> <mapping>virtualuser@xxx=realuser[@yyy][;anotherrealuser[@zzz]]</mapping> <mapping>virtualuser2@*=realuser2[@yyy][;anotherrealuser2[@zzz]]</mapping> ... </mailet>
As many <mapping> elements can be added as necessary. As indicated, wildcards are supported, and multiple recipients can be specified with a semicolon-separated list. The target domain does not need to be specified if the real user is local to the server.
Matching is done in the following order:
Constructor and Description |
---|
XMLRecipientRewriteTable()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getMailetInfo()
Deprecated.
|
void |
init()
Deprecated.
Initialize the mailet
|
protected void |
mapRecipients(Map<org.apache.mailet.MailAddress,String> recipientsMap)
Deprecated.
Map any virtual recipients to real recipients using the configured
mapping.
|
service, setDNSService, setDomainList
public void init() throws javax.mail.MessagingException
init
in class org.apache.mailet.base.GenericMailet
javax.mail.MessagingException
protected void mapRecipients(Map<org.apache.mailet.MailAddress,String> recipientsMap) throws javax.mail.MessagingException
mapRecipients
in class AbstractRecipientRewriteTable
recipientsMap
- the mapping of virtual to real recipientsjavax.mail.MessagingException
public String getMailetInfo()
getMailetInfo
in interface org.apache.mailet.Mailet
getMailetInfo
in class org.apache.mailet.base.GenericMailet
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.