<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I’m working on implementing RT with OpenID. I started with a basic installation of RT and I created some test tickets from within the webui and via email. After everything was working I started to implement OpenID for authentication. I
tried using the RT OpenID plugin but I was never able to get that to work and there was next to no documentation out there about it. I then decided to install WebExternalAuth use the Apache OpenID module for authentication. I was able to get this to work and
now the web interface works great. Unfortunately, now the rt-mailgate is no longer working. When I email the queue the following error is logged in the maillog:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Feb 13 03:17:03 sendmail[20134]: r1D3Gsht020130: to="|/usr/local/rt/bin/rt-mailgate --queue 'Customer Service' --action correspond --url http://rt.example.com/", ctladdr=<customerservice@rt.example.com> (8/0), delay=00:00:08, xdelay=00:00:01,
mailer=prog, pri=123857, dsn=4.0.0, stat=Deferred: prog mailer (/usr/sbin/smrsh) exited with EX_TEMPFAIL<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I then tried testing it from command line with the following results:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"># (echo Subject: test; echo; echo test) |/usr/local/rt/bin/rt-mailgate --queue 'Customer Service' --action correspond --url http://rt.example.com --debug<o:p></o:p></p>
<p class="MsoNormal">/usr/local/rt/bin/rt-mailgate: temp file is '/tmp/b4OHJlWSwH/Kgebhr0hI2'<o:p></o:p></p>
<p class="MsoNormal">/usr/local/rt/bin/rt-mailgate: connecting to http://rt.example.com/REST/1.0/NoAuth/mail-gateway<o:p></o:p></p>
<p class="MsoNormal">An Error Occurred<o:p></o:p></p>
<p class="MsoNormal">=================<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">302 Found<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">/usr/local/rt/bin/rt-mailgate: undefined server error<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I then switched back to normal authentication methods in my apache virtualhost config and then rt-mailgate would process emails successfully. Here is my apache vituralhost configuration that is causing the errors:
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><VirtualHost *:80><o:p></o:p></p>
<p class="MsoNormal"> # Optional apache logs for RT<o:p></o:p></p>
<p class="MsoNormal"> # ErrorLog /usr/local/rt/var/log/apache2.error<o:p></o:p></p>
<p class="MsoNormal"> # TransferLog /usr/local/rt/var/log/apache2.access<o:p></o:p></p>
<p class="MsoNormal"> # LogLevel debug<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> AddDefaultCharset UTF-8<o:p></o:p></p>
<p class="MsoNormal"> DocumentRoot "/usr/local/rt/share/html"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> <Location /><o:p></o:p></p>
<p class="MsoNormal"># If I comment out the section below and uncomment the two lines below that everything works<o:p></o:p></p>
<p class="MsoNormal"> AuthType OpenID<o:p></o:p></p>
<p class="MsoNormal"> require valid-user<o:p></o:p></p>
<p class="MsoNormal"> AuthOpenIDTrusted ^http://www.example.com/$<o:p></o:p></p>
<p class="MsoNormal"> AuthOpenIDUseCookie On<o:p></o:p></p>
<p class="MsoNormal"> AuthOpenIDSingleIdP http://www.example.com<o:p></o:p></p>
<p class="MsoNormal"> AuthOpenIDTrustRoot http://rt.example.com<o:p></o:p></p>
<p class="MsoNormal"> AuthOpenIDCookieName rt_auth_cookie<o:p></o:p></p>
<p class="MsoNormal"> AuthOpenIDSecureCookie Off<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"># Order allow,deny<o:p></o:p></p>
<p class="MsoNormal"># Allow from all<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> SetHandler modperl<o:p></o:p></p>
<p class="MsoNormal"> PerlResponseHandler Plack::Handler::Apache2<o:p></o:p></p>
<p class="MsoNormal"> PerlSetVar psgi_app /usr/local/rt/sbin/rt-server<o:p></o:p></p>
<p class="MsoNormal"> </Location><o:p></o:p></p>
<p class="MsoNormal"> <Perl><o:p></o:p></p>
<p class="MsoNormal"> use Plack::Handler::Apache2;<o:p></o:p></p>
<p class="MsoNormal"> Plack::Handler::Apache2->preload("/usr/local/rt/sbin/rt-server");<o:p></o:p></p>
<p class="MsoNormal"> </Perl><o:p></o:p></p>
<p class="MsoNormal"></VirtualHost><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks for any help on this issue.<o:p></o:p></p>
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal">Thomas Klump<o:p></o:p></p>
</div>
</body>
</html>