[rt-users] Prevent "Could not load a valid user" email to invalid requestor

Bill Kuntz wkuntz at ufl.edu
Thu Sep 9 12:33:16 EDT 2010


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





More information about the rt-users mailing list