RT 3.8.8 rt-mailgate issues

rt-mailgate doesn’t seem to be injecting new tickets into a fresh install
of rt 3.8.8 on RHEL5

/var/log/maillog reports:

Sep 14 14:20:13 myhost sendmail[32687]: o8EIKDHh032687:
from=root@myhost.mydomain.com, size=353, class=0, nrcpts=1,
msgid=201009141820.o8EIKDoZ032686@myhost.mydomain.com, proto=ESMTP,
daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Sep 14 14:20:13 myhost sendmail[32686]: o8EIKDoZ032686:
to=rt@myhost.mydomain.com, ctladdr=root (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30065, relay=[127.0.0.1] [127.0.0.1],
dsn=2.0.0, stat=Sent (o8EIKDHh032687 Message accepted for delivery)
Sep 14 14:20:13 myhost sendmail[32688]: o8EIKDHh032687:
to="|/etc/smrsh/rt-mailgate --queue general --action correspond --url
http://myhost.mydomain.com/ticket", ctladdr=rt@myhost.mydomain.com
(8/0), delay=00:00:00, xdelay=00:00:00, mailer=prog, pri=30576, dsn=2.0.0,
stat=Sent

I have the following in /etc/aliases :

rt: "|/etc/smrsh/rt-mailgate --queue general --action correspond --url
http://myhost.mydomain.com/ticket"
rt-comment: “|/etc/smrsh/rt-mailgate --queue general --action comment
–url http://myhost.mydomain.com/ticket

The following produces no errors, but doesn’t inject the ticket into RT
either:

[root@myhost ~]# cat msg.txt | /etc/smrsh/rt-mailgate --queue general
–action correspond --url http://myhost.mydomain.com/ticket
[root@myhost ~]#

[root@myhost ~]# cat msg.txt
testing
[root@myhost ~]#

Can anyone push me in the right direction on how to troubleshoot this?

Hello, anyone ?

[root@myhost ~]# echo “hi” | /etc/smrsh/rt-mailgate --queue General
–action correspond --url http://myhost.mydomain.com/ticket --debug
/etc/smrsh/rt-mailgate: temp file is ‘/tmp/Bsdm047j3r’
/etc/smrsh/rt-mailgate: connecting to
http://myhost.mydomain.com/ticket/REST/1.0/NoAuth/mail-gateway
not ok - Could not load a valid user
[root@myhost ~]#

I have granted CreateTicket and ReplyToTicket rights to “Everyone” for the
general queue …

does anyone know what’s going on?

Val,

Not enough info, guy. I don’t know whether you’re using LDAP and the UserId
of the email sender was OK, what your RT_SiteConfig.pm settings are, What
global privileges you set, what Queue privileges you set, for what
groups/roles. What other error messages showed up in the rt.log. There are a
WHOLE BUNCH of reason’s why a ticket might not get created. I don’t like to
guess what card you’re holding in your hand if you’re holding half a deck.

Kenn
LBNLOn Tue, Sep 14, 2010 at 1:11 PM, Val Polyakov val@polyakov.me wrote:

Hello, anyone ?

[root@myhost ~]# echo “hi” | /etc/smrsh/rt-mailgate --queue General
–action correspond --url http://myhost.mydomain.com/ticket --debug
/etc/smrsh/rt-mailgate: temp file is ‘/tmp/Bsdm047j3r’
/etc/smrsh/rt-mailgate: connecting to
http://myhost.mydomain.com/ticket/REST/1.0/NoAuth/mail-gateway
not ok - Could not load a valid user
[root@myhost ~]#

I have granted CreateTicket and ReplyToTicket rights to “Everyone” for the
general queue …

does anyone know what’s going on?

rt-mailgate doesn’t seem to be injecting new tickets into a fresh install
of rt 3.8.8 on RHEL5

/var/log/maillog reports:

Sep 14 14:20:13 myhost sendmail[32687]: o8EIKDHh032687:
from=root@myhost.mydomain.com, size=353, class=0, nrcpts=1,
msgid=201009141820.o8EIKDoZ032686@myhost.mydomain.com, proto=ESMTP,
daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Sep 14 14:20:13 myhost sendmail[32686]: o8EIKDoZ032686:
to=rt@myhost.mydomain.com, ctladdr=root (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30065, relay=[127.0.0.1] [127.0.0.1],
dsn=2.0.0, stat=Sent (o8EIKDHh032687 Message accepted for delivery)
Sep 14 14:20:13 myhost sendmail[32688]: o8EIKDHh032687:
to="|/etc/smrsh/rt-mailgate --queue general --action correspond --url
http://myhost.mydomain.com/ticket", ctladdr=rt@myhost.mydomain.com
(8/0), delay=00:00:00, xdelay=00:00:00, mailer=prog, pri=30576,
dsn=2.0.0,
stat=Sent

I have the following in /etc/aliases :

rt: "|/etc/smrsh/rt-mailgate --queue general --action
correspond --url
http://myhost.mydomain.com/ticket"
rt-comment: “|/etc/smrsh/rt-mailgate --queue general --action comment
–url http://myhost.mydomain.com/ticket

The following produces no errors, but doesn’t inject the ticket into RT
either:

[root@myhost ~]# cat msg.txt | /etc/smrsh/rt-mailgate --queue general
–action correspond --url http://myhost.mydomain.com/ticket
[root@myhost ~]#

[root@myhost ~]# cat msg.txt
testing
[root@myhost ~]#

Can anyone push me in the right direction on how to troubleshoot this?

RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year – Learn how to get the most out of RT!

RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year – Learn how to get the most out of RT!

Hello, anyone ?

[root@myhost ~]# echo “hi” | /etc/smrsh/rt-mailgate --queue General

This is not a valid test. You need to have a From: line or you’ll get

–action correspond --url http://myhost.mydomain.com/ticket --debug
/etc/smrsh/rt-mailgate: temp file is ‘/tmp/Bsdm047j3r’
/etc/smrsh/rt-mailgate: connecting to
http://myhost.mydomain.com/ticket/REST/1.0/NoAuth/mail-gateway
not ok - Could not load a valid user

not a valid user

Your previous report lacked RT’s logs of the error which means any
answer is a guess.

-kevin