[rt-users] RT-2.0.10 : rt-mailgate with external data source.

Matthew Kalastro mkalastro at soe.ucsc.edu
Wed Jan 16 15:02:44 EST 2002


Hi Kristopher,

I found the problem wasn't with the code in config.pm (which you've got to
modify for the external lookup anyway), but with rt-mailgate.  Here's the
changed code I use in my rt-mailgate (2.0.8).

# {{{ If we require that the sender be found in an external DB and they're not
# forward this message to RTOwner
# modified by mkalastro at soe.ucsc.edu

my @ExternalUserInfo = &RT::LookupExternalUserInfo
    ( $CurrentUser -> UserObj -> EmailAddress,
     $CurrentUser -> UserObj -> RealName );
my $FoundUser = shift @ExternalUserInfo;

if ( $RT::LookupSenderInExternalDatabase &&
    $RT::SenderMustExistInExternalDatabase &!
    $FoundUser )  {

    MailError(To => $RT::OwnerEmail,
              Subject => "RT Bounce: $Subject",
              Explanation => "RT couldn't find requestor via its external datab\
ase lookup",
              MIMEObj => $entity);

}

# }}}

On 1/16/02 at 12:39pm, Kristopher Lalletti <kris at eclipseci.com> wrote:

|I'm trying to get rt-mailgate to work with an external data source
|defined in my config.pm.
|
|Here's what I have, notice that I'm using the stock configuration, and
|sending email from a valid email address, and I still get the error "RT
|couldn't find requestor via its external database lookup".

--
Matthew Kalastro
Webmaster
Baskin School of Engineering
Baskin Engineering 138
Univ. of Calif., Santa Cruz
1156 High St.
Santa Cruz, CA 95060
(831) 459-5354




More information about the rt-users mailing list