MIME::Parser: can't open tmpfile: Invalid argument

I get this error when anything but a plain text email comes in to an
alias.

----- Transcript of session follows -----
MIME::Parser: can’t open tmpfile: Invalid argument
554 5.3.0 unknown mailer error 255

HTML, rtf, or attachments seem to cause this. Everytime.

I’m running rt 2.0.15 on Freebsd 5.0, perl 5.6.1.

I saw an earlier post regarding this with no answers. Can anyone help
out there?

Thanks

Matt

Hi,

We have the same problem on the same configuration and I asked for help
a couple of weeks ago.
I suspect that problem is in rigths of ‘mailnull’ user. But what must be
tuned I didn’t manage to find.

Sergey.

I fiddled around with what the original poster mentioned and got it to
work. Although I’m really curious why this is.

If you find this block in lib/RT/Interface/Email.pm:

# If content length is <= 20000 bytes, store each msg as in-core

scalar;
# Else, write to a disk file (the default action):

$parser->output_to_core(20000);

And just add

$parser->tmp_to_core(20000);

Right below that it’ll work like a champ.

Matt

[mailto:rt-users-admin@lists.fsck.com] On Behalf Of Sergey GurovSent: Wednesday, March 26, 2003 7:02 AM
To: rt-users@lists.fsck.com
Subject: RE: [rt-users] MIME::Parser: can’t open tmpfile: Invalid
argument

Hi,

We have the same problem on the same configuration and I asked for help
a couple of weeks ago.
I suspect that problem is in rigths of ‘mailnull’ user. But what must be
tuned I didn’t manage to find.

Sergey.

-----Original Message-----
From: Matt Jonkman [mailto:matt@infotex.ws]
Sent: Wednesday, March 26, 2003 8:03 AM
To: rt-users@lists.fsck.com
Subject: [rt-users] MIME::Parser: can’t open tmpfile: Invalid argument

I get this error when anything but a plain text email comes in to an
alias.

----- Transcript of session follows -----
MIME::Parser: can’t open tmpfile: Invalid argument
554 5.3.0 unknown mailer error 255

HTML, rtf, or attachments seem to cause this. Everytime.

I’m running rt 2.0.15 on Freebsd 5.0, perl 5.6.1.

I saw an earlier post regarding this with no answers. Can anyone help
out there?

Thanks

Matt


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

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

Yes, that works, although it is not an answer. Try to comment out
$parser->output_to_core() and send plaint text mail. It works for me! It
means that for the main message body parser does create disk tmp file.
After that it cannot.
BTW MIME::Parser man states that in-core tmp files work slower that
disk-based.

Sergey.