Re: rewriting hostname when relaying email.

Mark Gordon <[email protected]>
Newsgroups gmane.comp.jakarta.james.user
Message-ID <CAN=AqjADWQ626DBx=SqrQQafKHPDKNGb7YyB6xBK9bYJx=LJZg@mail.gmail.com>
I looked into this some more.  It appears that the Rewrite mailet may do
what I need.  I am having some trouble figuring out how to make it work.

I have tried adding  the xml below in the root processor after the
PostmasterAlias  and also i the transport processor before RemoteDelivery
I added <debug>true</debug>  I see the mailet getting loaded showing my
matcher..... but it does not seem to be running with the inbound email.
Sorry I am such a noob.... what am I missing?

Thanks,
Mark

<mailet match="[email protected]" class="Redirect">
    <debug>true</debug>
    <recipients>[email protected]</recipients>
    <sender>unaltered</sender>
    <inline>unaltered</inline>
    <passThrough>FALSE</passThrough>
    <replyTo>unaltered</replyTo>
    <static>FALSE</static>
 </mailet>


On Mon, Oct 28, 2019 at 8:32 AM Mark Gordon <[email protected]> wrote:

>
> One of the reasons I choose Apache James was because of the mailet api.
> Looks like a powerful way to process email.
> With that said, I am wondering if there is an existing  maillet that will
> do the first thing I am trying to do.
>
> If an email comes in for [email protected] i would like to not relay to
> [email protected] but relay to [email protected].   So basically change the
> domain name of the to address.
>
> Thanks in advance for any assistance.
>
> -Mark
>
> --
> Mark Gordon <[email protected]>
>
> OrderTech Corporation | 819 W Fairmont Dr Ste 2 | Tempe, AZ 85282
>
> *o:* (480) 285-1403 <4802851403> | *f:* (480) 464-5824 <4804645824> | *m:*
>  (602) 549-0488 <6025490488>
>
> www.ordertech.com
>
> LinkedIn <http://www.linkedin.com/company/ordertech-corp> | Twitter
> <https://twitter.com/OrderTech> | Facebook
> <https://www.facebook.com/OrderTech>
>


-- 
Mark Gordon <[email protected]>

OrderTech Corporation | 819 W Fairmont Dr Ste 2 | Tempe, AZ 85282

*o:* (480) 285-1403 <4802851403> | *f:* (480) 464-5824 <4804645824> | *m:*
(602) 549-0488 <6025490488>

www.ordertech.com

LinkedIn <http://www.linkedin.com/company/ordertech-corp> | Twitter
<https://twitter.com/OrderTech> | Facebook
<https://www.facebook.com/OrderTech>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.