Mailgate attachement truncate

Hey Guys,

I’m running RT 3.0.3 on a RH8.0 box. When messages go in via mailgate, they
are truncated at 3.5k every time. This includes the regular message and any
other attachements.

If I attache a larger file via the web interface all goes well.

Based on a previous post about this problem, I have in my RT_SiteConfig.pm:

And in my my.cnf (on the server machine):

Set($MaxAttachmentSize , 10000000);
Set($TruncateLongAttachments , undef);
Set($DropLongAttachments , undef);

[mysqld]
set-variable = max_allowed_packet=16M

RT is spread out between a web server running the application, a database
server running the database and and qmail mail server with mailgate. These
are all redhat 8.0 boxes.

Thanks.

You’re running into a known issue with RedHat 8’s build of mod_perlOn Thu, Jul 31, 2003 at 10:49:06AM -0700, Gary Richardson wrote:

Hey Guys,

I’m running RT 3.0.3 on a RH8.0 box. When messages go in via mailgate, they
are truncated at 3.5k every time. This includes the regular message and any
other attachements.

If I attache a larger file via the web interface all goes well.

Based on a previous post about this problem, I have in my RT_SiteConfig.pm:

And in my my.cnf (on the server machine):

Set($MaxAttachmentSize , 10000000);
Set($TruncateLongAttachments , undef);
Set($DropLongAttachments , undef);

[mysqld]
set-variable = max_allowed_packet=16M

RT is spread out between a web server running the application, a database
server running the database and and qmail mail server with mailgate. These
are all redhat 8.0 boxes.

Thanks.

Request Tracker... So much more than a help desk — Best Practical Solutions – Trouble Ticketing. Free.

Is there an article somewhere or something I can do some google searches on
for more info?

Dunno. It’s something that has come up on the list a few times and
others have mentioned as a problem

Thanks.

-----Original Message-----
From: rt-users-admin@lists.fsck.com [mailto:rt-users-admin@lists.fsck.com]
On Behalf Of Jesse Vincent
Sent: Thursday, July 31, 2003 10:51 AM
To: Gary Richardson
Cc: rt-users@lists.fsck.com
Subject: Re: [rt-users] Mailgate attachement truncate

You’re running into a known issue with RedHat 8’s build of mod_perl

Hey Guys,

I’m running RT 3.0.3 on a RH8.0 box. When messages go in via mailgate,
they are truncated at 3.5k every time. This includes the regular
message and any other attachements.

If I attache a larger file via the web interface all goes well.

Based on a previous post about this problem, I have in my
RT_SiteConfig.pm:

And in my my.cnf (on the server machine):

Set($MaxAttachmentSize , 10000000); Set($TruncateLongAttachments ,
undef); Set($DropLongAttachments , undef);

[mysqld]
set-variable = max_allowed_packet=16M

RT is spread out between a web server running the application, a
database server running the database and and qmail mail server with
mailgate. These are all redhat 8.0 boxes.

Thanks.


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

Request Tracker... So much more than a help desk — Best Practical Solutions – Trouble Ticketing. Free.

For all of those searching the archives looking for solutions, this was the
problem. I’m not too sure what exact part of RH/mod_perl/Apache2 is causing
the problem.

I simply compiled a 1.3.28 Apache with mod_perl 1.27 on the mail server and
had mailgate reference that instead of the web server. My RT now accepts
large attachements :slight_smile:

Out.From: Jesse Vincent [mailto:jesse@bestpractical.com]
Sent: Thursday, July 31, 2003 10:51 AM
To: Gary Richardson
Cc: rt-users@lists.fsck.com
Subject: Re: [rt-users] Mailgate attachement truncate

You’re running into a known issue with RedHat 8’s build of mod_perl

I think it has to do with the mod_perl2 interface myself… but I could
be wrong. I have the same problem with a FreeBSD/mod_perl2/Apache2
setup, long attanchments end up getting truncated all the time though at
about 6k for me.On that note as well, going up to the latest release of the mod_perl2 code (1.99_09) from my current installation of (1.99_07), seems to have introduced a new wrinkle… with that version webmux.pl fails to load: [Fri Aug 01 11:52:26 2003] [error] Global $r object is not available. Set: PerlOptions +GlobalRequest in httpd.conf at /usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 567. Compilation failed in require at (eval 4) line 1. [Fri Aug 01 11:52:26 2003] [error] Can’t load Perl file: /usr/local/rt3/bin/webmux.pl for server rt.csolve.net:0, exiting… Reverting back to 1.99_07 works fine, I may end up doing the work around with a second Apache/RT installation, though the truncation isn’t a wholy huge issue for us at the moment as the majority of tickets e-mailed in are under than size typically. Derek Gary Richardson wrote:

