| rt-mailgate(1) | Request Tracker Reference | rt-mailgate(1) |
rt-mailgate - Mail gateway for Request Tracker
rt-mailgate --help : this text
Usual invocation (from MTA):
rt-mailgate --action (correspond|comment|...) --queue queuename
--url http://your.rt.server
[ --debug ]
[ --extension (queue|action|ticket) ]
[ --timeout seconds ]
You can execute two or more actions on a single message using a "-" separated list. RT will execute the actions in the listed order. For example you can use "take-comment", "correspond-resolve" or "take-comment-resolve" as actions.
Note that "take" and "resolve" actions ignore message text if used alone. Include a "comment" or "correspond" action if you want RT to record the incoming message.
The default action is "correspond".
If you have a self-signed SSL certificate, you may also need to pass "--ca-file" or "--no-verify-ssl", below.
The RT mail gateway is the primary mechanism for communicating with RT via email. This program simply directs the email to the RT web server, which handles filing correspondence and sending out any required mail. It is designed to be run as part of the mail delivery process, either called directly by the MTA or "procmail", or in a .forward or equivalent.
Much of the set up of the mail gateway depends on your MTA and mail routing configuration.
You need to route mail to "rt-mailgate" for the queues you're monitoring. For instance, if you're using /etc/aliases and you have a "bugs" queue, you will want something like this:
bugs: "|/usr/bin/rt-mailgate --queue bugs --action correspond
--url http://rt.mycorp.com"
bugs-comment: "|/usr/bin/rt-mailgate --queue bugs --action comment
--url http://rt.mycorp.com"
Note that you don't have to run your RT server on your mail server, as the mail gateway will happily relay to a different machine.
See also "--extension" option. Note that value of the environment variable is always added to the message header when it's not empty even if "--extension" option is not provided.
| 2023-12-09 | perl v5.38.2 |