Problem with rt-mailgate

Hi,

I have a problem with the rt-mailgate script, I can’t get it to work.

System setup:
FreeBSD 6.2-RELEASE (hostname telnix03.tele.loc)
RT 3.6.5 (installed according to
http://wiki.bestpractical.com/view/ManualInstallation with
–prefix=/storage/rt)
Perl 5.8.8
Apache 1.3.39 + mod_perl
Postfix 2.4.5

I get the following error in my maillog:
Oct 24 17:28:24 telnix03 postfix/local[65653]: C485E108E51: to=<
rt@telnix03.tele.loc>, relay=local, delay=11, delays=10/0/0/0.32, dsn=4.3.0,
status=deferred (temporary failure. Command output: RT server error. The RT
server which handled your email did not behave as expected. It said: Can’t
locate object method “seek” via package “File::Temp” at
/usr/local/lib/perl5/site_perl/5.8.8/MIME/Parser.pm line 816, line
13. Stack: [/usr/local/lib/perl5/site_perl/5.8.8/MIME/Parser.pm:816]
[/usr/local/lib/perl5/site_perl/5.8.8/MIME/Parser.pm:1083]
[/usr/local/lib/perl5/site_perl/5.8.8/MIME/Parser.pm:1177]
[/usr/local/lib/perl5/site_perl/5.8.8/MIME/Parser.pm:1150]
[/storage/rt/lib/RT/EmailParser.pm:231]
[/storage/rt/lib/RT/EmailParser.pm:179]
[/storage/rt/lib/RT/EmailParser.pm:139]
[/storage/rt/lib/RT/Interface/Email.pm:549]
[/storage/rt/share/html/REST/1.0/NoAuth/mail-gateway:61] )

The mail aliases is set up this way:
rt: "|/storage/rt/bin/rt-mailgate --queue general --action correspond --url
https://apps.teleresurs.se/rt"
rt-comment: “|/storage/rt/bin/rt-mailgate --queue general --action comment
–url https://apps.teleresurs.se/rt

The VirtualHost in httpd.conf is done this way:
Alias /rt "/storage/rt/share/html"
PerlModule Apache::DBI
PerlRequire /storage/rt/bin/webmux.pl
<Directory /storage/rt/share/html>
AllowOverride All
Options ExecCGI FollowSymLinks

Order allow,deny
Allow from all


<Location /rt>
RewriteEngine On
RedirectMatch permanent (.*)/$ $1/index.html
AddDefaultCharset UTF-8
SetHandler perl-script
PerlHandler RT::Mason

The Web interface works great if you visit
https://apps.teleresurs.se/rtwith a browser. I get the same error if I
use regular http, so it’s not the
SSL.

Any input is much appreciated, thank you!

Best regards,
Fredrik Poller

Hi,

Hi,

I have a problem with the rt-mailgate script, I can’t get it to work.

I get the following error in my maillog:
Oct 24 17:28:24 telnix03 postfix/local[65653]: C485E108E51: to=<
rt@telnix03.tele.loc>, relay=local, delay=11, delays=10/0/0/0.32, dsn=4.3.0,
status=deferred (temporary failure. Command output: RT server error. The RT
server which handled your email did not behave as expected. It said: Can’t
locate object method “seek” via package “File::Temp” at
/usr/local/lib/perl5/site_perl/5.8.8/MIME/Parser.pm line 816, line
13. Stack: [/usr/local/lib/perl5/site_perl/5.8.8/MIME/Parser.pm:816]
[/usr/local/lib/perl5/site_perl/5.8.8/MIME/Parser.pm:1083]
[/usr/local/lib/perl5/site_perl/5.8.8/MIME/Parser.pm:1177]
[/usr/local/lib/perl5/site_perl/5.8.8/MIME/Parser.pm:1150]
[/storage/rt/lib/RT/EmailParser.pm:231]
[/storage/rt/lib/RT/EmailParser.pm:179]
[/storage/rt/lib/RT/EmailParser.pm:139]
[/storage/rt/lib/RT/Interface/Email.pm:549]
[/storage/rt/share/html/REST/1.0/NoAuth/mail-gateway:61] )

