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

Kevin Falcone falcone at bestpractical.com
Mon Sep 13 11:29:06 EDT 2010

On Thu, Sep 09, 2010 at 12:33:16PM -0400, Bill Kuntz wrote:
> 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.


>     # 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.
>         MIMEObj  => $args{'Message'},
>         LogLevel => 'error'
>     );
> Thanks,
> Bill
> -- 
> Bill Kuntz
> FCLA Open Systems Group
> (352) 392-9020 x 242
> RT Training in Washington DC, USA on Oct 25 & 26 2010
> Last one this year -- Learn how to get the most out of RT!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100913/ff4e0139/attachment.sig>

More information about the rt-users mailing list