[rt-users] Issue creating new tickets via email: Part 2

Jason Diegmueller jasond at wantec.com
Sun Jun 29 11:45:06 EDT 2003


Ok, I could have sworn I had this working last night -- 
but emails to the mailgate from unknown email addresses 
are again failing.  As before, if I manually create a 
user with an email address matching where the email is 
being sent from, the ticket is created as expected. 

I attached the bounce in hopes someone can assist.  Jesse, 
the changes you had me make to Email.pm are intact and 
still there:
[power:doogles] [/usr/local/rt/lib/RT/Interface] # diff Email.pm
Email.pm.orig 
199,202c199,201
<     require Encode;
<     $Username = Encode::encode(utf8 => $Username, Encode::FB_PERLQQ()) if
defined $Username;
<     $Name = Encode::encode(utf8 => $Name, Encode::FB_PERLQQ()) if defined
$Name;
< 
---
>     $Username = Encode::encode(utf8 => $Username, Encode::FB_PERLQQ);
>     $Name = Encode::encode(utf8 => $Name, Encode::FB_PERLQQ);
>  

I can't think of anything I did save going to sleep last 
night.  

Advice welcomed.  Thanks! 

-j

-----Original Message-----
From: Sam Dothage [mailto:s_dothage at yahoo.com] 
Sent: Sunday, June 29, 2003 10:25 AM
To: Jason Diegmueller
Subject: Fwd: Returned mail: see transcript for details



