<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=SendingCommentsDirectlyToATicketWithPostfix</id>
	<title>SendingCommentsDirectlyToATicketWithPostfix - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=SendingCommentsDirectlyToATicketWithPostfix"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=SendingCommentsDirectlyToATicketWithPostfix&amp;action=history"/>
	<updated>2026-08-22T05:37:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=SendingCommentsDirectlyToATicketWithPostfix&amp;diff=3482&amp;oldid=prev</id>
		<title>Admin: 3 revisions imported</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=SendingCommentsDirectlyToATicketWithPostfix&amp;diff=3482&amp;oldid=prev"/>
		<updated>2016-04-06T20:37:40Z</updated>

		<summary type="html">&lt;p&gt;3 revisions imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;We would like to be able to [https://addons.mozilla.org/en-US/thunderbird/addon/mailredirect/ redirect] a message directly from our inbox to an RT ticket, in the form &amp;#039;&amp;#039;ticketnumber@rthost&amp;#039;&amp;#039; and have it recorded on the specified ticket as a comment.&lt;br /&gt;
&lt;br /&gt;
Assumptions:&lt;br /&gt;
#MTA is postfix.  Configuration is in &amp;#039;&amp;#039;/etc/postfix&amp;#039;&amp;#039; , &amp;#039;&amp;#039;rt-mailgate&amp;#039;&amp;#039; is in &amp;#039;&amp;#039;/usr/bin&amp;#039;&amp;#039; .&lt;br /&gt;
#RT is running on a virtual host, e.g.  &amp;#039;&amp;#039;https://helpdesk.example.com/&amp;#039;&amp;#039;&lt;br /&gt;
#RT&amp;#039;s virtual host hostname is pointed to the postfix server with proper A/MX records.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Steps:&lt;br /&gt;
&lt;br /&gt;
1.  create or edit the file: &amp;#039;&amp;#039;/etc/postfix/canonical.pcre&amp;#039;&amp;#039; with contents:&lt;br /&gt;
     /^(\d+)@helpdesk.example.com/i         ticket+${1}@helpdesk.example.com&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2.  ensure the file &amp;#039;&amp;#039;/etc/postfix/main.cf&amp;#039;&amp;#039; contains:&lt;br /&gt;
 recipient_delimiter = +&lt;br /&gt;
 canonical_maps = pcre:/etc/postfix/canonical.pcre&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3.  add to your &amp;#039;&amp;#039;/etc/aliases&amp;#039;&amp;#039; file:&lt;br /&gt;
 ticket:                       &amp;quot;|/usr/sbin/rt-mailgate --extension ticket --action comment --url https://helpdesk.example.com/&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4.  Now just take care of the required postfix maintenance commands:&lt;br /&gt;
 # postmap /etc/postfix/canonical.pcre&lt;br /&gt;
 # newaliases&lt;br /&gt;
 # postfix reload&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From here, you can simply redirect correspondence that should have gone on a ticket by redirecting the message to e.g. &amp;#039;&amp;#039;1234@helpdesk&amp;#039;&amp;#039; .&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>