Looks like the ‘File::Temp’ perl module is either not installed, Is not the
correct version or has had a sense of humor failure.
You could try installing the most recent release from cpan by running ‘cpan
install File::Temp’ and follow the on-screen prompts.

Hope this helps.
Huw

s2s company email disclaimer : http://www.s2s.ltd.uk/datasheets/email_disclaimer.pdf
s2s company registration number : 3952958
s2s VAT registration number : GB763132055
Business premises : Ground Floor, Overline House, Crawley, West Sussex, RH10 1JA
Registered address : 29 High Street, Crawley, West Sussex, RH10 1BQ
Place of registration : England

Hi,

Thanks for your reply.

I did what you suggested but i still get the same error.

[root@telnix03 ~]# cpan
Terminal does not support AddHistory.

cpan shell – CPAN exploration and modules installation (v1.7602)
ReadLine support available (try ‘install Bundle::CPAN’)

cpan> install File::Temp
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Wed, 24 Oct 2007 11:36:39 GMT
Running install for module File::Temp
Running make for T/TJ/TJENNESS/File-Temp-0.18.tar.gz
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
ftp://ftp.perl.org/pub/CPAN/authors/id/T/TJ/TJENNESS/File-Temp-0.18.tar.gz
CPAN: Digest::MD5 loaded ok
Fetching with LWP:
ftp://ftp.perl.org/pub/CPAN/authors/id/T/TJ/TJENNESS/CHECKSUMS
CPAN: Compress::Zlib loaded ok
Checksum for /root/.cpan/sources/authors/id/T/TJ/TJENNESS/File-
Temp-0.18.tar.gz
ok
Scanning cache /root/.cpan/build for sizes
x File-Temp-0.18/
x File-Temp-0.18/misc/
x File-Temp-0.18/misc/benchmark.pl
x File-Temp-0.18/misc/results.txt
x File-Temp-0.18/META.yml
x File-Temp-0.18/t/
x File-Temp-0.18/t/posix.t
x File-Temp-0.18/t/tempfile.t
x File-Temp-0.18/t/mktemp.t
x File-Temp-0.18/t/cmp.t
x File-Temp-0.18/t/security.t
x File-Temp-0.18/t/seekable.t
x File-Temp-0.18/t/object.t
x File-Temp-0.18/MANIFEST
x File-Temp-0.18/ChangeLog
x File-Temp-0.18/Temp.pm
x File-Temp-0.18/Makefile.PL
x File-Temp-0.18/README

CPAN.pm: Going to build T/TJ/TJENNESS/File-Temp-0.18.tar.gz

