Prevent "Could not load a valid user" email to invalid requestor

We limit ticket creation to uses that are in the RT database. When
someone who is not in the system sends an email, they get the “Could not
load valid user” message back. Additionally the admin user gets the
same message.

We do not want the user to get the message. 99.9% of the time it is
spam with a forged from address.

Can we just copy Email.pm to the local tree, and comment out the
following bit of code, or is there an easier way?
# Also notify the requestor that his request has been dropped.
if ($args{‘Requestor’} ne RT->Config->Get(‘OwnerEmail’)) {
MailError(
To => $args{‘Requestor’},
Subject => “Could not load a valid user”,
Explanation => <<EOT,
RT could not load a valid user, and RT’s configuration does not allow
for the creation of a new user for your email.

EOT
MIMEObj => $args{‘Message’},
LogLevel => ‘error’
);

Thanks,
Bill

Bill Kuntz
FCLA Open Systems Group
(352) 392-9020 x 242

We limit ticket creation to uses that are in the RT database. When
someone who is not in the system sends an email, they get the “Could not
load valid user” message back. Additionally the admin user gets the
same message.

We do not want the user to get the message. 99.9% of the time it is
spam with a forged from address.

Can we just copy Email.pm to the local tree, and comment out the
following bit of code, or is there an easier way?

You want to copy only the subroutine you’re overriding to
Email_Local.pm in the local tree and edit it.

We’ve debated ways to make this more configurable, but nothing has
made it to trunk.

-kevin