RTAddressRegexp as to allow all mails

Hello List,

How should I set $RTAddressRegexp to allow any incoming mail to be
validated?
In my situation any valid e-mail should be allowed, because I am in the
impossibility to know in advance any reasonable pattern.

Many thanks in advance for any help.

Regards,
Simone Sanna

Simone:

I think you are mis-understanding what RTAddressRegexp is.

RTAddressRegexp is used to make sure RT doesn’t add itself as a ticket CC if

the setting ParseNewMessageForTicketCcs is enabled.

So if your RT domain is rt.your_host.your_com , then set
Set($RTAddressRegexp , ‘.*@ rt.your_host.your_com$’);

Else you may end up with loops within your system.

Regards;
RoyFrom: rt-devel-bounces@lists.bestpractical.com [mailto:rt-devel-bounces@lists.bestpractical.com] On Behalf Of Simone Sanna
Sent: 30 March 2011 12:20
To: rt-devel@lists.bestpractical.com
Subject: [Rt-devel] RTAddressRegexp as to allow all mails

Hello List,

How should I set $RTAddressRegexp to allow any incoming mail to be validated?
In my situation any valid e-mail should be allowed, because I am in the impossibility to know in advance any reasonable pattern.

Many thanks in advance for any help.

Regards,
Simone Sanna

That’s not the purpose of $RTAddressRegexp. That variable is used to tell RT which email addresses are its own addresses, so it can avoid mail loops.

So, if your RT queue is helpdesk@foo.commailto:helpdesk@foo.com, you might want:

Set($RTAddressRegexp , ‘^helpdesk(-comment)?@foo.com$’);

Of course, the regexp can get more complicated with multiple queues or other more complex scenarios.

-Fran

PS - This question is probably best posted on rt-users instead of rt-devel.From: rt-devel-bounces@lists.bestpractical.com [mailto:rt-devel-bounces@lists.bestpractical.com] On Behalf Of Simone Sanna
Sent: Wednesday, March 30, 2011 6:20 AM
To: rt-devel@lists.bestpractical.com
Subject: [Rt-devel] RTAddressRegexp as to allow all mails

Hello List,

How should I set $RTAddressRegexp to allow any incoming mail to be validated?
In my situation any valid e-mail should be allowed, because I am in the impossibility to know in advance any reasonable pattern.

Many thanks in advance for any help.

Regards,
Simone Sanna