Re: [rt-users] Determine Queue based off of email domain

2010-03-21 Thread Dustin Berube
On Sun, Mar 21, 2010 at 11:06 PM, Matt Hoover m...@hoov.net wrote:

 Dustin-

 I think the best way to handle that would be thru your postfix
 configuration.  Just send each alias to a different Q...

 http://www.postfix.org/VIRTUAL_README.html#virtual_alias

 Once you have email being delivered to those aliases  -follow the wiki and
 pipe your email to rt-mailgate and specify the queue.

 http://wiki.bestpractical.com/view/ManualEmailConfig

 Matt


Matt,
I don't disagree with you, using the procmail recipes was the best option in
this scenario due to politics. The outside entities that I deal with will
not change the support email address so I had to make it work with what I
had.

Actually the procmail recipes I posted are working extremely well in this
environment. Basically postfix is just passing the messages over to procmail
for filtering and delivery. I set the mailbox_command directive in
/etc/postfix/main.cf to equal this:

mailbox_command = /usr/bin/procmail
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] Determine Queue based off of email domain

2010-03-20 Thread Brumm, Torsten / Kuehne + Nagel / Ham MI-ID
Check out procmail, this is what you are looking for!

Torsten


Kuehne + Nagel (AG  Co.) KG, Geschaeftsleitung: Hans-Georg Brinkmann (Vors.), 
Dirk Blesius, Reiner Heiken, Bruno Mang, Alfred Manke, Christian Marnetté, Mark 
Reinhardt, Jens Wollesen, Rainer Wunn, Sitz: Bremen, Registergericht: Bremen, 
HRA 21928, USt-IdNr.: DE 812773878, Persoenlich haftende Gesellschaft: Kuehne  
Nagel A.G., Sitz: Contern/Luxemburg Geschaeftsfuehrender Verwaltungsrat: 
Klaus-Michael Kuehne





Von: rt-users-boun...@lists.bestpractical.com 
rt-users-boun...@lists.bestpractical.com 
An: rt-users@lists.bestpractical.com rt-users@lists.bestpractical.com 
Gesendet: Sat Mar 20 03:30:30 2010
Betreff: [rt-users] Determine Queue based off of email domain 


I am trying to get RT setup to place new tickets in a particular queue based 
off the senders mail domain. We use RT at work to handle support tickets for 
our customers in the building. I have 3 different email domains that would be 
sending us tickets. 

For example I have the following domains that would send us email

@abc.com - company's email account (I have control over this domain)
@jkl.com - Operational department that we support (email is handled by there 
main office)
@xyz.com - Outside agency that we maintain a hosted financial system for

I would want anyone sending an email to techsupp...@abc.com to have a ticket 
created in a particular queue depending on the email domain they are a part of.

Example:
@abc.com - goes to the ABC Ticket Queue
@jkl.com - goes to the JKL Ticket Queue
@xyz.com - goes to the XYZ Ticket Queue

Is there a way to do this with RT's Scips or would I be better off trying to 
filter mail for this criteria with postfix?


Thanks,
Dustin


___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] Determine Queue based off of email domain

2010-03-20 Thread Michelle Konzack
Hello Dustin Berube,

Am 2010-03-19 22:30:30, hacktest Du folgendes herunter:
 I would want anyone sending an email to techsupp...@abc.com to have a ticket
 created in a particular queue depending on the email domain they are a part
 of.
 
 Example:
 @abc.com - goes to the ABC Ticket Queue
 @jkl.com - goes to the JKL Ticket Queue
 @xyz.com - goes to the XYZ Ticket Queue
 
 Is there a way to do this with RT's Scips or would I be better off trying to
 filter mail for this criteria with postfix?

Puzzeing around...

I have 11 Request-Tracker for 7 different domains  runing  on  a  singel
courier server.  Where is the problem?

You create three accounts for

techsupp...@abc.com
techsupp...@jkl.com
techsupp...@xyz.com

and each is handled seperateley.

Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator
24V Electronic Engineer
Tamay Dogan Network
Debian GNU/Linux Consultant

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
# Debian GNU/Linux Consultant #
http://www.tamay-dogan.net/ Michelle Konzack
http://www.can4linux.org/   Apt. 917
http://www.flexray4linux.org/   50, rue de Soultz
Jabber linux4miche...@jabber.ccc.de   67100 Strabourg/France
IRC#Debian (irc.icq.com)  Tel. DE: +49 177 9351947
ICQ#328449886 Tel. FR: +33  6  61925193


