[rt-users] Non-local domain email ticket creation problems

Anthony Hardy mis at jdcc.edu
Wed Jul 2 11:19:31 EDT 2003


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 at usa2net.net>)

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

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




<html><body>

<p align="center"><font face="Verdana, Arial, Helvetica,
sans-serif"><b>System
error</b></font></p>
<table border="0" cellspacing="0" cellpadding="1">
 <tr>
  <td nowrap="nowrap" align="left" valign="top"><font face="Verdana, Arial,
Helvetica, sans-serif" size="-2"><b>error:</b> </font></td>
  <td align="left" valign="top"><font face="Verdana, Arial, Helvetica, sans-
serif" size="-2">panic: sv_setpvn called with negative strlen
at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/Encode.pm line
140.<br></font></td>
 </tr>
 <tr>
  <td nowrap="nowrap" align="left" valign="top"><font face="Verdana, Arial,
Helvetica, sans-serif" size="-2"><b>context:</b> </font></td>
  <td align="left" valign="top" nowrap="nowrap"><font face="Verdana, Arial,
Helvetica, sans-serif" size="-2">
   <table border="0" cellpadding="0" cellspacing="0">

    <tr>
     <td nowrap="nowrap" align="left" valign="top"><font face="Verdana,
Arial,
Helvetica, sans-serif" size="-2"><b>...</b> </font></td>
     <td align="left" valign="top" nowrap="nowrap"><font face="Verdana,
Arial,
Helvetica, sans-serif" size="-2"></font></td>
    </tr>

    <tr>
     <td nowrap="nowrap" align="left" valign="top"><font face="Verdana,
Arial,
Helvetica, sans-serif" size="-2"><b>136:</b> </font></td>
     <td align="left" valign="top" nowrap="nowrap"><font face="Verdana,
Arial,
Helvetica, sans-serif" size="-2">    unless(defined $enc){</font></td>
    </tr>

    <tr>
     <td nowrap="nowrap" align="left" valign="top"><font face="Verdana,
Arial,
Helvetica, sans-serif" size="-2"><b>137:</b> </font></td>
     <td align="left" valign="top" nowrap="nowrap"><font face="Verdana,
Arial,
Helvetica, sans-serif" size="-2">        require Carp;</font></td>
    </tr>

    <tr>
     <td nowrap="nowrap" align="left" valign="top"><font face="Verdana,
Arial,
Helvetica, sans-serif" size="-2"><b>138:</b> </font></td>
     <td align="left" valign="top" nowrap="nowrap"><font face="Verdana,
Arial,
Helvetica, sans-serif" size="-2">        Carp::croak("Unknown
encoding '$name'");</font></td>
    </tr>

    <tr>
     <td nowrap="nowrap" align="left" valign="top"><font face="Verdana,
Arial,
Helvetica, sans-serif" size="-2"><b>139:</b> </font></td>
     <td align="left" valign="top" nowrap="nowrap"><font face="Verdana,
Arial,
Helvetica, sans-serif" size="-2">    }</font></td>
    </tr>

    <tr>
     <td nowrap="nowrap" align="left" valign="top"><font face="Verdana,
Arial,
Helvetica, sans-serif" size="-2"><b>140:</b> </font></td>
     <td align="left" valign="top" nowrap="nowrap"><font face="Verdana,
Arial,
Helvetica, sans-serif" size="-2"><font color=red>    my $octets = $enc-
>encode($string,$check);</font></font></td>
    </tr>

    <tr>
     <td nowrap="nowrap" align="left" valign="top"><font face="Verdana,
Arial,
Helvetica, sans-serif" size="-2"><b>141:</b> </font></td>
     <td align="left" valign="top" nowrap="nowrap"><font face="Verdana,
Arial,
Helvetica, sans-serif" size="-2">    return undef if ($check &&
length
($string));</font></td>
    </tr>

    <tr>
     <td nowrap="nowrap" align="left" valign="top"><font face="Verdana,
Arial,
Helvetica, sans-serif" size="-2"><b>142:</b> </font></td>
     <td align="left" valign="top" nowrap="nowrap"><font face="Verdana,
Arial,
Helvetica, sans-serif" size="-2">    return $octets;</font></td>
    </tr>

    <tr>
     <td nowrap="nowrap" align="left" valign="top"><font face="Verdana,
Arial,
Helvetica, sans-serif" size="-2"><b>143:</b> </font></td>
     <td align="left" valign="top" nowrap="nowrap"><font face="Verdana,
Arial,
Helvetica, sans-serif" size="-2">}</font></td>
    </tr>

    <tr>
     <td nowrap="nowrap" align="left" valign="top"><font face="Verdana,
Arial,
Helvetica, sans-serif" size="-2"><b>144:</b> </font></td>
     <td align="left" valign="top" nowrap="nowrap"><font face="Verdana,
Arial,
Helvetica, sans-serif" size="-2"></font></td>
    </tr>

    <tr>
     <td nowrap="nowrap" align="left" valign="top"><font face="Verdana,
Arial,
Helvetica, sans-serif" size="-2"><b>...</b> </font></td>
     <td align="left" valign="top" nowrap="nowrap"><font face="Verdana,
Arial,
Helvetica, sans-serif" size="-2"></font></td>
    </tr>


   </table>
  </font></td>
 </tr>
 <tr>
  <td align="left" valign="top" nowrap="nowrap"><font face="Verdana, Arial,
Helvetica, sans-serif" size="-2"><b>code stack:</b> </font></td>
  <td align="left" valign="top" nowrap="nowrap"><font face="Verdana, Arial,
Helvetica, sans-serif" size="-2">
        /usr/lib/perl5/5.8.0/i386-linux-thread-multi/Encode.pm:140<br>
        /opt/rt3/lib/RT/Interface/Email.pm:199<br>
        /opt/rt3/lib/RT/Interface/Email/Auth/MailFrom.pm:121<br>
        /opt/rt3/lib/RT/Interface/Email.pm:455<br>
        /opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway:32<br>
  </font></td>
 </tr>
</table>

<a href="#raw">raw error</a><br>


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 at 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 at 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 at 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 at 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 at domain.net&gt;; Mon, 30 Jun 2003
19:06:06 -0500^JReceived: (from apache at localhost)^J^Iby mail.domain.net
(8.12.1/8.12.1/Submit) id h61066Gd026046^J^Ifor support at domain.net; Mon, 30
Jun 2003 19:06:06 -0500^JX-Authentication-Warning: mail.domain.com: apache
set
sender to user at domain.com using -f^JReceived: from ( [])^J^Ias user
user at imap.domain.com by webmail.domain.com with HTTP;^J^IMon, 30 Jun 2003
19:06:05 -0500^JMessage-ID: &!
lt;1057017965.3f00d06df1b63 at webmail.domain.com&gt;^JDate: Mon, 30 Jun
2003
19:06:05 -0500^JFrom: USER &lt;user at domain.com&gt;^JTo:
support at 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 at 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 at 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 at domain.net&gt;; Mon, 30 Jun 2003
19:06:06 -0500^JReceived: (from apache at localhost)^J^Iby mail.domain.com
(8.12.1/8.12.1/Submit) id h61066Gd026046^J^Ifor support at domain.net; Mon, 30
Jun 2003 19:06:06 -0500^JX-Authentication-Warning: mail.jdcc.edu: apache set
sender to user at domain.com using -f^JReceived: from  ( [])^J^Ias user
user at 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?








More information about the rt-users mailing list