[rt-users] rt-mailgate 302 Error. No, not Plack.
Jourdan Perla
jkperla at ucdavis.edu
Wed Mar 14 17:43:47 EDT 2012
> Please - keep list replies on the list.
Sorry, will do.
Thought I had this licked, but now as I build a *clean* production image, I'm running into the same error again..
$ cat mbox | /usr/bin/rt-mailgate --queue general --action correspond --url http://rt.myserver.com /rt -debug
/usr/bin/rt-mailgate: temp file is '/tmp/Dm_pceG62x'
/usr/bin/rt-mailgate: connecting to http://rt.myserver.com/rt/REST/1.0/NoAuth/mail-gateway
An Error Occurred
=================
302 Found
/usr/bin/rt-mailgate: undefined server error
Grep all my logs for what happens at the same time and....
apache2/access.log:
rt.myserver.com - - [14/Mar/2012:14:05:33 -0700] "POST /rt/REST/1.0/NoAuth/mail-gateway HTTP/1.1" 302 715 "-" "libwww-perl/6.04"
mail.info:
Mar 14 14:05:33 RT-PROD-SVR postfix/qmgr[4393]: 17286120B94: from=<mymail at mycompany.com>, size=7604, nrcpt=1 (queue active)
mail.info:
Mar 14 14:05:33 RT-PROD-SVR postfix/local[29538]: 88DCB1207CF: to=<queue at rt.myserver.com, relay=local, delay=81689, delays=81689/0.01/0/0.31, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/bin/rt-mailgate: temp file is '/tmp/3JQL31W2oY' /usr/bin/rt-mailgate: connecting to http://rt.myserver.com/REST/1.0/NoAuth/mail-gateway An Error Occurred ================= 302 Found /usr/bin/rt-mailgate: undefined server error )
rt3.log shows nothing but:
[Wed Mar 14 15:56:08 2012] [error]: gpg: error reading key: secret key not available (/usr/share/request-tracker3.8/lib/RT/Crypt/GnuPG.pm:2078)
Which is from earlier.
/etc/aliases:
# See man 5 aliases for format
postmaster: myroot
help: "|/usr/bin/rt-mailgate --queue general --action correspond --url http://rt.myserver.com/rt -debug"
comment: "|/usr/bin/rt-mailgate --queue general --action comment --url http://rt.myserver.com/rt -debug"
I've got the following in my httpd.conf
<Directory /usr/share/request-tracker3.8/html/NoAuth/*>
AllowOverRide None
Satisfy Any
</Directory>
<Directory /usr/share/request-tracker3.8/html/REST/1.0/NoAuth/*>
AllowOverRide None
Allow from all
Satisfy Any
</Directory>
<Location "/rt/NoAuth/">
Order allow,deny
Allow from all
Satisfy Any
</Location>
<Location "/rt/REST/1.0/NoAuth/">
Order allow,deny
Allow from all
Satisfy Any
</Location>
Logging options in RT_SiteConfig.d
## Logging Options
# From lowest to highest priority, the levels are:
# debug info notice warning error critical alert emergency
Set($LogToSyslog, 'info');
Set($LogToScreen, 'warning');
# log to /var/log/rt3.log
Set($LogToFile, 'debug');
Set($LogDir, '/var/log');
Set($LogToFileNamed , "rt3.log");
On Fri, Feb 24, 2012 at 10:24:52PM +0000, Jourdan Perla wrote:
> Fixed it. I was missing an Auth exclusion for the /REST/1.0/NoAuth
> directory
>
> As for the RT logs, can't find them. And can't find out where they're
> configured.
Search in RT_Config.pm for the various Log config options and check their documentation. Then see what you have in your RT_SiteConfig.pm
-kevin
>
> On 2/24/12 2:15 PM, "Kevin Falcone" <falcone at bestpractical.com> wrote:
>
> >On Fri, Feb 24, 2012 at 08:54:00PM +0000, Jourdan Perla wrote:
> >> Install of RT3.8 on Ubuntu 10.4 LTS.
> >> I'm getting that pesky "302 Found" error as I'm trying to push
> >>mail into my queues using
> >> rt-mailqueue.
> >> I've done the usual Googling and wiki hunts, and I've run out of
> >>options.
> >> - Aliases are working fine, it's a rt-mailgate error.
> >> - Plack is up to date (0.9985).
> >> - There's no extra '/'. It's finding rt-mailgate fine.
> >> - Not configured for SSL. That's on my to-do list, and if I need
> >>to bump that up, I will.
> >> Command : /usr/bin/rt-mailgate --queue myqueue --action
> >>correspond --url
> >> http://myserver.com/rt -debug < test.msg
> >> Output:
> >> /usr/bin/rt-mailgate: temp file is '/tmp/TykSIIvN17'
> >> /usr/bin/rt-mailgate: connecting to
> >>http://myserver.com/rt/REST/1.0/NoAuth/mail-gateway
> >> An Error Occurred
> >> =================
> >> 302 Found
> >> /usr/bin/rt-mailgate: undefined server error
> >> Thoughts?
> >
> >What's in the RT logs.
> >
> >What's your test.msg.
> >
> >Also, Plack is only used in RT4
> >
> >-kevin
> >--------
> >RT Training Sessions
> >(http://bestpractical.com/services/training.html)
> >* Boston — March 5 & 6, 2012
>
More information about the rt-users
mailing list