Non-local domain email ticket creation problems

Just got RT up and running (mod_perl 1.99, apache 2.x) … about to upgrade
mysql to ver 4.x and i think i’ll be ready for production (been using RT
since
ver 1 . .very happy:).

i seem to have hit a snag that i can’t find on the mailing lists or in the
docs. .

external domains cannot create tickets . .anything held by the local mail
server works perfect . .only domains external to ours fail . .

I’ve been looking and it seems that RedHat 9 has some issues with the base
installed perl and some of the modules . . think this might be related? . .

the sender gets the following response:

----- The following addresses had permanent fatal errors -----
"|/opt/rt3/bin/rt-mailgate --queue general --action correspond --url
http://support.usa2net.net/"
(reason: 255)
(expanded from: support@usa2net.net)

----- Transcript of session follows -----
RT server error.

The RT server which handled your email did not behave as expected. It
said:

System error

error:  panic: sv_setpvn called with negative strlen at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/Encode.pm line 140.
context: 
<tr>
 <td nowrap="nowrap" align="left" valign="top"><font face="Verdana,

Arial,
Helvetica, sans-serif" size="-2"> 


<tr>
 <td nowrap="nowrap" align="left" valign="top"><font face="Verdana,

Arial,
Helvetica, sans-serif" size="-2">136: 


<tr>
 <td nowrap="nowrap" align="left" valign="top"><font face="Verdana,

Arial,
Helvetica, sans-serif" size="-2">137: 


<tr>
 <td nowrap="nowrap" align="left" valign="top"><font face="Verdana,

Arial,
Helvetica, sans-serif" size="-2">138: 


<tr>
 <td nowrap="nowrap" align="left" valign="top"><font face="Verdana,

Arial,
Helvetica, sans-serif" size="-2">139: 


<tr>
 <td nowrap="nowrap" align="left" valign="top"><font face="Verdana,

Arial,
Helvetica, sans-serif" size="-2">140: 


<tr>
 <td nowrap="nowrap" align="left" valign="top"><font face="Verdana,

Arial,
Helvetica, sans-serif" size="-2">141: 


<tr>
 <td nowrap="nowrap" align="left" valign="top"><font face="Verdana,

Arial,
Helvetica, sans-serif" size="-2">142: 


<tr>
 <td nowrap="nowrap" align="left" valign="top"><font face="Verdana,

Arial,
Helvetica, sans-serif" size="-2">143: 


<tr>
 <td nowrap="nowrap" align="left" valign="top"><font face="Verdana,

Arial,
Helvetica, sans-serif" size="-2">144: 


<tr>
 <td nowrap="nowrap" align="left" valign="top"><font face="Verdana,

Arial,
Helvetica, sans-serif" size="-2"> 


unless(defined $enc){ require Carp; Carp::croak(“Unknown
encoding ‘$name’”);
} my $octets = $enc-
>encode($string,$check);
return undef if ($check &&
length
($string));
return $octets; }
code stack:  /usr/lib/perl5/5.8.0/i386-linux-thread-multi/Encode.pm:140
/opt/rt3/lib/RT/Interface/Email.pm:199
/opt/rt3/lib/RT/Interface/Email/Auth/MailFrom.pm:121
/opt/rt3/lib/RT/Interface/Email.pm:455
/opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway:32

raw error

and then lots of what looks like Mason traces . . which seems to hold little
info of importance that I can tell . and is repeated time and time again .
but
i’ll paste it here anyway (please note i’ve changed the remote email to
user@domain.com and the local domain to domain.net . . i can use ANY of
several local domains to create tickets):

