[rt-users] Re: rt-mailgate problems
Phillip Knowles
PKnowles at nubridges.com
Fri Apr 2 21:59:53 EST 2004
Here is the error when run from the command line:
[root at rt bin]# perl /opt/rt3/bin/rt-mailgate --queue general --action correspond --url http://rt.nubridges.com --debug < /etc/aliases
Connecting to http://rt.nubridges.com/REST/1.0/NoAuth/mail-gateway at /opt/rt3/bin/rt-mailgate line 403, <> chunk 1.
%# BEGIN LICENSE BLOCK
%#
%# Copyright (c) 1996-2003 Jesse Vincent <jesse at bestpractical.com>
%#
%# (Except where explictly superceded by other copyright notices)
%#
%# This work is made available to you under the terms of Version 2 of
%# the GNU General Public License. A copy of that license should have
%# been provided with this software, but in any event can be snarfed
%# from www.gnu.org.
%#
%# This work is distributed in the hope that it will be useful, but
%# WITHOUT ANY WARRANTY; without even the implied warranty of
%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
%# General Public License for more details.
%#
%# Unless otherwise specified, all modifications, corrections or
%# extensions to this work which alter its source code become the
%# property of Best Practical Solutions, LLC when submitted for
%# inclusion in the work.
%#
%#
%# END LICENSE BLOCK
<%ARGS>
$message
$queue => 1
$action => "correspond"
$ticket => undef
</%ARGS>
<%init>
use RT::Interface::Email;
my ( $status, $error, $Ticket ) = RT::Interface::Email::Gateway( %ARGS);
</%init>
<%flags>
inherit => undef # inhibit UTF8 conversion done in /autohandler
</%flags>
% if ($status) {
ok
% if ( $Ticket->Id ) {
Ticket: <% $Ticket->Id %>
Queue: <% $Ticket->QueueObj->Name %>
Owner: <% $Ticket->OwnerObj->Name %>
Status: <% $Ticket->Status %>
Subject: <% $Ticket->Subject %>
Requestor: <% $Ticket->Requestors->MemberEmailAddressesAsString %>
% }
% } else {
not ok - <%$error%>
% }
RT server error.
The RT server which handled your email did not behave as expected. It
said:
%# BEGIN LICENSE BLOCK
%#
%# Copyright (c) 1996-2003 Jesse Vincent <jesse at bestpractical.com>
%#
%# (Except where explictly superceded by other copyright notices)
%#
%# This work is made available to you under the terms of Version 2 of
%# the GNU General Public License. A copy of that license should have
%# been provided with this software, but in any event can be snarfed
%# from www.gnu.org.
%#
%# This work is distributed in the hope that it will be useful, but
%# WITHOUT ANY WARRANTY; without even the implied warranty of
%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
%# General Public License for more details.
%#
%# Unless otherwise specified, all modifications, corrections or
%# extensions to this work which alter its source code become the
%# property of Best Practical Solutions, LLC when submitted for
%# inclusion in the work.
%#
%#
%# END LICENSE BLOCK
<%ARGS>
$message
$queue => 1
$action => "correspond"
$ticket => undef
</%ARGS>
<%init>
use RT::Interface::Email;
my ( $status, $error, $Ticket ) = RT::Interface::Email::Gateway( %ARGS);
</%init>
<%flags>
inherit => undef # inhibit UTF8 conversion done in /autohandler
</%flags>
% if ($status) {
ok
% if ( $Ticket->Id ) {
Ticket: <% $Ticket->Id %>
Queue: <% $Ticket->QueueObj->Name %>
Owner: <% $Ticket->OwnerObj->Name %>
Status: <% $Ticket->Status %>
Subject: <% $Ticket->Subject %>
Requestor: <% $Ticket->Requestors->MemberEmailAddressesAsString %>
% }
% } else {
not ok - <%$error%>
% }
Thanks
Phillip
-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com]On Behalf Of Phil
Homewood
Sent: Thursday, April 01, 2004 6:00 PM
To: rt-users at lists.fsck.com
Subject: Re: [rt-users] Re: rt-mailgate problems
Phillip Knowles wrote:
> Apr 1 20:22:39 rt sendmail[9001]: i321Mcv8009000:
> to="|/opt/rt3/bin/rt-mailgate --queue general --action correspond --url
> http://rt.nubridges.com/", ctladdr=<rt at rt.nubridges.com> (8/0),
> delay=00:00:01, xdelay=00:00:01, mailer=prog, pri=31970, dsn=5.3.0,
> stat=unknown mailer error 255
What happens when you try running the mailgate from the
command line?
_______________________________________________
rt-users mailing list
rt-users at lists.bestpractical.com
http://lists.bestpractical.com/mailman/listinfo/rt-users
Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
More information about the rt-users
mailing list