signature.pgp
Description: Digital signature
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] Determine Queue based off of email domain

2010-03-20 Thread Dustin Berube
On Sat, Mar 20, 2010 at 10:48 AM, Michelle Konzack 
linux4miche...@tamay-dogan.net wrote:

 Hello Dustin Berube,

 Am 2010-03-19 22:30:30, hacktest Du folgendes herunter:
  I would want anyone sending an email to techsupp...@abc.com to have a
 ticket
  created in a particular queue depending on the email domain they are a
 part
  of.
 
  Example:
  @abc.com - goes to the ABC Ticket Queue
  @jkl.com - goes to the JKL Ticket Queue
  @xyz.com - goes to the XYZ Ticket Queue
 
  Is there a way to do this with RT's Scips or would I be better off trying
 to
  filter mail for this criteria with postfix?

 Puzzeing around...

 I have 11 Request-Tracker for 7 different domains  runing  on  a  singel
 courier server.  Where is the problem?

 You create three accounts for

techsupp...@abc.com
techsupp...@jkl.com
techsupp...@xyz.com

 and each is handled seperateley.


I agree I would like to go this route as well, however I don't have
administrative access to two of the three domains and there is a lot of
politics involved (I work in the local government sector). Two of the
domains are handled by separate entities. I had a hard enough time just
getting them to agree to email a helpdesk account instead of individual
people.
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] Determine Queue based off of email domain

2010-03-20 Thread Dustin Berube
On Sat, Mar 20, 2010 at 5:59 AM, Brumm, Torsten / Kuehne + Nagel / Ham MI-ID
torsten.br...@kuehne-nagel.com wrote:

Check out procmail, this is what you are looking for!

Torsten

 Tortsen,

Thanks for pointing me into the right direction with procmail. Here's the
solution that I came up with (hopefully it will be helpful to someone else).

/etc/procmailrc

# Set Variables
SHELL=/bin/sh
LOGFILE=/var/log/procmail.log
LOG=--- Logging ${LOGFILE} for ${LOGNAME}---\n 
VERBOSE=yes
RT_MAILGATE=/opt/rt3/bin/rt-mailgate
RT_URI=http://192.168.0.29/ticket;

LOGABSTRACT=no

# ABC
:0
* ^From: @abc.com
|/usr/bin/perl $RT_MAILGATE --queue abc's Office --action correspond --url
$RT_URI

# JKL
:0
* ^From: @jkl.org
|/usr/bin/perl $RT_MAILGATE --queue JKL --action correspond --url $RT_URI

# XYZ
:0
* ^From: @xyz.org
|/usr/bin/perl $RT_MAILGATE --queue XYZ --action correspond --url $RT_URI

# All others
:0
* !^From: @abc.com|@jkl.org|@xyz.org
|/usr/bin/perl $RT_MAILGATE --queue External Users --action correspond
--url $RT_URI
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

[rt-users] Determine Queue based off of email domain

2010-03-19 Thread Dustin Berube
I am trying to get RT setup to place new tickets in a particular queue based
off the senders mail domain. We use RT at work to handle support tickets for
our customers in the building. I have 3 different email domains that would
be sending us tickets.

For example I have the following domains that would send us email

@abc.com - company's email account (I have control over this domain)
@jkl.com - Operational department that we support (email is handled by there
main office)
@xyz.com - Outside agency that we maintain a hosted financial system for

I would want anyone sending an email to techsupp...@abc.com to have a ticket
created in a particular queue depending on the email domain they are a part
of.

Example:
@abc.com - goes to the ABC Ticket Queue
@jkl.com - goes to the JKL Ticket Queue
@xyz.com - goes to the XYZ Ticket Queue

Is there a way to do this with RT's Scips or would I be better off trying to
filter mail for this criteria with postfix?


Thanks,
Dustin
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22  23
Dublin, Ireland - Mar 15  16
Boston, MA, USA - April 5  6
Washington DC, USA - Oct 25  26

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com