Rt-mailgate not working

Hi,

I am testing a new RT 3.8.9 server. rt-mailgate does not work.

Running rt-mailgate manually generated following:
$ echo “test” | /opt/rt3/bin/rt-mailgate --queue general --action correspond
–url http://rt.example.com/ --debug
/opt/rt3/bin/rt-mailgate: temp file is ‘/tmp/GViVd10Ltg’
/opt/rt3/bin/rt-mailgate: connecting to
http://rt.example.com//REST/1.0/NoAuth/mail-gateway
An Error Occurred

302 Found

/opt/rt3/bin/rt-mailgate: undefined server error

In rt.log file, I have following errors:
[Fri Feb 18 23:34:34 2011] [warning]: [Mason] Cannot resolve file to
component: /opt/rt3/error/HTTP_UNAUTHORIZED.html.var (is file outside
component root?) at
/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 852.
(/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm:852)
[Fri Feb 18 23:34:34 2011] [warning]: [Mason] Cannot resolve file to
component: /opt/rt3/error/HTTP_UNAUTHORIZED.html.var (is file outside
component root?) at
/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 852.
(/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm:852)

/opt/rt3/error/HTTP_UNAUTHORIZED.html.var exists in root path for rt3.

Any suggestion on how to solve this problem?

Simon

Changing to use secure http made it working:

rt: "|/opt/rt3/bin/rt-mailgate --debug --queue general --action
correspond --url https://rt.example.com/"
rt-comment: “|/opt/rt3/bin/rt-mailgate --debug --queue general --action
comment --url https://rt.example.com/

However, rt.log logged following errors:
[Sat Feb 19 00:47:07 2011] [warning]: Use of uninitialized value in string
ne at /opt/rt3/bin/…/lib/RT/Rule.pm line 59.
(/opt/rt3/bin/…/lib/RT/Rule.pm:59)

What caused this error?

Is using secure http required for rt-mailgate to work?

Simon

Simon Gao <simon.gao schrodinger.com> writes:

What caused this error?Is using secure http required for rt-mailgate to work?

Simon,

Please install the version of Plack and it should be fixed:

http://search.cpan.org/~miyagawa/Plack-0.9970/

(0.9971 is broken and being fixed, don’t use it!)

Cheers,
CLK