i have installed request tracker version 4.0.19 and installed postfix for
local use only. I seem to encounter a 302 error in my mail log whenever i
try to send a email to my rt server. Below is a summary of my files
configuration. How do I overcome the error 302? Need help desperately…
Apr 17 12:22:44 jeevan-VirtualBox postfix/local[20006]: 7F88050FBE:
to=general@rt.example.com, relay=local, delay=561, delays=561/0.01/0/0.21,
dsn=4.3.0, status=deferred (temporary failure. Command output:
/opt/rt4/bin/rt-mailgate: temp file is ‘/tmp/fNLeBJozQB/xTio2oPWY4’
/opt/rt4/bin/rt-mailgate: connecting to http://rt.example.com/REST/1.0/NoAuth/mail-gateway An Error Occurred
================= 302 Found /opt/rt4/bin/rt-mailgate: undefined server
error )
i have installed request tracker version 4.0.19 and installed postfix for
local use only. I seem to encounter a 302 error in my mail log whenever i
try to send a email to my rt server. Below is a summary of my files
configuration. How do I overcome the error 302? Need help desperately…
Apr 17 12:22:44 jeevan-VirtualBox postfix/local[20006]: 7F88050FBE:
to=general@rt.example.com, relay=local, delay=561, delays=561/0.01/0/0.21,
dsn=4.3.0, status=deferred (temporary failure. Command output:
/opt/rt4/bin/rt-mailgate: temp file is ‘/tmp/fNLeBJozQB/xTio2oPWY4’
/opt/rt4/bin/rt-mailgate: connecting to http://rt.example.com/REST/1.0/NoAuth/mail-gateway An Error Occurred
================= 302 Found /opt/rt4/bin/rt-mailgate: undefined server
error )
rt-mailgate got an error from RT.
What’s in your RT logs?
My guess, since this is a 302 error, is that you have apache
configured to send http:// to https:// or that you have an external
auth module which is redirecting away, but you can find that in your
Apache logs.
Uhmm below is the log from my apache2 error.log file
[Thu Apr 17 16:08:55.632134 2014] [core:notice] [pid 28005:tid 3073903168]
AH00094: Command line: ‘/usr/sbin/apache2’
[28128] [Thu Apr 17 08:10:36 2014] [info]: Successful login for root from
127.0.0.1 (/opt/rt4/sbin/…/lib/RT/Interface/Web.pm:758)
[Thu Apr 17 16:13:43.091080 2014] [mpm_event:notice] [pid 28005:tid
3073903168] AH00491: caught SIGTERM, shutting down
[Fri Apr 18 08:19:38.043920 2014] [ssl:warn] [pid 2661:tid 3074636352]
AH01909: RSA certificate configured for rt.example.com:443 does NOT include
an ID which matches the server name
[Fri Apr 18 08:19:38.127954 2014] [ssl:warn] [pid 2662:tid 3074636352]
AH01909: RSA certificate configured for rt.example.com:443 does NOT include
an ID which matches the server name
[Fri Apr 18 08:19:38.130231 2014] [mpm_event:notice] [pid 2662:tid
3074636352] AH00489: Apache/2.4.6 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.0.1e
configured – resuming normal operations
[Fri Apr 18 08:19:38.130273 2014] [core:notice] [pid 2662:tid 3074636352]
AH00094: Command line: ‘/usr/sbin/apache2’
[2818] [Fri Apr 18 00:20:58 2014] [error]: Couldn’t parse or find sender’s
address (/opt/rt4/sbin/…/lib/RT/Interface/Email/Auth/MailFrom.pm:74)
[2818] [Fri Apr 18 00:20:58 2014] [error]: Could not record email: Could not
load a valid user (/opt/rt4/share/html/REST/1.0/NoAuth/mail-gateway:75)
I’m not sure where to find my RT log files… Could you please help point it
out? I’ve already looked in the /opt/rt4/var/log directory but there’s
nothing there… Please and thank you!!
Uhmm below is the log from my apache2 error.log file
[2818] [Fri Apr 18 00:20:58 2014] [error]: Couldn’t parse or find sender’s
address (/opt/rt4/sbin/…/lib/RT/Interface/Email/Auth/MailFrom.pm:74)
[2818] [Fri Apr 18 00:20:58 2014] [error]: Could not record email: Could not
load a valid user (/opt/rt4/share/html/REST/1.0/NoAuth/mail-gateway:75)
I’m not sure where to find my RT log files… Could you please help point it
out? I’ve already looked in the /opt/rt4/var/log directory but there’s
nothing there… Please and thank you!!
Unless you’ve configured RT to log to that directory, it won’t.
I’ve quoted out the part which says that your email looked invalid and
couldn’t be parsed. Please show the email.
Also, your server appears to be using SSL, so I’m not sure why your
rt-mailgate is configured to post to an http:// url.
Uhmm I usually email using telnet rt.example.com 25. I use general as the
recipient mail which is accepted by the system as general@rt.example.com.
Then in the body text I usually just include a subject line and a few random
words. I’m not too clear on your question. Sorry… Also I’m not too clear on
what you mean by "Also, your server appears to be using SSL, so I’m not sure
why your rt-mailgate is configured to post to an http:// url. " Does that
mean that in the /etc/aliases file i change the url to https://
I followed a guide on how to set up the request tracker system by this
person
as provided by the requesttracker wikia. Even though the website does
mention that the guides are outdated I still used it to help me set up the
system.
Sorry for my incompetence… Thank you for your patience thus far…
It showed me that there were 3 things I needed to do.
If the firewall was enabled, allow connections to the port 25 using “ufw
allow 25/tcp”
For my /etc/aliases file, I shouldn’t have declared the url as http://
but instead https://
Since I didn’t have an official SSL certificate for the site as it is a
local site, I should include the --no-verify-ssl option in the /etc/aliases
so that the mail gateway trusts all SSL certificates as described by the
rt-mailgate documentation.
That being said, the rt-mailgate quickly created the ticket as soon as i
restarted all the necessary services and refreshed the queue. Thanks a lot
for your help and patience with me!
P.S: I have another question tho, how come when I install RT-IR-3.0.1 on the
RT-4.2.3, I get an Apache WebServer error? Should I post this as a separate
question all together?
P.S: I have another question tho, how come when I install RT-IR-3.0.1 on the
RT-4.2.3, I get an Apache WebServer error? Should I post this as a separate
question all together?
RTIR questions should go to the rtir mailing list, but I’ll answer
this here.
I’m not sure how you installed RTIR 3.0.1, since it’ll die with this
error when you try to install it on 4.2.3
perl Makefile.PL
RTIR 3.0.x is only compatible with RT 4.0.x and you are using RT 4.2.3
to be clear, RTIR 3.0 is for RT 4.0
The in-development master branch of rtir will become RTIR 3.2 which
will be compatible with RT 4.2.