For all of those searching the archives looking for solutions, this was the
problem. I’m not too sure what exact part of RH/mod_perl/Apache2 is causing
the problem.

I simply compiled a 1.3.28 Apache with mod_perl 1.27 on the mail server and
had mailgate reference that instead of the web server. My RT now accepts
large attachements :slight_smile:

Out.

-----Original Message-----
From: Jesse Vincent [mailto:jesse@bestpractical.com]
Sent: Thursday, July 31, 2003 10:51 AM
To: Gary Richardson
Cc: rt-users@lists.fsck.com
Subject: Re: [rt-users] Mailgate attachement truncate

You’re running into a known issue with RedHat 8’s build of mod_perl

On Thu, Jul 31, 2003 at 10:49:06AM -0700, Gary Richardson wrote:

Hey Guys,

I’m running RT 3.0.3 on a RH8.0 box. When messages go in via mailgate,
they are truncated at 3.5k every time. This includes the regular
message and any other attachements.

If I attache a larger file via the web interface all goes well.

Based on a previous post about this problem, I have in my
RT_SiteConfig.pm:

And in my my.cnf (on the server machine):

Set($MaxAttachmentSize , 10000000); Set($TruncateLongAttachments ,
undef); Set($DropLongAttachments , undef);

[mysqld]
set-variable = max_allowed_packet=16M

RT is spread out between a web server running the application, a
database server running the database and and qmail mail server with
mailgate. These are all redhat 8.0 boxes.

Thanks.

Regards,

Derek Buttineau
Internet Systems Administrator
Compu-SOLVE Internet Services

Update on this, using the Hack to get 1.99_09 to work with RT3 allowed
me to get it up and running with that new instance of mod_perl, which in
turn has fixed the truncation issue I was experiencing :slight_smile:

Derek

Hack:

require Apache::RequestUtil;
no warnings ‘redefine’;
my $sub = *Apache::request{CODE};
*Apache::request = sub {
my $r;
eval { $r = $sub->(‘Apache’); };

warn $@ if $@;

return $r;
};

Derek Buttineau wrote:

I think it has to do with the mod_perl2 interface myself… but I could
be wrong. I have the same problem with a FreeBSD/mod_perl2/Apache2
setup, long attanchments end up getting truncated all the time though
at about 6k for me.

For all of those searching the archives looking for solutions, this
was the
problem. I’m not too sure what exact part of RH/mod_perl/Apache2 is
causing
the problem.
I simply compiled a 1.3.28 Apache with mod_perl 1.27 on the mail
server and
had mailgate reference that instead of the web server. My RT now accepts
large attachements :slight_smile:

Out.

-----Original Message-----
From: Jesse Vincent [mailto:jesse@bestpractical.com] Sent: Thursday,
July 31, 2003 10:51 AM
To: Gary Richardson
Cc: rt-users@lists.fsck.com
Subject: Re: [rt-users] Mailgate attachement truncate

You’re running into a known issue with RedHat 8’s build of mod_perl

Hey Guys,

I’m running RT 3.0.3 on a RH8.0 box. When messages go in via
mailgate, they are truncated at 3.5k every time. This includes the
regular message and any other attachements.

If I attache a larger file via the web interface all goes well.

Based on a previous post about this problem, I have in my
RT_SiteConfig.pm:

And in my my.cnf (on the server machine):

Set($MaxAttachmentSize , 10000000); Set($TruncateLongAttachments ,
undef); Set($DropLongAttachments , undef);

[mysqld]
set-variable = max_allowed_packet=16M

RT is spread out between a web server running the application, a
database server running the database and and qmail mail server with
mailgate. These are all redhat 8.0 boxes.

Thanks.

Regards,

Derek Buttineau
Internet Systems Administrator
Compu-SOLVE Internet Services