Trace begun at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Exceptions.pm line
128
HTML::Mason::Exceptions::rethrow_exception(‘panic: sv_setpvn called with
negative strlen at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/Encode.pm
line
140.^J’) called at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/Encode.pm
line
140
Encode::encode(‘utf8’, undef, 256) called
at /opt/rt3/lib/RT/Interface/Email.pm line 199
RT::Interface::email::CreateUser
(undef, ‘user@domain.com’, ‘USER’, ‘MIME::Entity=HASH(0x93dc7b4)’) called
at /opt/rt3/lib/RT/Interface/Email/Auth/MailFrom.pm line 121
RT::Interface::email::Auth::MailFrom::GetCurrentUser
(‘Message’, ‘MIME::Entity=HASH(0x93dc7b4)’, ‘CurrentUser’, undef,
‘AuthLevel’,
undef, ‘Action’, ‘correspond’, ‘Ticket’, undef, ‘Queue’, ‘RT::Queue=HASH
(0x93e97bc)’) called at /opt/rt3/lib/RT/Interface/Email.pm line 455
RT::Interface::email::Gateway
(‘SessionType’, ‘REST’, ‘action’, ‘correspond’, ‘queue’, ‘general’,
‘message’,
'From iser@domain.com Mon Jun 30 20:02:21 2003^JReceived: from
mail.domain.com
(mail.domain.com [])^J^Iby mail.domain.net (8.12.8/8.12.8) with ESMTP id
h6102LR0019060^J^Ifor &lt;support@domain.net&gt;; Mon, 30 Jun 2003
20:02:21 -0400^JReceived: from mail.domain.com (localhost.localdomain
[127.0.0.1])^J^Iby mail.domain.com (8.12.1/8.12.1) with ESMTP id
h61066aE026047^J^Ifor &lt;support@domain.net&gt;; Mon, 30 Jun 2003
19:06:06 -0500^JReceived: (from apache@localhost)^J^Iby mail.domain.net
(8.12.1/8.12.1/Submit) id h61066Gd026046^J^Ifor support@domain.net; Mon, 30
Jun 2003 19:06:06 -0500^JX-Authentication-Warning: mail.domain.com: apache
set
sender to user@domain.com using -f^JReceived: from ( [])^J^Ias user
user@imap.domain.com by webmail.domain.com with HTTP;^J^IMon, 30 Jun 2003
19:06:05 -0500^JMessage-ID: &!
lt;1057017965.3f00d06df1b63@webmail.domain.com&gt;^JDate: Mon, 30 Jun
2003
19:06:05 -0500^JFrom: USER &lt;user@domain.com&gt;^JTo:
support@domain.net^JSubject: test^JMIME-Version: 1.0^JContent-Type:
text/plain; charset=ISO-8859-1^JContent-Transfer-Encoding: 8bit^JUser-Agent:
Internet Messaging Program (IMP) 3.1^JX-Originating-IP:
67.213.23.210^J^Jtersting^J^J^J^J-------------------------------------------

—^JThis mail sent through IMP: http://horde.org/imp/^J’) called
at /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway line 32
HTML::Mason::Commands::ANON
(‘SessionType’, ‘REST’, ‘action’, ‘correspond’, ‘queue’, ‘general’,
‘message’,
'From user@domain.com Mon Jun 30 20:02:21 2003^JReceived: from
mail.domain.com
(mail.domain.com [])^J^Iby mail.domain.net (8.12.8/8.12.8) with ESMTP id
h6102LR0019060^J^Ifor &lt;support@domain.net&gt;; Mon, 30 Jun 2003
20:02:21 -0400^JReceived: from mail.domain.com (localhost.localdomain
[127.0.0.1])^J^Iby mail.domain.com (8.12.1/8.12.1) with ESMTP id
h61066aE026047^J^Ifor &lt;support@domain.net&gt;; Mon, 30 Jun 2003
19:06:06 -0500^JReceived: (from apache@localhost)^J^Iby mail.domain.com
(8.12.1/8.12.1/Submit) id h61066Gd026046^J^Ifor support@domain.net; Mon, 30
Jun 2003 19:06:06 -0500^JX-Authentication-Warning: mail.jdcc.edu: apache set
sender to user@domain.com using -f^JReceived: from ( [])^J^Ias user
user@imap.domain.com by webmail.domain.com with HTTP;^J^IMon, 30 Jun 2003
19:06:05 -0500^JMessage-ID: &am!

there seems to be piece right at the top of all that …about CreateUser that
i
suspect to be the issue . but i honestly dunno . .

any ideas?

Just got RT up and running (mod_perl 1.99, apache 2.x) … about to upgrade
mysql to ver 4.x and i think i’ll be ready for production (been using RT
since
ver 1 . .very happy:).

What version of RT?

i seem to have hit a snag that i can’t find on the mailing lists or in the
docs. .

external domains cannot create tickets . .anything held by the local mail
server works perfect . .only domains external to ours fail . .

I’ve been looking and it seems that RedHat 9 has some issues with the base
installed perl and some of the modules . . think this might be related? . .

http://www.bestpractical.com/rt – Trouble Ticketing. Free.