E.3. Incoming Mail Gateway Configuration

 < Day Day Up > 


$OwnerEmail

OwnerEmail is the address of a human who manages RT. RT sends errors generated by the mail gateway to this address. This address should not be an address that's managed by your RT instance.

 Set($OwnerEmail, 'root'); 


$LoopsToRTOwner

If $LoopsToRTOwner is defined, RT sends mail that it believes might be a loop to $RT::OwnerEmail.

 Set($LoopsToRTOwner, 1); 


$StoreLoops

If $StoreLoops is defined, RT records messages that it believes to be part of mail loops. As it does this, it tries to be careful not to send mail to the sender of these messages.

 Set($StoreLoops, undef); 


$MaxAttachmentSize

$MaxAttachmentSize sets the maximum size (in bytes) of attachments stored in the database.

For MySQL and Oracle, we set this size at 10 megabytes. If you're running a Postgres version earlier than 7.1, you need to drop this to 8192. (8k)

 Set($MaxAttachmentSize, 10000000); 


$TruncateLongAttachments

$TRuncateLongAttachments: if this is set to a non-undef value, RT truncates attachments longer than MaxAttachmentSize.

 Set($TruncateLongAttachments, undef); 


$DropLongAttachments

$DropLongAttachments: if this is set to a non-undef value, RT silently drops attachments longer than MaxAttachmentSize.

 Set($DropLongAttachments, undef); 


$ParseNewMessageForTicketCCs

If $ParseNewMessageForTicketCcs is true, RT attempts to divine ticket Cc watchers from the To and Cc lines of incoming messages. Be forewarned that if you have any addresses that forward mail to RT automatically, and you enable this option without modifying RTAddressRegexp below, you will get yourself into a heap of trouble.

 Set($ParseNewMessageForTicketCcs, undef); 


$RTAddressRegexp

$RTAddressRegexp makes sure RT doesn't add itself as a ticket Cc if the setting above is enabled.

 Set($RTAddressRegexp, '^rt\@example.com$'); 


$CanonicalizeEmailAddressMatch and $CanonicalizeEmailAddressReplace

RT provides functionality that allows the system to rewrite incoming email addresses. In its simplest form, you can substitute the value in $CanonicalizeEmailAddressReplace for whatever the value is in $CanonicalizeEmailAddressMatch. These values are passed to the CanonicalizeEmailAddress subroutine in RT/User.pm. By default, that routine performs a s/Match/Replace/gi on any address passed to it.

     Set($CanonicalizeEmailAddressMatch, '@subdomain\.example\.com$');     Set($CanonicalizeEmailAddressReplace, '@example.com'); 


$CanonicalizeOnCreate

If this is true, the page to create a new user passes the values that you enter in the form through the CanonicalizeUserInfo function in User_Local.pm.

     Set($CanonicalizeOnCreate, 0); 


$SenderMustExistInExternalDatabase

If you are using the LookupSenderInExternalDatabase option, and $SenderMustExistInExternalDatabase is true, RT refuses to create non-privileged accounts for unknown users. Instead, RT mails an error message and forwards the message to $RTOwner.

If you are not using $LookupSenderInExternalDatabase, this option has no effect.

If you define an AutoRejectRequest template, RT uses this template for the rejection message.

     Set($SenderMustExistInExternalDatabase, undef); 

     < Day Day Up > 


    RT Essentials
    RT Essentials
    ISBN: 0596006683
    EAN: 2147483647
    Year: 2005
    Pages: 166

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net