[rt-users] I can't create a ticket in RT

Wagner Pereira wpereira at pop-sp.rnp.br
Mon Feb 8 09:21:47 EST 2010


Hi, folks.

I need some help with that: There is a Postfix MTA running in the same 
server of RT.

I configured procmail to deliver the messages to rt-mailgate, but after 
some tests I still can't create a ticket through e-mail messages.

This is my rt.log:

===========================
403 Forbidden
This is /usr/bin/rt-mailgate exiting because of an undefined server 
error at /usr/bin/rt-mailgate line 150, <> line 1.
procmail: [8934] Mon Feb  8 11:09:13 2010
procmail: Program failure (75) of "rt-mailgate"
procmail: Rescue of unfiltered data succeeded
procmail: [8934] Mon Feb  8 11:09:13 2010
procmail: Match on ! 
"^From:.*@(cais.rnp.br|pop-ba.rnp.br|outrocliente.dominio)"
procmail: Match on ! "(^(Mailing-List:|Precedence:.*(junk|bulk|list)|To: 
Multiple recipients of 
|(((Resent-)?(From|Sender)|X-Envelope-From):|>?From 
)([^>]*[^(.%@a-z0-9])?(Post(ma?(st(e?r)?|n)|office)|(send)?Mail(er)?|daemon|m(mdf|ajordomo)|n?uucp|LIST(SERV|proc)|NETSERV|o(wner|ps)|r(e(quest|sponse)|oot)|b(ounce|bs\.smtp)|echo|mirror|s(erv(ices?|er)|mtp(error)?|ystem)|A(dmin(istrator)?|MMGR|utoanswer))(([^).!:a-z0-9][-_a-z0-9]*)?[%@>       
][^<)]*(\(.*\).*)?)?$([^>]|$)))"
procmail: Executing " (formail -r -I "Precedence: junk" \
-A"X-Loop: root at pop-sp.rnp.br" ; \
cat $DIR/resp) | $SENDMAIL -t -F "PoP-SP/RNP" -f postmaster at pop-sp.rnp.br "
procmail: Assigning "LASTFOLDER= (formail -r -I "Precedence: junk" \
-A"X-Loop: root at pop-sp.rnp.br" ; \
cat $DIR/resp) | $SENDMAIL -t -F "PoP-SP/RNP" -f postmaster at pop-sp.rnp.br "
procmail: Assigning "PATH=/nonexistent/bin:/usr/local/bin:/usr/bin:/bin"
cat: /home/rt/resp: No such file or directory
procmail: Assigning 
"LASTFOLDER=/home/rt/default/new/1265634553.8934_0.rtracker.rt"
procmail: Notified comsat: 
"nobody at 0:/home/rt/default/new/1265634553.8934_0.rtracker.rt"
 From wpereira at pop-sp.rnp.br  Mon Feb  8 11:09:12 2010
Subject: teste 08-02-2010 11:08
Folder: 
/home/rt/default/new/1265634553.8934_0.rtracker.rt                869
===========================

Ans this is my procmailrc file:

===========================
# Configuracao do Procmailrc
DIR=/home/rt
MAILDIR=$DIR/default
#DEFAULT=$DIR/default
DEFAULT=$MAILDIR/
LOGFILE=$DIR/rt.log
SHELL=/bin/bash
DEBUG=yes
VERBOSE=yes

FILA="$1"
OPC="$2"

# Caso 1 - clientes autorizados
:0fw
* ^From:.*@(pop-sp.rnp.br|rtracker.rt.pop-sp.rnp.br|usp.br)
| rt-mailgate --debug --queue ${FILA} --action ${OPC} --url 
https://rtracker.rt.pop-sp.rnp.br/rt

# Caso 2 - cliente nao autorizado
:0 h c
* !^From:.*@(cais.rnp.br|pop-ba.rnp.br|outrocliente.dominio)
* !^FROM_DAEMON
| (formail -r -I "Precedence: junk" \
-A"X-Loop: root at pop-sp.rnp.br" ; \
cat $DIR/resp) | $SENDMAIL -t -F "PoP-SP/RNP" -f postmaster at pop-sp.rnp.br
===========================

Thank you all a lot.

-- 

Wagner Pereira

PoP-SP/RNP - Ponto de Presença da RNP em São Paulo
CCE/USP - Centro de Computação Eletrônica da Universidade de São Paulo
http://www.pop-sp.rnp.br
Tel. (11) 3091-8901




More information about the rt-users mailing list