[rt-users] Adding it as a 'Requestor' would create a mail loop.... ?

Laurent Bauer l.bauer at mailclub.fr
Wed Oct 23 09:23:44 EDT 2013


 > ok, here's a smipplet of what I've got in RT_SiteConfig
 >
 > Set($CorrespondAddress  , 'trouble-ticket at imctv.com');
 > Set($CommentAddress  , 'rt-comment at imctv.com');
 > Set($SMTPFrom , 'trouble-ticket at imctv.com');
 > Set($RTAddressRegexp ,
 > '^(trouble-ticket\@imctv\.com|rt-comment\@imctv\.com)$');
 >
 > I assumed I needed to match trouble-ticket at imctv.com
 > and rt-comment at imctv.com, did I form the regexp wrong,
 > or am I wrong on this thinking?

I ran into the same problem today, and found the solution reading the 
source code...

RT does indeed check the global CorrespondAddress and CommentAddress, 
but also every CorrespondAddress/CommentAddres that might be set in each 
queue configuration.
So, basically, if you set an specific CorrespondAddress in one queue, 
you won't be able to use it as a requestor address. Even if it is an old 
queue and you disabled it a long time ago (this was the case in my setup).

See the check in lib/RT/EmailParser.pm :
   sub IsRTAddress {
   #   [...]
       my $queue = RT::Queue->new( RT->SystemUser );
       $queue->LoadByCols( CorrespondAddress => $address );
       return 1 if $queue->id;

So if you don't have many queues, try checking each one for a specific 
CorrespondAddress/CommentAddress overriding the global configuration.
If you have too many queues, you can make an SQL request, as I did.

	Laurent



More information about the rt-users mailing list