--- Mail Delivery Subsystem <MAILER-DAEMON at power.doogles.com> wrote:
> Date: Sun, 29 Jun 2003 10:22:30 -0500
> From: Mail Delivery Subsystem <MAILER-DAEMON at power.doogles.com>
> To: <dothages at attbi.com>
> Subject: Returned mail: see transcript for details
> 
> The original message was received at Sun, 29 Jun 2003 10:22:29 -0500 
> from rwcrmhc53.attbi.com [204.127.198.39] (may be forged)
> 
>    ----- The following addresses had permanent fatal errors ----- 
> "|/usr/local/rt/bin/rt-mailgate --queue support --action correspond 
> --url http://rt.evelocity.net/"
>     (reason: 255)
>     (expanded from: <support at rt.evelocity.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>
> 	/usr/local/rt/lib/RT/Interface/Email.pm:199<br>
> 	/usr/local/rt/lib/RT/Interface/Email/Auth/MailFrom.pm:121<br>
> 	/usr/local/rt/lib/RT/Interface/Email.pm:455<br>
> 	/usr/local/rt/share/html/REST/1.0/NoAuth/mail-gateway:32<br>
>   </font></td>
>  </tr>
> </table>
> 
> <a href="#raw">raw error</a><br>
> 
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> 
> 
> <a name="raw"></a>
> 
> <pre>panic: sv_setpvn called with negative strlen at 
> /usr/lib/perl5/5.8.0/i386-linux-thread-multi/Encode.pm line 140.
> 
> 
> 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
/usr/local/rt/lib/RT/Interface/Email.pm line
> 199
> RT::Interface::Email::CreateUser(undef, 'dothages at attbi.com',
'dothages at attbi.com',
> 'MIME::Entity=HASH(0x9981740)') called at
> /usr/local/rt/lib/RT/Interface/Email/Auth/MailFrom.pm line 121
> RT::Interface::Email::Auth::MailFrom::GetCurrentUser('Message',
> 'MIME::Entity=HASH(0x9981740)', 'CurrentUser', undef, 'AuthLevel', undef,
'Action',
> 'correspond', 'Ticket', undef, 'Queue', 'RT::Queue=HASH(0x99bb1d0)')
called at
> /usr/local/rt/lib/RT/Interface/Email.pm line 455
> RT::Interface::Email::Gateway('SessionType', 'REST', 'action',
'correspond', 'queue',
> 'support', 'message', 'From dothages at attbi.com Sun Jun 29 10:22:29
2003^JReceived: from
> rwcrmhc13.attbi.com (rwcrmhc53.attbi.com [204.127.198.39] (may be
forged))^J^Iby
> power.doogles.com (8.12.8/8.12.8) with ESMTP id h5TFMTgQ017664^J^Ifor
> &lt;support at rt.evelocity.net&gt;; Sun, 29 Jun 2003 10:22:29
-0500^JMessage-Id:
> &lt;200306291522.h5TFMTgQ017664 at power.doogles.com&gt;^JReceived:
from rwcrwbc07
> (unknown[204.127.197.117](misconfigured sender))^J          by attbi.com
(rwcrmhc13) with
> SMTP^J          id &lt;2003062915221301500qitr8e&gt;; Sun, 29 Jun
2003 15:22:13
> +0000^JReceived: from [12.247.227.58] by rwcrwbc07;^J^ISun, 29 Jun 
> +2003 15:22:13
> +0000^JFrom: dothages at attbi.com^JTo: support at rt.evelocity.net^JSubject:
test^JDate: Sun, 29
> Jun 2003 15:22:13 +0000^JX-Mailer: AT&amp;T Message Center Version 
> 1 (Jun 18
> 2003)^JX-Authenticated-Sender: ZG90aGFnZXNAYXR0YmkuY29t^J!
> ^J^J') called at /usr/local/rt/share/html/REST/1.0/NoAuth/mail-gateway
line 32
> HTML::Mason::Commands::__ANON__('SessionType', 'REST', 'action',
'correspond', 'queue',
> 'support', 'message', 'From dothages at attbi.com Sun Jun 29 10:22:29
2003^JReceived: from
> rwcrmhc13.attbi.com (rwcrmhc53.attbi.com [204.127.198.39] (may be
forged))^J^Iby
> power.doogles.com (8.12.8/8.12.8) with ESMTP id h5TFMTgQ017664^J^Ifor
> &lt;support at rt.evelocity.net&gt;; Sun, 29 Jun 2003 10:22:29
-0500^JMessage-Id:
> &lt;200306291522.h5TFMTgQ017664 at power.doogles.com&gt;^JReceived:
from rwcrwbc07
> (unknown[204.127.197.117](misconfigured sender))^J          by attbi.com
(rwcrmhc13) with
> SMTP^J          id &lt;2003062915221301500qitr8e&gt;; Sun, 29 Jun
2003 15:22:13
> +0000^JReceived: from [12.247.227.58] by rwcrwbc07;^J^ISun, 29 Jun 
> +2003 15:22:13
> +0000^JFrom: dothages at attbi.com^JTo: support at rt.evelocity.net^JSubject:
test^JDate: Sun, 29
> Jun 2003 15:22:13 +0000^JX-Mailer: AT&amp;T Message Center Version 
> 1 (Jun 18
> 2003)^JX-Authenticated-Sender: ZG90aGFnZXNAYXR0YmkuY29t!
> ^J^J^J') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Component.pm
line 134
>
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x94afa4
0)',
> 'SessionType', 'REST', 'action', 'correspond', 'queue', 'support',
'message', 'From
> dothages at attbi.com Sun Jun 29 10:22:29 2003^JReceived: from
rwcrmhc13.attbi.com
> (rwcrmhc53.attbi.com [204.127.198.39] (may be forged))^J^Iby
power.doogles.com
> (8.12.8/8.12.8) with ESMTP id h5TFMTgQ017664^J^Ifor
> &lt;support at rt.evelocity.net&gt;; Sun, 29 Jun 2003 10:22:29
-0500^JMessage-Id:
> &lt;200306291522.h5TFMTgQ017664 at power.doogles.com&gt;^JReceived:
from rwcrwbc07
> (unknown[204.127.197.117](misconfigured sender))^J          by attbi.com
(rwcrmhc13) with
> SMTP^J          id &lt;2003062915221301500qitr8e&gt;; Sun, 29 Jun
2003 15:22:13
> +0000^JReceived: from [12.247.227.58] by rwcrwbc07;^J^ISun, 29 Jun 
> +2003 15:22:13
> +0000^JFrom: dothages at attbi.com^JTo: support at rt.evelocity.net^JSubject:
test^JDate: Sun, 29
> Jun 2003 15:22:13 +0000^JX-Mailer: AT&amp;T Message Center Version 
> 1 (Jun 18 2003)^!
> JX-Authenticated-Sender: ZG90aGFnZXNAYXR0YmkuY29t^J^J^J') called at
> /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 1051
> eval {...}('HTML::Mason::Component::FileBased=HASH(0x94afa40)',
'SessionType', 'REST',
> 'action', 'correspond', 'queue', 'support', 'message', 'From
dothages at attbi.com Sun Jun 29
> 10:22:29 2003^JReceived: from rwcrmhc13.attbi.com (rwcrmhc53.attbi.com
[204.127.198.39] (may
> be forged))^J^Iby power.doogles.com (8.12.8/8.12.8) with ESMTP id
h5TFMTgQ017664^J^Ifor
> &lt;support at rt.evelocity.net&gt;; Sun, 29 Jun 2003 10:22:29
-0500^JMessage-Id:
> &lt;200306291522.h5TFMTgQ017664 at power.doogles.com&gt;^JReceived:
from rwcrwbc07
> (unknown[204.127.197.117](misconfigured sender))^J          by attbi.com
(rwcrmhc13) with
> SMTP^J          id &lt;2003062915221301500qitr8e&gt;; Sun, 29 Jun
2003 15:22:13
> +0000^JReceived: from [12.247.227.58] by rwcrwbc07;^J^ISun, 29 Jun 
> +2003 15:22:13
> +0000^JFrom: dothages at attbi.com^JTo: support at rt.evelocity.net^JSubject:
test^JDate: Sun, 29
> Jun 2003 15:22:13 +0000^JX-Mailer: AT&amp;T Message Center Version 
> 1 (Jun 18 2003)^JX-Authenticated-!
> Sender: ZG90aGFnZXNAYXR0YmkuY29t^J^J^J') called at 
> /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 1050 
> HTML::Mason::Request::comp(undef, undef, undef, 'SessionType', 'REST', 
> 'action', 'correspond', 'queue', 'support', 'message', 'From 
> dothages at attbi.com Sun Jun 29 10:22:29
> 2003^JReceived: from rwcrmhc13.attbi.com (rwcrmhc53.attbi.com
[204.127.198.39] (may be
> forged))^J^Iby power.doogles.com (8.12.8/8.12.8) with ESMTP id
h5TFMTgQ017664^J^Ifor
> &lt;support at rt.evelocity.net&gt;; Sun, 29 Jun 2003 10:22:29
-0500^JMessage-Id:
> &lt;200306291522.h5TFMTgQ017664 at power.doogles.com&gt;^JReceived:
from rwcrwbc07
> (unknown[204.127.197.117](misconfigured sender))^J          by attbi.com
(rwcrmhc13) with
> SMTP^J          id &lt;2003062915221301500qitr8e&gt;; Sun, 29 Jun
2003 15:22:13
> +0000^JReceived: from [12.247.227.58] by rwcrwbc07;^J^ISun, 29 Jun 
> +2003 15:22:13
> +0000^JFrom: dothages at attbi.com^JTo: support at rt.evelocity.net^JSubject:
test^JDate: Sun, 29
> Jun 2003 15:22:13 +0000^JX-Mailer: AT&amp;T Message Center Version 
> 1 (Jun 18
> 2003)^JX-Authenticated-Sender: ZG90aGFn!
> ZXNAYXR0YmkuY29t^J^J^J') called at
/usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line
> 331
> eval {...}(undef, undef, undef, 'SessionType', 'REST', 'action',
'correspond', 'queue',
> 'support', 'message', 'From dothages at attbi.com Sun Jun 29 10:22:29
2003^JReceived: from
> rwcrmhc13.attbi.com (rwcrmhc53.attbi.com [204.127.198.39] (may be
forged))^J^Iby
> power.doogles.com (8.12.8/8.12.8) with ESMTP id h5TFMTgQ017664^J^Ifor
> &lt;support at rt.evelocity.net&gt;; Sun, 29 Jun 2003 10:22:29
-0500^JMessage-Id:
> &lt;200306291522.h5TFMTgQ017664 at power.doogles.com&gt;^JReceived:
from rwcrwbc07
> (unknown[204.127.197.117](misconfigured sender))^J          by attbi.com
(rwcrmhc13) with
> SMTP^J          id &lt;2003062915221301500qitr8e&gt;; Sun, 29 Jun
2003 15:22:13
> +0000^JReceived: from [12.247.227.58] by rwcrwbc07;^J^ISun, 29 Jun 
> +2003 15:22:13
> +0000^JFrom: dothages at attbi.com^JTo: support at rt.evelocity.net^JSubject:
test^JDate: Sun, 29
> Jun 2003 15:22:13 +0000^JX-Mailer: AT&amp;T Message Center Version 
> 1 (Jun 18
> 2003)^JX-Authenticated-Sender: ZG90aGFnZXNAYXR0YmkuY29t!
> ^J^J^J') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm
line 331
> eval {...}(undef, undef, undef, 'SessionType', 'REST', 'action',
'correspond', 'queue',
> 'support', 'message', 'From dothages at attbi.com Sun Jun 29 10:22:29
2003^JReceived: from
> rwcrmhc13.attbi.com (rwcrmhc53.attbi.com [204.127.198.39] (may be
forged))^J^Iby
> power.doogles.com (8.12.8/8.12.8) with ESMTP id h5TFMTgQ017664^J^Ifor
> &lt;support at rt.evelocity.net&gt;; Sun, 29 Jun 2003 10:22:29
-0500^JMessage-Id:
> &lt;200306291522.h5TFMTgQ017664 at power.doogles.com&gt;^JReceived:
from rwcrwbc07
> (unknown[204.127.197.117](misconfigured sender))^J          by attbi.com
(rwcrmhc13) with
> SMTP^J          id &lt;2003062915221301500qitr8e&gt;; Sun, 29 Jun
2003 15:22:13
> +0000^JReceived: from [12.247.227.58] by rwcrwbc07;^J^ISun, 29 Jun 
> +2003 15:22:13
> +0000^JFrom: dothages at attbi.com^JTo: support at rt.evelocity.net^JSubject:
test^JDate: Sun, 29
> Jun 2003 15:22:13 +0000^JX-Mailer: AT&amp;T Message Center Version 
> 1 (Jun 18
> 2003)^JX-Authenticated-Sender: ZG90aGFnZXNAYXR0YmkuY29t!
> ^J^J^J') called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm
line 290
>
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x99767
80)') called at
> /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 134
> eval {...}('HTML::Mason::Request::ApacheHandler=HASH(0x9976780)') called
at
> /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 134
>
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandl
er=HASH(0x9976780)')
> called at /usr/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm 
> line 792 
>
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(
0x92c2688)',
> 'Apache=SCALAR(0x994d6a4)') called at /usr/local/rt/bin/webmux.pl line 118
> RT::Mason::handler('Apache=SCALAR(0x994d6a4)') called at /dev/null line 0
> eval {...}('Apache=SCALAR(0x994d6a4)') called at /dev/null line 0
> </pre>
> 
> </body></html>
> 
> 554 5.3.0 unknown mailer error 255
> 

> ATTACHMENT part 2 message/delivery-status


> ATTACHMENT part 3 message/rfc822 
> From: dothages at attbi.com
> To: support at rt.evelocity.net
> Subject: test
> Date: Sun, 29 Jun 2003 15:22:13 +0000
> 
> 
> 

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com



More information about the rt-users mailing list