#!/bin/bash

#!/login
#!/register

RT_Queues.sh



First open rt_queues.sh in your favorite texteditor and adjust the settings at the top of the file.

Then to use rt_queues.sh, you must first configure your mailserver to accept mails to every address for your ticket system’s domain. For example, if your ticket system is accessible by:

http://rt.company.local/

and your ticket system’s emails end in @rt.company.local, then configure your mailsystem to accept all emalis @rt.company.local.
Next, setup procmail so that the mails @rt.company.local are passed through it and add these recipes:
 
:0fwc 
| /path/to/rt_queues.sh 

:0a: 
/dev/null 

This will make all mails pass through rt_queues.sh, which then checks if these mails are addressed (To: or CC:) to your Request Tracker. If they are it will exit with return code SUCCESS, which then makes procmail deliver the mail to /dev/null.
All emails which are NOT handled by rt_queues.sh will be delivered as usual so that you don’t lose tickets that are just sent to the wrong mailaddress.

Edit | History | Subscribe