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 email@example.com:firstname.lastname@example.org, 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.
PS - This question is probably best posted on rt-users instead of rt-devel.From: email@example.com [mailto:firstname.lastname@example.org] On Behalf Of Simone Sanna
Sent: Wednesday, March 30, 2011 6:20 AM
Subject: [Rt-devel] RTAddressRegexp as to allow all mails
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.