Problems with mail interface (fresh install)

Hello,

I’ve just installed fresh instance of request tracker on one box, and
I have this problem with e-mail ticket creation interface:

echo test|/var/www/rt.ikarnet.pl/rt-3.6.3/bin/rt-mailgate --url http://rt.ikarnet.pl/ --debug --action correspond
Connecting to http://rt.ikarnet.pl//REST/1.0/NoAuth/mail-gateway at /var/www/rt.ikarnet.pl/rt-3.6.3/bin/rt-mailgate line 100, <> line 1.
not ok - Could not load a valid user at /var/www/rt.ikarnet.pl/rt-3.6.3/bin/rt-mailgate line 109, <> line 1.

I found another error on apache log:
[Sat Jan 6 21:50:44 2007] [error]: Could not record email: Could not load a valid user (/var/www/rt.ikarnet.pl/htdocs/rt/REST/1.0/NoAuth/mail-gateway:73)

I spend few hours googling and trying what is the cause of problem,
but I got nothing :frowning:

Anyone can help?

Jakub Drwal
Studencki Klub Sieci Komputerowych IkarNet
http://IkarNet.pl

Hello Jakub

I’m sorry for the confusion, I’m subscribed to this list since 1/10/07
and the original question was postet four days before. That’s why I’m
faking this reply :wink:

Jakub Drwal wrote:
[…]

echo test|/var/www/rt.ikarnet.pl/rt-3.6.3/bin/rt-mailgate --url
http://rt.ikarnet.pl/ --debug --action correspond

You have to specify to which queue you’re writing to, haven’t you?
Try to add “–queue general” to your command or instead of “general” use
the name of the queue u wish to write an email to.

[…]

I found another error on apache log:
[Sat Jan 6 21:50:44 2007] [error]: Could not record email: Could not
load a valid user
(/var/www/rt.ikarnet.pl/htdocs/rt/REST/1.0/NoAuth/mail-gateway:73)

I’ve had the same problem like you (at least I had the same apache
error). But there was additional information in my apache error log. In
my case the lines above the line you posted said the following:
— error log output —
[Wed Jan 17 15:08:05 2007] [error]: RT could not load a valid user, and
RT’s configuration does not allow
for the creation of a new user for this email (s3@testtk.switch.ch).

You might need to grant ‘Everyone’ the right ‘CreateTicket’ for the
queue install. (/opt/switch/rt-3.6.1/lib/RT/Interface/Email.pm:241)
[Wed Jan 17 15:08:05 2007] [error]: RT could not load a valid user, and
RT’s configuration does not allow
for the creation of a new user for your email.
(/opt/switch/rt-3.6.1/lib/RT/Interface/Email.pm:241)
— end —

Log in to your RT website as root and grant the group “Everyone” the new
right to “CreateTickets” in your queue.
on the website follow these buttons: Configuration > Queues >
“name-of-your-queue” > Group Rights

Anyone can help?

I hope one of my two hints help you.

Thomas