RT3, automatic created users

Hi.

I’ve just installed RT3 (with mysql, perl 5.6.1 and mod_perl 1.x).
I have a running RT2 instance, from which I transferred the settings.

Now I’ve got a little problem: Users who exist in RT can create tickets
via mail, but users who do not exist cannot do so.

I have looked through the config file multiple times, but did not find
anything. Maybe you see the problem with the config file that follows
below.

Another thing I found is in RT.pm:

=item LoadConfig

Load RT’s config file. First, go after the core config file.
After that, try to load the vendor config.
After that, go after the site config.

=cut

sub LoadConfig {
local *Set = sub { $[0] = $[1] unless defined $_[0] };
if ( -f “$SITE_CONFIG_FILE” ) {
require $SITE_CONFIG_FILE
|| die (“Couldn’t load RT config file ‘$SITE_CONFIG_FILE’\n$@”);
}
require $CORE_CONFIG_FILE
|| die (“Couldn’t load RT config file ‘$CORE_CONFIG_FILE’\n$@”);
RT::I18N->Init;
}

Either I am totally confused here, or the code snippet does not what the
POD comment above says: it loads SITE_CONFIG first and then overwrite the
settings with CORE_CONFIG. Shouldn’t it be vice versa?

Back to my first problem: I did not create RT_SiteConfig.pm, but changed
the settings in RT_Config.pm because of the code snippet above. So if that
code is wrong, my problem is not caused by that code.

Here is my config file:

package RT;
Set($rtname , “example.com”);
Set($Organization , “example.com”);
Set($MinimumPasswordLength , “6”);
Set($Timezone , ‘CET’);
Set($DatabaseType , ‘mysql’);
Set($DatabaseHost , ‘localhost’);
Set($DatabaseRTHost , ‘localhost’);
Set($DatabasePort , ‘’);
Set($DatabaseUser , ‘rt3’);
Set($DatabasePassword , ‘passssswoooord’);
Set($DatabaseName , ‘rt3’);
Set($DatabaseRequireSSL , undef);
Set($OwnerEmail , ‘rtowner@example.com’);
Set($LoopsToRTOwner , 1);
Set($StoreLoops , undef);
Set($MaxAttachmentSize , 10000000);
Set($TruncateLongAttachments , undef);
Set($DropLongAttachments , 1);
Set($ParseNewMessageForTicketCcs , undef);
Set($RTAddressRegexp , ‘@example.com$’);
Set($CanonicalizeEmailAddressMatch , ‘subdomain.example.com$’);
Set($CanonicalizeEmailAddressReplace , ‘example.com’);
Set($SenderMustExistInExternalDatabase , undef);
Set($CorrespondAddress , ‘general-correspond@example.com’);
Set($CommentAddress , ‘general-comment@example.com’);
Set($MailCommand , ‘sendmailpipe’);
Set($SendmailArguments , “-oi -t”);
Set($SendmailPath , “/usr/sbin/sendmail”);
Set($UseFriendlyToLine , 1);
Set($NotifyActor, 0);
Set($LogToSyslog , ‘debug’);
Set($LogToScreen , ‘error’);
Set($LogToFile , undef);
Set($LogToFileNamed , “$LogDir/rt.log”); #log to rt.log..
Set($WebPath , “”);
Set($WebBaseURL , “http://example.com”);
Set($WebURL , $WebBaseURL . $WebPath . “/”);
Set($WebImagesURL , $WebURL . “NoAuth/images/”);
Set($LogoURL , $WebImagesURL . “rt.jpg”);
Set($TrustHTMLAttachments , undef);
Set($WebExternalAuth , undef);
Set($WebFallbackToInternalAuth , undef);
Set($WebExternalGecos , undef);
Set($WebExternalAuto , undef);
@EmailInputEncodings = qw(utf-8 iso-8859-15 iso-8859-1 us-ascii) unless
(@EmailEncodings);
Set($EmailOutputEncoding , ‘utf-8’);
Set($DateDayBeforeMonth , 1);
Set($AmbiguousDayInPast , 1);
1;

One thing I am sure about is the “LookupSenderInExternalDatabase” option.
It is only mentioned in this comment:

If $SenderMustExistInExternalDatabase is true, RT will refuse to

create non-privileged accounts for unknown users if you are using

the “LookupSenderInExternalDatabase” option.

Instead, an error message will be mailed and RT will forward the

message to $RTOwner.

but I did not find it in the original config file or in the draft manual.

TIA for your help.

Best regards,
Matthias

Hi.

I’ve just installed RT3 (with mysql, perl 5.6.1 and mod_perl 1.x).
I have a running RT2 instance, from which I transferred the settings.

Now I’ve got a little problem: Users who exist in RT can create tickets
via mail, but users who do not exist cannot do so.

I recently noticed (and posted a solution to) the same sort of thing:

http://lists.fsck.com/pipermail/rt-users/2003-March/012631.html
http://lists.fsck.com/pipermail/rt-users/2003-March/012633.html

As noted in that second link, the documentation is certainly misleading in
this regard.

Chris

Hi,

I’d agree - the documentation is a bit misleading for those of us who are new
to RT. I managed to figure out that the problem lies within the global/queue
group permissions. Easy fix … though, did have me befuddled. I guess RT is
so robust, that it’s easy to get lost - though, a great product.

Regards,
Phillip Jackson

Webmail by The Artery Studio - Your creative pulse. ™
Online @ www.arterystudio.com

Hi,

I have a similar Problem, not beeing able to fix yet:
I send a reply/comment including a not yet known eMail-address in the
CCs. if someone tries to reply to that i also get ‘Could not load a
valid User’ even if everyone has the right to Create, Reply and Comment
on Ticket in the particular Queue.

Maybe RT should create users for that Cc and AdminCc entrys as well?

lG uk
Ulrich Kiermayr Zentraler Informatikdienst der Universitaet Wien
Network Security Universitaetsstrasse 7, 1010 Wien, Austria
eMail: ulrich.kiermayr@univie.ac.at Tel: (+43 1) 4277 / 14104
Hotline: security.zid@univie.ac.at Fax: (+43 1) 4277 / 9140
GPG Key fingerprint = BF0D 5749 4DC1 ED74 AB67 7180 105F 491D A8D7 64D8