Loop detection not working?

hi,
we redirect mail on our mail gateway (virtusertable) with queue@domain.org going to queue@rt.domain.org
the email address set on the queue itself is queue@domain.org so replys to messages from the queue will go through the gateway
we also have multiple aliases for each queue like
queue: “|/path/to/rt/bin/rt-mailgate --queue queue --action correspond”
queue2: “|/path/to/rt/bin/rt-mailgate --queue queue --action correspond”

we set up the loop detection in rt like
return(1) if ($address =~ /^queue@domain.org$/i);
return(1) if ($address =~ /^queue@rt.domain.org$/i);
return(1) if ($address =~ /^queue2@domain.org$/i);
return(1) if ($address =~ /^queue2@rt.domain.org$/i);

if a customer creates a ticket to queue2@domain.org then replys to the autoresponse while ccing the queue@domain.org the loop detection fails and emails start looping
I have set it to send notification of loops to me so i get the loop notices but these looping emails are getting put into the ticket as new correspondence to requestor and the email is logged in maillog as sent.

it seems to me that rt should never send mail it thinks is a loop to requestor, is this right?

-d voelker

Dwayne Voelker wrote:

it seems to me that rt should never send mail it thinks is a loop to
requestor, is this right?

Yes, but there’s an obscure bug in there somewhere.

A workaround exists as of 2.0.15pre1; if you’re running 2.0.14 or
older, try the attched patch.
Phil Homewood, Systems Janitor, www.SnapGear.com
pdh@snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances

rt-loop-patch (1.32 KB)

Dwayne Voelker wrote:

it seems to me that rt should never send mail it thinks is a loop to
requestor, is this right?

Yes, but there’s an obscure bug in there somewhere.

I’m also told that the latest MailTools package fixes the bug that
2.0.15-pre1 works around.

»|« Request Tracker... So much more than a help desk — Best Practical Solutions – Trouble Ticketing. Free.

“PH” == Phil Homewood pdh@snapgear.com writes:

PH> Dwayne Voelker wrote:

it seems to me that rt should never send mail it thinks is a loop to
requestor, is this right?

PH> Yes, but there’s an obscure bug in there somewhere.

PH> A workaround exists as of 2.0.15pre1; if you’re running 2.0.14 or
PH> older, try the attched patch.

And it is a NASTY thing when some dolt running the Outlook Virus
Dissemination Engine gets hit with a virus that picks to/from
addresses that are aliases for the same RT queue. Imagine this:
49,000+ correspondences in less than a couple of hours…

The fixed loop detection has saved me this pain twice since that
incident…