Mailing to multiple queues in RT2.0.14

Hi,

I wonder if there is some way to configure rt-mailgate to send to multiple
queues at the same time.

In my /etc/aliases I have got :

single: |"/var/rt2_14/bin/rt-mailgate --queue tekqueue --action
correspond"

And if I am sending an email to single@mydomain.com I get the ticket in the
queue named “tekqueue”.

But I would like to have the feature where the mail goes both to "tekqueue"
and “sysqueue”, by mailing double2mydomain.com and a configuration looking
something like below:

double: |"/var/rt2_14/bin/rt-mailgate --queue tekqueue+sysqueue
–action correspond"

Is this possible ?

/Cheers,

Patrick

Patrick Harlin, SysAdmin
Luleå University of Technology
Sweden

Patrick Harlin wrote:

I wonder if there is some way to configure rt-mailgate to send to
multiple queues at the same time.

That doesn’t really make sense – a particular ticket is only going to
be in a single queue (that’s the way ‘RT’ does things), and a particular
message is only going to pertain to one ticket.

But I would like to have the feature where the mail goes both to
"tekqueue" and “sysqueue”, by mailing double@mydomain.com

If you wanted a single mail to create two new tickets then you could
easily achieve that. But once the tickets exist they are entirely
independent entities which just happened to have been seeded from the
same e-mail.

Just do the doubling in your MTA rather than ‘RT’. Something like this
in /etc/aliases should do it:

double: tek-q, sys-q
tek-q: "|/var/rt2_14/bin/rt-mailgate --queue tekqueue --action correspond"
sys-q: “|/var/rt2_14/bin/rt-mailgate --queue sysqueue --action correspond”

rt-mailgate doesn’t even realize it’s doubling things – so far as it’s
concerned it’s been invoked twice with new mails.

However I’d expect the above to become irritating with correspondence on
existing tickets. I believe that if the mail piped into rt-mailgate has
a ticket number in the subject then ‘RT’ operates on that ticket in
whichever queue it happens to be, ignoring the --queue argument.

So correspondence on ticket #123 in tekqueue would get added to that
ticket twice, once by each of the above lines. There’s probably some
way of stopping that (or you could have an address just for creating new
tickets) but it isn’t really something I want to think about …

Smylers
GBdirect