Yet another mailgate problem: Could not load a valid user

Hi All,

I have found alot of entries on google and this mailling list specifing
problems with mailgate. Most of them where solved with setting the
permissions on the queue and thats it.

I have the same problem but this time I have added all permissions so
everyone can do what they want (Just for debugging)

Anyway, if I create a ticket with:

export RTSERVER=http://myhost/rt3/

rt create -t ticket

I get an vi and is able to create tickets.

But if I do a http://myhost/rt3/REST/1.0/NoAuth/mail-gateway all I get
is “not ok - Could not load a valid user”. I have traced the error
message to mail-gateway line 73 and back to
RT::Interface::email::Gateway and for some reason the $CurrentUser is
empty. Now, I connect as a anonymous web user and have set the paremeter
in RT_SiteConfig.pm to Set($WebExternalAuto , 1); (But no user is
created) and I have even tried to setup $WebExternalAuth and
$WebFallbackToInternalAuth

My log file:

[SNIP]
[Wed May 16 08:48:52 2007] [warning]: Encode::Guess failed: ; fallback
to iso-8859-1 (/usr/local//lib/RT/I18N.pm:414)
[Wed May 16 08:48:52 2007] [warning]: Encode::Guess failed: ; fallback
to iso-8859-1 (/usr/local//lib/RT/I18N.pm:414)
[Wed May 16 08:48:52 2007] [error]: Could not record email: Could not
load a valid user
(/usr/local/share/html/REST/1.0/NoAuth/mail-gateway:73)

Running with rt-3.6.3 and sendmail 8.13 on Fedora 6 (and its installed
by and and make testdeps is not missing any dependencies)

Hope someone can shed some light on this, thanks :slight_smile:

Best regards
Kim

Hi All,

I have found alot of entries on google and this mailling list
specifing
problems with mailgate. Most of them where solved with setting the
permissions on the queue and thats it.

I have the same problem but this time I have added all permissions so
everyone can do what they want (Just for debugging)

Anyway, if I create a ticket with:

export RTSERVER=http://myhost/rt3/

rt create -t ticket

I get an vi and is able to create tickets.

But if I do a http://myhost/rt3/REST/1.0/NoAuth/mail-gateway all I get
is “not ok - Could not load a valid user”. I have traced the error
message to mail-gateway line 73 and back to
RT::Interface::email::Gateway and for some reason the $CurrentUser is
empty. Now, I connect as a anonymous web user and have set the
paremeter
in RT_SiteConfig.pm to Set($WebExternalAuto , 1); (But no user is
created) and I have even tried to setup $WebExternalAuth and
$WebFallbackToInternalAuth

What rights have you granted ‘Everybody’ and ‘Unprivileged’?

PGP.sig (186 Bytes)

What rights have you granted ‘Everybody’ and ‘Unprivileged’?

Yes everyone should be able to create a ticket … Just not through the
link I posted :frowning: