[rt-users] another EX_TEMPFAIL SUMMARY (OK)

Jose A. Fabregas Reyes josea.fabregas at ciemat.es
Fri Feb 13 06:01:16 EST 2004


1) cd /.../rt3/share/html/REST/1.0/NoAuth/
   cp mail-gateway mail-gateway.html

2) cd /.../rt3/bin/
   vi rt-mailgate (change line 443:
my $full_url = $opts{'url'}. "/REST/1.0/NoAuth/mail-gateway";
for this line:
my $full_url = $opts{'url'}. "/REST/1.0/NoAuth/mail-gateway.html";

have a good day

----------------------------------

-----Mensaje original-----
De: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com]En nombre de Jose A.
Fabregas Reyes
Enviado el: miércoles, 11 de febrero de 2004 8:13
Para: rt-users at lists.bestpractical.com
Asunto: [rt-users] another EX_TEMPFAIL



My versions:

  . RedHat 10 (fedora)
  . rt-3-0-8
  . mysql-3.23.58-4
  . httpd-2.0.47-10
  . perl-5.8.1-92
  . mod_perl-1.99_09-10

my rt was working fine, except "rmrsh"; for example mails from outlook or
from unix: always that use rt-mailgate (=> rmrsh). The error in
/var/log/maillog:


[root at webrt2 I18N]# Feb 10 09:44:55 webrt2 sendmail[31831]: i1A8itC2031831:
from=<root at ciemat.es>, size=489, class=0, nrcpts=1,
msgid=<0HSV02Q031MJ7U at hermes.ciemat.es>, proto=ESMTP, daemon=MTA,
relay=hermes.ciemat.es [130.206.11.6]
Feb 10 09:44:55 webrt2 sendmail[31832]: i1A8itC2031831:
to="|/soft/rt3/bin/rt-mailgate --queue \\"Servidores centrales y estaciones
UNIX\\" --action correspond --url http://webrt2.ciemat.es:8080/",
ctladdr=<servidores_y_estaciones at webrt2.ciemat.es> (8/0), delay=00:00:00,
xdelay=00:00:00, mailer=prog, pri=30712, dsn=4.0.0, stat=Deferred: prog
mailer (/usr/sbin/smrsh) exited with EX_TEMPFAIL

If I debug:

cat prueba |/soft/rt3/bin/rt-mailgate --queue general --action
correspond --url http://webrt2.ciemat.es:8080/ --debug
Connecting to http://webrt2.ciemat.es:8080//REST/1.0/NoAuth/mail-gateway at
/soft/rt3/bin/rt-mailgate line 444, <> 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 == -75 ) {
temporary failure
% }
%    elsif ($status == 1) {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 == -75 ) {
temporary failure% }
%    elsif ($status == 1) {
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%>
% }


anybody has any idea? thanks in advance,
_______________________________________________
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