Setup RT-Mailgate

Can’t seem to get by the error message

Delivery error (command rt-mailgate 15858 wrote to stderr: cannot chdir to /root from /tmp/pZl8XRe4lY: Permission denied, aborting. at /usr/lib/perl5/5.16.2/File/Temp.pm line 902.)
msg 1/3 (42630 bytes), delivery error (command rt-mailgate 15858 wrote to stderr: cannot chdir to /root from /tmp/pZl8XRe4lY: Permission denied, aborting. at /usr/lib/perl5/5.16.2/File/Temp.pm line 902.)
Delivery error (command rt-mailgate 15863 wrote to stderr: cannot chdir to /root from /tmp/gYjk0TygPY: Permission denied, aborting. at /usr/lib/perl5/5.16.2/File/Temp.pm line 902.)

Looking for some help

Thanks
Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726 • 262-783-6261 ext. 2296
bbaker@copesan.commailto:cstephan@copesan.com
www.copesan.comhttp://www.copesan.com/
“Servicing North America with Local Care”

I figured out the issue. All I have to do is run the program from the tmp directory.

I now get the following message
delivered to MDA_external command rt-mailgate ()

But can’t find it in RT no ticket created.

Thanks for help

Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726 • 262-783-6261 ext. 2296
bbaker@copesan.commailto:cstephan@copesan.com
www.copesan.comhttp://www.copesan.com/
"Servicing North America with Local Care"From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Bryon Baker
Sent: Friday, June 28, 2013 4:26 PM
To: RT users
Subject: [rt-users] Setup RT-Mailgate

Can’t seem to get by the error message

Delivery error (command rt-mailgate 15858 wrote to stderr: cannot chdir to /root from /tmp/pZl8XRe4lY: Permission denied, aborting. at /usr/lib/perl5/5.16.2/File/Temp.pm line 902.)
msg 1/3 (42630 bytes), delivery error (command rt-mailgate 15858 wrote to stderr: cannot chdir to /root from /tmp/pZl8XRe4lY: Permission denied, aborting. at /usr/lib/perl5/5.16.2/File/Temp.pm line 902.)
Delivery error (command rt-mailgate 15863 wrote to stderr: cannot chdir to /root from /tmp/gYjk0TygPY: Permission denied, aborting. at /usr/lib/perl5/5.16.2/File/Temp.pm line 902.)

Looking for some help

Thanks
Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726 • 262-783-6261 ext. 2296
bbaker@copesan.commailto:cstephan@copesan.com
www.copesan.comhttp://www.copesan.com/
“Servicing North America with Local Care”

I figured out the issue. All I have to do is run the program from the tmp directory.

I now get the following message

delivered to MDA_external command rt-mailgate ()

But can’t find it in RT no ticket created.

I don’t see where you specified what I assume is your fetchmail
configuration to run rt-mailgate?

You should also be reading your Apache logs to make sure that
rt-mailgate is actually connecting to RT.

-kevin

I am getting the following message when getting mail.
delivered to MDA_external command rt-mailgate ()
I cannot find any new tickets.

I do not appear to have connect messages in the apache logs. What do I need to check next?

Here is my get mail log
Getmail config
[retriever]
type = SimpleIMAPSSLRetriever
server = imap.gmail.com
port = 993
username = testxxxxxx@gmail.com
password = xxxxxxxxxx
mailboxes = (‘INBOX’,)

[destination]
type = MDA_external
path = /usr/bin/rt-mailgate
user = rtuser
group = rtgroup
arguments = (“–url”, “http://localhost/rt”, “–queue”, “IT Support”, “–action”, “correspond”,)

[options]
read_all = false
delete = false
received = false
delivered_to = false
message_log = /var/log/request-tracker/mvmail.log

Thanks
Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726 . 262-783-6261 ext. 2296
bbaker@copesan.com

“Servicing North America with Local Care”-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kevin Falcone
Sent: Monday, July 01, 2013 11:12 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Setup RT-Mailgate

On Fri, Jun 28, 2013 at 09:57:56PM +0000, Bryon Baker wrote:

I figured out the issue. All I have to do is run the program from the tmp directory.

I now get the following message

delivered to MDA_external command rt-mailgate ()

But can’t find it in RT no ticket created.

I don’t see where you specified what I assume is your fetchmail configuration to run rt-mailgate?

You should also be reading your Apache logs to make sure that rt-mailgate is actually connecting to RT.

-kevin

I am getting the following message.

RT could not load a valid user, and RT’s configuration does not allow
for the creation of a new user for your email.

Do I need to create an everyone group and give that group rights to create Tickets? Or How do I control who creates tickets when they are coming in from emaIl?

Thanks
Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726 . 262-783-6261 ext. 2296
bbaker@copesan.com

“Servicing North America with Local Care”-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kevin Falcone
Sent: Monday, July 01, 2013 11:12 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Setup RT-Mailgate

On Fri, Jun 28, 2013 at 09:57:56PM +0000, Bryon Baker wrote:

I figured out the issue. All I have to do is run the program from the tmp directory.

I now get the following message

delivered to MDA_external command rt-mailgate ()

But can’t find it in RT no ticket created.

I don’t see where you specified what I assume is your fetchmail configuration to run rt-mailgate?

You should also be reading your Apache logs to make sure that rt-mailgate is actually connecting to RT.

-kevin

That was the trick give rights to the global everyone group.

Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726 . 262-783-6261 ext. 2296
bbaker@copesan.com

"Servicing North America with Local Care"From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Bryon Baker
Sent: Monday, July 01, 2013 1:23 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Setup RT-Mailgate

I am getting the following message.

RT could not load a valid user, and RT’s configuration does not allow for the creation of a new user for your email.

Do I need to create an everyone group and give that group rights to create Tickets? Or How do I control who creates tickets when they are coming in from emaIl?

Thanks
Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726 . 262-783-6261 ext. 2296
bbaker@copesan.com

“Servicing North America with Local Care”