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@mycompany.com, size=7604, nrcpt=1 (queue active)
mail.info:
Mar 14 14:05:33 RT-PROD-SVR postfix/local[29538]: 88DCB1207CF: to=<queue@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 /usr/share/request-tracker3.8/html/REST/1.0/NoAuth/>
AllowOverRide None
Allow from all
Satisfy Any
<Location “/rt/NoAuth/”>
Order allow,deny
Allow from all
Satisfy Any
<Location “/rt/REST/1.0/NoAuth/”>
Order allow,deny
Allow from all
Satisfy Any
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”);
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