RT-MAILGATE(1)
π¦ rt-mailgate β the manual, but make it make sense β¨
okay bestie, welcome to RT-MAILGATE(1) π this is a User Contributed Perl Documentation page, and I'm about to explain the whole thing to you like we're texting at 2am. no cap, every flag is still in here. let's go πΈ
π NAME
rt-mailgate β the mail interface to RT. it's literally the bridge between your inbox and RT, periodt.
π SYNOPSIS
want the help text? say less:
rt-mailgate --help : this text
and here's how you'd usually get invoked (from the MTA, iykyk):
rt-mailgate --action (correspond|comment|...) --queue queuename
--url http://your.rt.server
[ --debug ]
[ --extension (queue|action|ticket) ]
[ --timeout seconds ]
β¨ OPTIONS β¨
--actionβ this controls what actually happens to the email that lands on this alias. the basic actions available arecorrespondandcomment. but heads up, there might be extra actions liketakeorresolvedepending on your local@MailPluginsconfiguration π
you can run β¨two or moreβ¨ actions on a single message by smushing them together in a - separated list. RT runs them in the order you listed them. so like, take-comment, correspond-resolve, or take-comment-resolve are all valid little combos.
real talk though:takeandresolvewill straight up ignore the message text if you use them alone π. if you want RT to record the incoming message, you gotta include acommentorcorrespondaction in there too.
the default action is correspond.
--queueβ this flag decides which queue the alias should create a ticket in, but only if no ticket identifier was found. so it's the fallback, bestie π--urlβ tells the mail gateway where your RT server lives. you should probably use the same URL your users use to log into RT. like, just do that.
also, if you've got a self-signed SSL certificate, you might need to pass --ca-file or --no-verify-ssl (both below, don't worry) π«Ά
--ca-filepath β here you give the path to the public SSL certificate for the certificate authority that should be used to verify the website's SSL certificate. so if your webserver uses a self-signed certificate, pls pls pls reach for this option before--no-verify-sslβ it makes sure the self-signed certificate the mailgate is seeing is the right self-signed certificate. it's giving responsible.--no-verify-sslβ this tells the mail gateway to trust all SSL certificates. regardless of whether their hostname matches the certificate, and regardless of CA. it's the chaotic option ngl. you need this if you have a self-signed certificate, or some other certificate that isn't traceable back to a certificate your system ultimately trusts.--extensionOPTIONAL β some MTAs will route mail sent to user-foo@host or user+foo@host over to user@host and then hand youfooin the environment variable$EXTENSION. so:- set this parameter to
queue, and the queue your message gets submitted to becomes the value of$EXTENSION - set it to
ticket, and$EXTENSIONgets interpreted as the id of the ticket this message is related to - set it to
action, and the user can specify eithercommentorcorrespondin the address extension π
- set this parameter to
--debugOPTIONAL β prints debugging output to standard error. that's it, that's the whole vibe.--timeoutOPTIONAL β configures the timeout for posting the message to the web server. the default timeout is 3 minutes (180 seconds) β°
π DESCRIPTION
the RT mail gateway is the primary mechanism for communicating with RT via email. this program just directs the email over to the RT web server, and that server handles filing correspondence and sending out any required mail. iconic division of labor honestly.
it's designed to be run as part of the mail delivery process β either called directly by the MTA or procmail, or dropped into a .forward file or equivalent π
πΈ SETUP
ngl, a lot of the setup depends on your MTA and your mail routing configuration. no universal answer, sorry bestie π
the thing you do need: route mail to rt-mailgate for the queues you're monitoring. for instance, if you're using /etc/aliases and you've got a bugs queue, you'd 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"
and plot twist π«’ β you do not have to run your RT server on your mail server. the mail gateway will happily relay to a different machine. slay.
π ENVIRONMENT
EXTENSION
some MTAs will route mail sent to user-foo@host or user+foo@host to user@host, and present foo in the environment variable EXTENSION. mailgate adds the value of this variable to the message in the X-RT-Mail-Extension field of the message header π
see also the --extension option above. and note this one: the value of the environment variable is always added to the message header when it's not empty β even if the --extension option is not provided. sneaky but true π
okay that's the whole page, you're officially certified πβ¨ this was perl v5.42.3, dated 2026-07-20 β catch you on the next manual bestie, mwah π
π
π¦ where this page comes from
- fedora 43: rt-mailgate 5.0.10-1.fc43 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms