Unable to add message to queue, 1.0.7


#1

I created a queue “test”. I also added a user admin (in anticipation of
removing the root user) with my email address. This user was set as an rt
admin, and has manipulate access to the queue “test”. I am running qmail
on FreeBSD. I added to /var/qmail/alias the following:

.qmail-rt-test:
|/usr/local/rt/bin/rt-mailgate test correspond

I’ve tested the alias with a simple perl test script, and arguments are
getting passed correctly. The return message (shown below) leads me to
believe that the message is getting passed to the script correctly as well.

What I think based on what I can tell is that for some reason the mailgate
is not realizing that it should add the job to the “test” queue. I think
this because in the subject of the return message it has (_rt_system) which
is a subdir under the queue directory that was created by default. I’m not
sure if I’m reading it right. My next test will be to enable the extended
syntax and mess with some debug options and the like, but I wanted to see
if anyone had any idea what was going on before I messed with it.

Which brings up another question: are debug messages written to a logfile,
or to stdout/stderr? I’m operating on very little sleep (I hate quick
deadlines, but the pay is good), so if there was a Makefile option for the
debug log save path, then forgive this question. :wink:

TIA – return message below:Subject: [host.net #0] (_rt_system) RT Error: test
To: shane@tacni.net

There has been an error:
There has been an error with your request:
You don’t have permission to create requests in this queue. Either you’re
not a queue member or non-members aren’t allowed to create requests in this
queue.

Your message is reproduced below:

test
Shane shane@tacni.net

Teamwork is essential – it allows you to blame someone else.

— Headers Follow —

Date: Fri, 18 May 2001 00:47:30 -0500
To: rt-test@host.net
From: me shane@tacni.net
Subject: test

-------------------------------------------- Managed by Request Tracker


#2

Shane Allen writes:

Which brings up another question: are debug messages written to a logfile,
or to stdout/stderr? I’m operating on very little sleep (I hate quick

Well, I slept a bit since I sent this message last night, and I’m now quite
sure that there is no documentation that I’ve been able to find about how
the debug function in the extended syntax of rt-mailgate works. Anyone have
any ideas?

Better still, anyone have any idea why a message sent to a properly
configured mail alias (mail alias is set to go to “rt-mailgate test
correspond”) keeps getting added to _rt_system? I say properly configured
mail alias, because if I create a request using the web interface, I can
then reply to that ticket number and it updates the transaction history for
that ticket. I do not want to open the queue up to receive request from
anyone via email, but I do want to be able to send a message and start a
queue if for some reason that’s necessary…

I just found the mail commands HTML file on the web site in the docs area
(it wasn’t in the tarball I downloaded). I notice there are commands to
login… do they have to be included in the attempt to create a ticket?

I’ve left the original message that I receive from RT attached below in
case it can help someone help me.

TIA


#3

Shane Allen writes:

Better still, anyone have any idea why a message sent to a properly
configured mail alias (mail alias is set to go to “rt-mailgate test
correspond”) keeps getting added to _rt_system?

I’ve now tried everything I can think of. Following are the details of my
system:

$ uname -a
FreeBSD host.net 4.3-STABLE FreeBSD 4.3-STABLE #1: Sun May 13 16:47:54 CDT
2001 root@host.net:/usr/obj/usr/src/sys/HOST i386
$ perl -V
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
Platform:
osname=freebsd, osvers=4.0-current, archname=i386-freebsd
uname=‘FreeBSD freefall.FreeBSD.org 4.0-current FreeBSD 4.0-current #0:
$Date$

hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
Compiler:
cc=‘cc’, optimize=‘undef’, gccversion=2.95.2 19991024 (release)
cppflags=’‘
ccflags =’‘
stdchar=‘char’, d_stdstdio=undef, usevfork=true
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld=‘cc’, ldflags =’-Wl,-E -lperl -lm ‘
libpth=/usr/lib
libs=-lm -lc -lcrypt
libc=, so=so, useshrplib=true, libperl=libperl.so.3
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=’
-Wl,-R/usr/lib’
cccdlflags=’-DPIC -fpic’, lddlflags=’-Wl,-E -shared -lperl -lm ’

Characteristics of this binary (from libperl):
Built under freebsd
Compiled at May 13 2001 11:27:45
@INC:
/usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005
.

running qmail (latest stable version)

RT was set up with the following as the MAIL_PROGRAM =
/var/qmail/bin/sendmail

and the following args: MAIL_OPTIONS = -oi -t

I have created a user “admin” and a queue “test”. Both function perfectly
from the web interface. “admin” is a member of “test” with manipulate
permissions.

I have used the following mail aliases for rt-test@host.net:
|/usr/local/rt/bin/rt-mailgate test correspond
|/usr/local/rt/bin/rt-mailgate --extended-syntax -q test -a correspond -v
-d>/tmp/rt-debug.log

when I send email to rt-test@host.net using the top alias, I get a message
back with the subject:

using the bottom I receive the the same reply, and the following info
appears in /tmp/rt-debug.log:

Ticket=‘0’ Queue=‘test’ Area=’’ Sender='opiate@cyberfox.org’
Precedence=‘first-class’

I have not been able to figure out how to view the "running commentary"
provided by the -d switch in the bottom alias. (per “./rt-mailgate --help”)

I just sent a message containing the following:

–begin–
%RT USER admin
%RT PASS **********

I hope this creates a request.
–end–

I received two replies:

–begin reply 1–
Thank you for taking some action:

%RT USER admin
RT: Username admin noticed.
PASS ***** RT: You are now authenticated as admin.

-------------------------------------------- Managed by Request Tracker
–end reply 1–

–begin reply 2–

There has been an error:
There has been an error with your request:
You don’t have permission to create requests in this queue. Either you’re
not a queue member or non-members aren’t allowed to create requests in this
queue.

Your message is reproduced below:

I hope this creates a request.
–end reply 2–

If I am understanding correctly, the subject should have a (test), not a
(_rt_system) in it. Any ideas why this is occuring?

TIA for any assistance you can provide.

Shane Allen shane@tacni.net


#4

Shane Allen writes:

okay… so I finally decided to try enabling “Allow non-members to create
tickets”. It worked.

Why does 1.0.7 not allow queue members with “admin” access to create
tickets? Basically, I am forced to either let the world create tickets, or
I HAVE to use the web interface to create tickets. This makes no sense to
me… is this a bug/feature or a misconfiguration on my part?

I’ve tried sending %RT USER and PASS commands, and been auth’d with admin
access to the queue, and adding a ticket still failed.

Also, after reading through rt/lib/rt/ui/mail/manipulate.pm, I see why I
wasn’t getting any debug messages…

Shane Allen shane@tacni.net

#!/usr/bin/perl -w
$_ = q;4a75737420616e6f74686572205065726c204861636b65720as;;
for(s;s;s;s;s;s;s;s;s;s;s;s){s;(…)s?;qq qprint chr 0x$1 and \161
ssq;excess;}


#5

RT1 doesn’t parse email addresses for privileges when mail comes in.On Sun, May 20, 2001 at 11:53:24AM +0000, Shane Allen wrote:

Shane Allen writes:

okay… so I finally decided to try enabling “Allow non-members to create
tickets”. It worked.

Why does 1.0.7 not allow queue members with “admin” access to create
tickets? Basically, I am forced to either let the world create tickets, or
I HAVE to use the web interface to create tickets. This makes no sense to
me… is this a bug/feature or a misconfiguration on my part?

I’ve tried sending %RT USER and PASS commands, and been auth’d with admin
access to the queue, and adding a ticket still failed.

Also, after reading through rt/lib/rt/ui/mail/manipulate.pm, I see why I
wasn’t getting any debug messages…


Shane Allen shane@tacni.net

#!/usr/bin/perl -w
$_ = q;4a75737420616e6f74686572205065726c204861636b65720as;;
for(s;s;s;s;s;s;s;s;s;s;s;s){s;(…)s?;qq qprint chr 0x$1 and \161
ssq;excess;}


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

jesse reed vincent – root@eruditorum.orgjesse@fsck.com
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

pretty soon we’re going to HAVE to have hypertext mail!
–Tim Berners Lee. (8 Jan 1993 on www-talk)