Error with rt-mailgate

Hi,

I’m trying to create a ticket from the command line with:

echo "test" | /opt/rt4/bin/rt-mailgate --no-verify-ssl --queue alerts --action correspond --url https://rt.server.com --debug

But I get this missage. anybody know what’s the exactly problem?

/opt/rt4/bin/rt-mailgate: temp file is '/tmp/OQ3getqqIc/bOGYmQsQRq'
/opt/rt4/bin/rt-mailgate: connecting to https://rt.server.com/REST/1.0/NoAuth/mail-gateway

<%flags>
inherit => undef # inhibit UTF8 conversion done in /autohandler
</%flags>
<%ARGS>
$queue => 1
$action => "correspond"
$ticket => undef
</%ARGS>
<%init>
$m->callback( %ARGS, CallbackName => 'Pre' );
use RT::Interface::Email;
$r->content_type('text/plain; charset=utf-8');
$m->error_format('text');
my ( $status, $error, $Ticket ) = RT::Interface::Email::Gateway( \%ARGS );
if ( $status == 1 ) {
  $m->out("ok\n");
  if ( $Ticket && $Ticket->Id ) {
    $m->out( 'Ticket: '  . ($Ticket->Id             || '') . "\n" );
    $m->out( 'Queue: '   . ($Ticket->QueueObj->Name || '') . "\n" );
    $m->out( 'Owner: '   . ($Ticket->OwnerObj->Name || '') . "\n" );
    $m->out( 'Status: '  . ($Ticket->Status         || '') . "\n" );
    $m->out( 'Subject: ' . ($Ticket->Subject        || '') . "\n" );
    $m->out(
      'Requestor: ' . ($Ticket->Requestors->MemberEmailAddressesAsString || '') . "\n" );
  }
}
else {
  if ( $status == -75 ) {
    $m->out( "temporary failure - $error\n" );
  }
  else {
    $m->out( "not ok - $error\n" );
  }
}
$m->abort();
</%init>

RT server error.

The RT server which handled your email did not behave as expected. It
said:

<%flags>
inherit => undef # inhibit UTF8 conversion done in /autohandler
</%flags>
<%ARGS>
$queue => 1
$action => "correspond"
$ticket => undef
</%ARGS>
<%init>
$m->callback( %ARGS, CallbackName => 'Pre' );
use RT::Interface::Email;
$r->content_type('text/plain; charset=utf-8');
$m->error_format('text');
my ( $status, $error, $Ticket ) = RT::Interface::Email::Gateway( \%ARGS );
if ( $status == 1 ) {
  $m->out("ok\n");
  if ( $Ticket && $Ticket->Id ) {
    $m->out( 'Ticket: '  . ($Ticket->Id             || '') . "\n" );
    $m->out( 'Queue: '   . ($Ticket->QueueObj->Name || '') . "\n" );
    $m->out( 'Owner: '   . ($Ticket->OwnerObj->Name || '') . "\n" );
    $m->out( 'Status: '  . ($Ticket->Status         || '') . "\n" );
    $m->out( 'Subject: ' . ($Ticket->Subject        || '') . "\n" );
    $m->out(
      'Requestor: ' . ($Ticket->Requestors->MemberEmailAddressesAsString || '') . "\n" );
  }
}
else {
  if ( $status == -75 ) {
    $m->out( "temporary failure - $error\n" );
  }
  else {
    $m->out( "not ok - $error\n" );
  }
}
$m->abort();
</%init>

thanks!