Checking if your kit is complete…
Looks good
Writing Makefile for File::Temp
cp Temp.pm blib/lib/File/Temp.pm
Manifying blib/man3/File::Temp.3
/usr/bin/make – OK
Running make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl “-MExtUtils::Command::MM” “-e”
“test_harne
ss(0, ‘blib/lib’, ‘blib/arch’)” t/*.t
t/cmp…ok
t/mktemp…ok
t/object…ok
t/posix…ok
t/security…ok
3/13 skipped: various reasons
t/seekable…ok
t/tempfile…ok
All tests successful, 3 subtests skipped.
Files=7, Tests=87, 1 wallclock secs ( 0.30 cusr + 0.44 csys = 0.73 CPU)
/usr/bin/make test – OK
Running make install
Installing /usr/local/lib/perl5/5.8.8/File/Temp.pm
Installing /usr/local/lib/perl5/5.8.8/perl/man/man3/File::Temp.3
Writing /usr/local/lib/perl5/5.8.8/mach/auto/File/Temp/.packlist
FreeBSD: Registering installation in the package database
Appending installation info to /usr/local/lib/perl5/5.8.8/mach/perllocal.pod
/usr/bin/make install – OK

cpan> q
Terminal does not support GetHistory.
Lockfile removed.
[root@telnix03 ~]# sendmail rt@telnix03.tele.loc
test
.
[root@telnix03 ~]# cd /var/log/
[root@telnix03 /var/log]# tail maillog
Oct 24 18:05:41 telnix03 postfix/local[72586]: 80AF6108E5B: to=<
rt@telnix03.tele.loc>, relay=local, delay=2.3, delays=1.8/0.02/0/0.48, dsn=
4.3.0, status=deferred (temporary failure. Command output: RT server error.
The RT server which handled your email did not behave as expected. It said:
Can’t locate object method “seek” via package “File::Temp” at
/usr/local/lib/perl5/site_perl/5.8.8/MIME/Parser.pm line 816, line
12. Stack: [/usr/local/lib/perl5/site_perl/5.8.8/MIME/Parser.pm:816]
[/usr/local/lib/perl5/site_perl/5.8.8/MIME/Parser.pm:1083]
[/usr/local/lib/perl5/site_perl/5.8.8/MIME/Parser.pm:1177]
[/usr/local/lib/perl5/site_perl/5.8.8/MIME/Parser.pm:1150]
[/storage/rt/lib/RT/EmailParser.pm:231]
[/storage/rt/lib/RT/EmailParser.pm:179]
[/storage/rt/lib/RT/EmailParser.pm:139]
[/storage/rt/lib/RT/Interface/Email.pm:549]
[/storage/rt/share/html/REST/1.0/NoAuth/mail-gateway:61] )

Any more ideas? :slight_smile:

Best regards,
Fredrik PollerOn 10/24/07, Huw Selley huws@s2s.ltd.uk wrote:

On 24/10/07 4:41, “Fredrik Poller” fredrik@poller.se wrote:

Hi,

Hi,

I have a problem with the rt-mailgate script, I can’t get it to work.

I get the following error in my maillog:
Oct 24 17:28:24 telnix03 postfix/local[65653]: C485E108E51: to=<
rt@telnix03.tele.loc>, relay=local, delay=11, delays=10/0/0/0.32, dsn=
4.3.0,
status=deferred (temporary failure. Command output: RT server
error. The RT
server which handled your email did not behave as expected. It
said: Can’t
locate object method “seek” via package “File::Temp” at
/usr/local/lib/perl5/site_perl/5.8.8/MIME/Parser.pm line 816,
line
13. Stack: [/usr/local/lib/perl5/site_perl/5.8.8/MIME/Parser.pm:816]
[/usr/local/lib/perl5/site_perl/5.8.8/MIME/Parser.pm:1083]
[/usr/local/lib/perl5/site_perl/5.8.8/MIME/Parser.pm:1177]
[/usr/local/lib/perl5/site_perl/5.8.8/MIME/Parser.pm:1150]
[/storage/rt/lib/RT/EmailParser.pm:231]
[/storage/rt/lib/RT/EmailParser.pm:179]
[/storage/rt/lib/RT/EmailParser.pm:139]
[/storage/rt/lib/RT/Interface/Email.pm:549]
[/storage/rt/share/html/REST/1.0/NoAuth/mail-gateway:61] )

Looks like the ‘File::Temp’ perl module is either not installed, Is not
the
correct version or has had a sense of humor failure.
You could try installing the most recent release from cpan by running
‘cpan
install File::Temp’ and follow the on-screen prompts.

Hope this helps.
Huw

s2s company email disclaimer :
http://www.s2s.ltd.uk/datasheets/email_disclaimer.pdf
s2s company registration number : 3952958
s2s VAT registration number : GB763132055
Business premises : Ground Floor, Overline House, Crawley,
West Sussex, RH10 1JA
Registered address : 29 High Street, Crawley, West Sussex,
RH10 1BQ
Place of registration : England