[rt-users] 405 Method not allowed when testing rt-mailgate

Arthur Watts a.watts at cqu.edu.au
Sat Jun 14 20:07:04 EDT 2003


Hi,

     Further to my previous post ('Sendmail problems - EXIT_TEMPFAIL
with rt3 mailgate' ), I am getting bounced when I try to run the
rt-mailgate test script :

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Connecting to http://xxxx.xxxx.xxx/rt3/REST/1.0/NoAuth/mail-gateway at
/usr/local/rt3/bin/rt-mailgate line 158, <> chunk 1.
An Error Occurred
=================

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

     This is the explanation I found for this httpd error :
-------------------------------------------------------
10.4.6 405 Method Not Allowed 
The method specified in the Request-Line is not allowed for the resource
identified by the Request-URI. 
The response MUST include an Allow header containing a list of valid
methods for the requested resource. 
--------------------------------------------------------

     This is the script I am using, as per rt-mailgate's own tests :
-------------------------------------------------------
open(MAIL, "|/usr/local/${RT}/bin/rt-mailgate --debug --url ${URL}
--queue general --action correspond") || die "Unable to start process";
print MAIL <<EOF;
From: a.watts\@cqu.edu.au
To: icom-webmaster\@xxx.xxx.xxx
Subject: This is a test of new ticket creation

test only - please ignore
EOF
close (MAIL);
--------------------------------------------------------

      This script works *fine* for RT2 : it only fails when I change my
'RT' value and 'URL' to the rt3 values. I am increasingly convinced that
it is something blindingly simple in my config, but I am at a loss as to
just what that something is - Apache is running as the same user, and
the stanza for rt3 is identical to the one which was there for rt2 :

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Alias /rt3 /usr/local/rt3/share/html
  Alias /NoAuth /usr/local/rt3/share/html/NoAuth
  AddDefaultCharset UTF-8

  PerlModule Apache::DBI
  # Will reinstate when I can stop RT2 ... AJW
  PerlRequire /usr/local/rt3/bin/webmux.pl

  <Location /rt3>
    SetHandler perl-script
    PerlHandler RT::Mason
  </Location>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

     Any assistance/suggestions most appreciated.

Cheers,

Artie

Arthur Watts (a.watts at cqu.edu.au) 

Web Developer

Faculty of Informatics and Communication | Central Queensland University
| Rockhampton, Australia 




More information about the rt-users mailing list