Rt-mailgate problem

I have set up rt-3-0-beta-2 (or rt-2-1-75 ) on a Solaris 9 box. This
installation is working fine with mysql.
I am trying to test the functionality which allows creation of new tickets
via an email. It doesn’t
seem to work.

I am running sendmail and RT on the same server for ease. In my
/etc/mail/aliases file i have got these entries

rt: "|/opt/rt3/bin/rt-mailgate --queue general -action correspond
–url http://localhost/ "
rt-comment: “|/opt/rt3/bin/rt-mailgate --queue general --action comment
–url http://localhost/

I have given Everyone pseudo group permission to create ticket to queue
general.

The sendmail works fine as i can send mail otherwise. But mail sent to rt
doesn’t create a new ticket.

On testing , I get the following error

bash-2.05$ cat ./test

From root@localhost Fri Feb 28 15:33:13 2003
Message-Id: 200302280533.h1S5XDeb006125@localhost
Content-Length: 99

Internet host table

127.0.0.1 localhost

bash-2.05$cat ./test | /opt/rt3/bin/rt-mailgate --queue general --url
http://localhost/ --debug
Connecting to http://localhost//REST/1.0/NoAuth/mail-gateway at
/opt/rt3/bin/rt-mailgate line 158, <> chunk 1.
An Error Occurred

405 Method Not Allowed
This is /opt/rt3/bin/rt-mailgate exiting because of an undefined server
error at /opt/rt3/bin/rt-mailgate line 200, <> chunk 1.

Can anyone Help !!

Rupinder Gill wrote:

rt: "|/opt/rt3/bin/rt-mailgate --queue general -action correspond
–url http://localhost/ "

“-action” should be “–action”.
�|� Request Tracker... So much more than a help desk — Best Practical Solutions – Trouble Ticketing. Free.

Sorry ! That was a typo in my email. The actual entry is --action.

Phil Homewood pdh@bestpractical.com
Sent by: rt-users-admin@lists.fsck.com
02/27/2003 10:53 PMTo: rt-users@lists.fsck.com
cc:
Subject: Re: [rt-users] rt-mailgate problem

Rupinder Gill wrote:

rt: "|/opt/rt3/bin/rt-mailgate --queue general -action
correspond
–url http://localhost/ "

“-action” should be “–action”.
»|« Request Tracker... So much more than a help desk — Best Practical Solutions – Trouble Ticketing. Free.
rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

Hi, i have problems with the rt-mailgate problem
Running RedHat9, tried with rt-3.0.1 and rt-3.0.2pre6, DBIx-SearchBuilder-0.80 and 0.81
Apache 2.0.40 with mod_perl-1.99
RT is running fine with the web-interface but get the following error when i try to use the
rt-mailgate the error is the same when i use the aliases with postfix and commandline when i pipe
an email to the rt-mailgate

cat /tmp/1 |/usr/local/rt/bin/rt-mailgate --queue ITems --action correspond --url http://rt.support.items.nl/
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@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%>
% }

  • Mike

I am not now, nor have I ever been, a member of the demigodic party.
– Dennis Ritchie

Ok I know that i’m replying to myself, but i found the error what has
caused this.

It was a misconfiguration of my apache 2.
In Apache 2 you must have the following entries in the httpd.conf
<FilesMatch “.html$”>
SetHandler perl-script
PerlHandler RT::Mason

<LocationMatch “/REST/”>
SetHandler perl-script
PerlHandler RT::Mason

<LocationMatch “/Attachment/”>
SetHandler perl-script
PerlHandler RT::Mason

If you try to fetch with a browser
http:///REST/1.0/NoAuth/mail-gateway
and get only text on your screen, your apache is configured wrong.
If instead you get an MASON error, it is probably configured the right way.

Hi !

I’m encountering following problem on rt-3-0-4.
I don’t open tickets via mail.
I got below messages

"Sep 2 00:23:42 itac RT: Permission Denied (/opt/rt3/lib/RT/Interface/Email.pm:615) "

Please help me !

Thanks in advance.

Regards,
Han

Hi !

I’m encountering following problem on rt-3-0-4.
I don’t open tickets via mail.
I got below messages

"Sep 2 00:23:42 itac RT: Permission Denied (/opt/rt3/lib/RT/Interface/Email.pm:615) "

Please help me !

Thanks in advance.

Regards,
Han


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

Make sure your MTA has permissions to deliver mail to RT’s mailgate.

As far as I remenber you need SMRSH for sendmail, and or setuid-perl for
other MTA’s

Cheers, rhb

Hi Rasmus,

Thank you for your help !
You are right, That is a setuid-perl problem. I fixed it according to FAQ.

Thanks
Regards,
han-----Original Message-----
From: rt-users-admin@lists.fsck.com [mailto:rt-users-admin@lists.fsck.com]On Behalf Of Rasmus Br?ger
Sent: Tuesday, September 02, 2003 5:28 AM
To: Hangu Jeong
Cc: rt-users@lists.fsck.com
Subject: Re: [rt-users] rt-mailgate problem

On Tue, Sep 02, 2003 at 12:31:47AM +0900, Hangu Jeong wrote:

Hi !

I’m encountering following problem on rt-3-0-4.
I don’t open tickets via mail.
I got below messages

"Sep 2 00:23:42 itac RT: Permission Denied (/opt/rt3/lib/RT/Interface/Email.pm:615) "

Please help me !

Thanks in advance.

Regards,
Han


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

Make sure your MTA has permissions to deliver mail to RT’s mailgate.

As far as I remenber you need SMRSH for sendmail, and or setuid-perl for
other MTA’s

Cheers, rhb
rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm