<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rt-wiki.bestpractical.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Webster</id>
	<title>Request Tracker Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://rt-wiki.bestpractical.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Webster"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/wiki/Special:Contributions/Webster"/>
	<updated>2026-08-22T09:59:14Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=EmailInterface&amp;diff=26433</id>
		<title>EmailInterface</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=EmailInterface&amp;diff=26433"/>
		<updated>2016-11-15T17:46:55Z</updated>

		<summary type="html">&lt;p&gt;Webster: Updated broken link to archive.org copy&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== T&#039;s config file ==&lt;br /&gt;
&lt;br /&gt;
You should start configuration from [[SiteConfig|SiteCo]], all options are briefly described in the main config template, so here we&#039;ll try to add additional information that will help you understand importance of each option. As it&#039;s not complete description then you &#039;&#039;&#039;MUST&#039;&#039;&#039; always read description in the main config file.&lt;br /&gt;
&lt;br /&gt;
Very &#039;&#039;&#039;important&#039;&#039;&#039; options are OwnerEmail, RTAddressRegexp and NotifyActor.&lt;br /&gt;
&lt;br /&gt;
=== Basic options ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;$rtname&#039;&#039;&#039; (scalar) - name of the RT instance, is used in subject of emails to get/store ID of tickets. See also [[RenameInstance]].&lt;br /&gt;
&lt;br /&gt;
RT 3.8 has subject tag option per each queue that can allow you override strings used in subject.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;$SendmailArguments&#039;&#039;&#039; (string) -- To change the return-path, you need to add the -f switch followed by your email address e.g.: &amp;lt;code&amp;gt;-oi -t -f whatever(leftbracket)at(rightbracket)yourdomain.tld&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;$OwnerEmail&#039;&#039;&#039; (email address) - address of RT&#039;s administrator important error messages are send to.&lt;br /&gt;
&lt;br /&gt;
=== Loops prevention ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;$LoopsToRTOwner&#039;&#039;&#039; (boolean) - send or not loops to owner&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;$StoreLoops&#039;&#039;&#039; (boolean) - record message even if it&#039;s loop&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;$RTAddressRegexp&#039;&#039;&#039; (regular expression) - used to prevent RT from ending up in a loop within itself, for example when &#039;&#039;&#039;$ParseNewMessageForTicketCcs&#039;&#039;&#039; is enabled. This can get complicated if there are several names for the server; for this reason, it&#039;s recommended you place your RT email addresses into a namespace such as &amp;lt;code&amp;gt;rt-foo\@example.com&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;rt-bar\@example.com&amp;lt;/code&amp;gt;, etc. to make this as straightforward as possible.&lt;br /&gt;
#See also [[RTAddressRegexp]] which describes how to write this regular expression.&lt;br /&gt;
&lt;br /&gt;
=== Attachments handling ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;$MaxAttachmentSize&#039;&#039;&#039; (int, bytes) - sets the maximum size of attachments stored in the database&lt;br /&gt;
&lt;br /&gt;
$TruncateLongAttachments, &#039;&#039;&#039;$DropLongAttachments&#039;&#039;&#039; (boolean) - truncate or drop long attachments, note that truncation most probably will corrupt binary files, like images, word documents and other.&lt;br /&gt;
&lt;br /&gt;
=== Other options ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;$ParseNewMessageForTicketCcs&#039;&#039;&#039; (boolean) - when &#039;&#039;&#039;$ParseNewMessageForTicketCcs&#039;&#039;&#039; is true, RT automatically adds email addresses found in the Cc header to the ticket&#039;s Cc at creation.&lt;br /&gt;
&lt;br /&gt;
See also [[ParseFollowupMessageForTicketCcs]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;$NotifyActor&#039;&#039;&#039; (boolean) - normally, when someone updates a ticket, etc., email is sent to the apropriate people, excluding the person who performed the action. RT reasons the person knows what they did. If &#039;&#039;&#039;$NotifyActor&#039;&#039;&#039; is set to a true value (e.g. 1, or just about anything but 0 or empty string), the performer of the action will be included in the notifications. Default is false (0).&lt;br /&gt;
&lt;br /&gt;
== RT&#039;s mail gate ==&lt;br /&gt;
&lt;br /&gt;
RT handles its incoming emails with a rt-mailgate script that passes emails over http protocol to a RT&#039;s web server.&lt;br /&gt;
&lt;br /&gt;
Note that the HTTP interface used by mailgate is not protected by default and you &#039;&#039;&#039;must&#039;&#039;&#039; take care of it yourself. Read [[MailGatewayAccessControl]] to understand how to &#039;&#039;&#039;improve security&#039;&#039;&#039; of this interface.&lt;br /&gt;
&lt;br /&gt;
First of all you have to add email aliases for each queue. See the following:&lt;br /&gt;
&lt;br /&gt;
* [[ManualInstallation]]&lt;br /&gt;
* [[Qmail]] - Using Qmail Aliases w/ RT&lt;br /&gt;
* [http://web.archive.org/web/20070703225014/http://www.geert.triple-it.nl/node/rt_procmail.html Using Procmail to deliver RT-mail to queues]&lt;br /&gt;
* [[EximConfig]]&lt;br /&gt;
* [[EximConfigVirtualDomain]]&lt;br /&gt;
* [[PostfixConfig]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Delivering mail without many aliases ===&lt;br /&gt;
&lt;br /&gt;
* [[SendmailWithoutQueueAliases]]&lt;br /&gt;
* [[ConfigEximFromRTDB]]&lt;br /&gt;
&lt;br /&gt;
=== Fetching emails from POP/IMAP/MBOXes ===&lt;br /&gt;
&lt;br /&gt;
The following articles describe several ways to obtain incoming email for RT from POP/IMAP servers or mboxes:&lt;br /&gt;
&lt;br /&gt;
* [[fetchmail]]&lt;br /&gt;
* [[Mbox2Rt]]&lt;br /&gt;
* [[POP3Mailgate]]&lt;br /&gt;
&lt;br /&gt;
=== Mail server is another host ===&lt;br /&gt;
&lt;br /&gt;
You can install the mailgate script on any server that has access by http(s) to a server you&#039;re running RT on. Read [[InstallMailgateOnly]].&lt;br /&gt;
&lt;br /&gt;
=== Handling spam ===&lt;br /&gt;
&lt;br /&gt;
* [[SpamFiltering]]&lt;br /&gt;
&lt;br /&gt;
=== Handling bounces ===&lt;br /&gt;
&lt;br /&gt;
* [[RtBounceHandler]]&lt;br /&gt;
&lt;br /&gt;
=== Other ===&lt;br /&gt;
&lt;br /&gt;
* [[EmailRouting]]&lt;br /&gt;
* [[html2mime]]&lt;br /&gt;
* [[VirtualDomain]]&lt;br /&gt;
* [[MSExchangeRelay]] - Configure Exchange to relay mail to and from RT&lt;br /&gt;
* [[PostFixSQLAliasProblem]] - Problems with alias map in a Postfix SQL database.&lt;br /&gt;
* [[GoogleApps]] - How to configure RT for use with [[GoogleApps]].&lt;br /&gt;
&lt;br /&gt;
= Configuring outgoing email =&lt;br /&gt;
&lt;br /&gt;
== Technical part ==&lt;br /&gt;
&lt;br /&gt;
Outgoing emails can be sent using a command line program (like sendmail) or via SMTP server. It&#039;s recommended to use a robust command line program to avoid penalties. You may read &#039;&#039;&#039;perfomance considerations&#039;&#039;&#039; on [[SendmailTips]] page.&lt;br /&gt;
&lt;br /&gt;
Notifications and other outgoing emails are controlled by [[Scrip]]s. You can change them using the web UI.&lt;br /&gt;
&lt;br /&gt;
== Config ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DESCRIBE ME&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Sending via SMTP server ==&lt;br /&gt;
&lt;br /&gt;
* [[mailx]] - Sending outgoing email from RT to a remote smtp-server instead of a local MTA&lt;br /&gt;
** mailx is a poor option. It will always override your /Content-Type/ headers, and so can&#039;t properly handle email attachments as it will replace the /multipart/mime; boundary=xxxxxx/ header with /text/plain/. -- comment from a user&lt;br /&gt;
* [[msmtp]] is a great option. It&#039;s very easy to use, supports attachments, TLS.&lt;br /&gt;
&lt;br /&gt;
== Configuring notification scrips ==&lt;br /&gt;
&lt;br /&gt;
* [[ManualScrips]] - default set of scrips&lt;br /&gt;
* [[ScripAction]] - basics on creating a new actions&lt;br /&gt;
* [[NotificationsTuning]] - very good article on tuning notifications&lt;br /&gt;
&lt;br /&gt;
== Other ==&lt;br /&gt;
&lt;br /&gt;
* [[MultipleOutgoingEmailAddresses]]&lt;br /&gt;
* [[SuppressOutgoingMail]]&lt;/div&gt;</summary>
		<author><name>Webster</name></author>
	</entry>
</feed>