External database lookup failing in rt-mailgate

Hiya,

I’ve set $LookupSenderInExternalDatabase and $SenderMustExistInExternalDatabase
to 1 in my config.pm. I’m using the stock LookupExternalUserInfo subroutine
(the one that always returns 1, and the user info from the email). But I keep
getting

RT couldn't find requestor via its external database lookup

error messages, and no new messages in the targeted queue. If I turn off
$LookupSenderInExternalDatabase and $SenderMustExistInExternalDatabase the
messages get entered fine.

What am I missing? Any help appreciated.

Thanks,
Matthew

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

I fixed this problem in rt-mailgate (2.0.8), so I’m sending along the patch.
This is to enable rt-mailgate to lookup users with &RT::LookupExternalUserInfo ,
and only create new tickets for found users.

58a59

my @ExternalUserInfo;
192,195c193,202
< MailError(To => $RT::OwnerEmail,
< Subject => “RT Bounce: $Subject”,
< Explanation => “RT couldn’t find requestor via its external databa
se lookup”,
< MIMEObj => $entity);
my $found;
($found, @ExternalUserInfo) = &RT::LookupExternalUserInfo
($CurrentUser->UserObj->EmailAddress,$CurrentUser->UserObj->RealName);

unless ($found) {
  MailError(To => $RT::OwnerEmail,
            Subject => "RT Bounce: $Subject",
            Explanation => "RT couldn't find requestor via its external da

tabase lookup",

            MIMEObj => $entity);
}

|Hiya,
|
|I’ve set $LookupSenderInExternalDatabase and $SenderMustExistInExternalDatabase
|to 1 in my config.pm. I’m using the stock LookupExternalUserInfo subroutine
|(the one that always returns 1, and the user info from the email). But I keep
|getting
|
| RT couldn’t find requestor via its external database lookup
|
|error messages, and no new messages in the targeted queue. If I turn off
|$LookupSenderInExternalDatabase and $SenderMustExistInExternalDatabase the
|messages get entered fine.

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