Re: Redirects set in mailetcontainer.xml not working (James 3.8.2 JPA Guice)
Benoit TELLIER <[email protected]> Sun, 24 Aug 2025 07:45:17 +0000
| Newsgroups | gmane.comp.jakarta.james.user |
|---|---|
| Message-ID | <[email protected]> |
---=Part.6ad.7077ee47fb40e016.198db09eb77.25db916f2f4d5b91=-
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Accept-Language: fr-FR, en-US, vi-VN, ru-RU, ar-TN, it-IT, de-DE
Content-Language: en-US
1=2E Can you please share the exact bounce email ?
It would provide more i=
nfos on the failure and where it happens=2E
2=2E Please provide smtpserver=
=2Exml=2E
Smtp layer may validate that local domains users exists=2E Failu=
re to do so will result in bounces=2E
3=2E I would encourage writing a ded=
icaed matcher "LocalPartIsPhoneNumber"
Paired with DomainIs matcher which s=
hall be case incentive we will ge something way more resilient=2E
Alast, I=
encourage you to test the regex suppied in RecipientIsRegex unit tests:=C2=
=A0https://github=2Ecom/apache/james-project/blob/master/mailet/standard/sr=
c/test/java/org/apache/james/transport/matchers/RecipientIsRegexTest=2Ejava=
=C2=A0
Cheers
--=C2=A0
Best regards,
Benoit TELLIER
General manager of=
Linagora VIETNAM=2E
Product owner for Team-Mail product=2E
Chairman of the=
Apache James project=2E
Mail: btellier@linagora=2Ecom
Tel: (0033) 6 77 26=
04 58 (WhatsApp, Signal)
On Aug 20, 2025 4:48 PM, from Matt Pryor <pryor=
@international-presence=2Ecom>Hi there
I have the following in my mailetco=
ntainer=2Exml:
<processor state=3D"root" enableJmx=3D"true">
<m=
ailet
match=3D"RecipientIsRegex=3D\+?\d[\=2E\d\-]+@[iI][mM][pP][sS][cC][lL]=
[oO][uU][dD]\=2E[cC][oO][mM]"
class=3D"Redirect">
<recipients>outbou=
nd@impscloud=2Ecom</recipients>
<to>to</to>
<inline>unaltered=
</inline>
<passThrough>FALSE</passThrough>
<static>TRUE</stat=
ic>
</mailet>
=2E=2E=2E=2E
The idea being that if emails come in=
to (phone number)@impscloud=2Ecom the
email gets redirected to outbound@imp=
scloud=2Ecom, and then we have a
pop/imap process picking up the email from=
that mailbox which sends the
email contents as a fax to the phone number p=
art=2E
This used to work perfectly under James 3=2E0=2E1=2E
However since u=
pgrading to James 3=2E8=2E2 it no longer works, instead the
emails get boun=
ced with "address not found"=2E
Am I missing some other subtle config setti=
ng? Everything else in the xml
file looks the same as our old mail server f=
rom what I can tell=2E
Happy to share the whole mailetcontainer=2Exml if no=
thing is obvious from
this snippet=2E
Thanks a lot
Matt
Kind regard=
s
Matt Pryor
Research and Development Manager
The International Presence G=
roup of Companies
EMAIL: pryor@presencebpm=2Ecom
URL: International-presenc=
e=2Ecom
---=Part.6ad.7077ee47fb40e016.198db09eb77.25db916f2f4d5b91=---