Re: [rt-users] Fetchmail

2016-07-05 Thread Dunbar, Brian
Sorry about all the messages . They were being blocked by Barracuda so I 
whitelisted it and all my messages came.

From: rt-users [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of 
Dunbar, Brian
Sent: Tuesday, July 5, 2016 11:22 AM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Fetchmail

Hello RT_Users,

I have exim4 working to send mails from RT and I am trying to use fetchmail to 
poll exchange and collect the messages.
Fetchmail returns  Fetchmail MDA returned nonzero status 2 in the syslog. I 
also get POP3 Protocol error 19
I look at the exchange account and I can see that fetchmail is reading the 
messages.

I have also tried with imap and get error writing to mda broken pipe


Here is the fetchmail config

set daemon 30:
set invisible
set no bouncemail
set syslog

poll mail.server.ca protocol pop3
auth password
username "...@server.ca" password ""
mda "/opt/rt4/bin/rt-mailgate --queue xxx --action correspond --url 
http://xxx/";
no keep
#sslfingerprint "xxx"

Syslog
reading message 
xx...@server.ca@mail.server.ca:9 of 10 
(3310 octets) (log message incomplete)
not flushed



-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


Re: [rt-users] Fetchmail

2016-07-05 Thread Dunbar, Brian
I think the problem is RT-Mailgate is corrupt  I tried running /opt/rt4/bin 
./rt-mailgate –help and it stops with
:/opt/rt4/bin$ sudo vi rt-mailgate
:/opt/rt4/bin$ ./rt-mailgate --help
syntax error at ./rt-mailgate line 71, near "test:"
syntax error at ./rt-mailgate line 74, near "comments:"
BEGIN not safe after errors--compilation aborted at ./rt-mailgate line 79.


The relevant lines from rt-mailgate

70
 71 service.test: '|/opt/rt4/bin/rt-mailgate --queue service.test 
--action correspond
 72   --url http://server/rt';
 73
 74 servicetest.comments: '|/opt/rt4/bin/rt-mailgate --queue service.test 
--action comment
 75   --url http://server/rt/';
 76
 77 package RT::Client::MailGateway;
 78
 79 use LWP::UserAgent;

From: trevortho...@gmail.com [mailto:trevortho...@gmail.com] On Behalf Of Trev
Sent: Tuesday, July 5, 2016 11:33 AM
To: Dunbar, Brian
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Fetchmail

If your queue contains spaces in it, you may consider using single quotes:

poll oa-internal.domain.com protocol imap 
username "rt-correspondance" password "my_password" mda 
"/opt/rt4/bin/rt-mailgate --queue 'IT General' --action correspond --url 
http://rt.domain.com/"; no keep



On Tue, Jul 5, 2016 at 11:22 AM, Dunbar, Brian 
mailto:brian.dun...@von.ca>> wrote:
Hello RT_Users,

I have exim4 working to send mails from RT and I am trying to use fetchmail to 
poll exchange and collect the messages.
Fetchmail returns  Fetchmail MDA returned nonzero status 2 in the syslog. I 
also get POP3 Protocol error 19
I look at the exchange account and I can see that fetchmail is reading the 
messages.

I have also tried with imap and get error writing to mda broken pipe


Here is the fetchmail config

set daemon 30:
set invisible
set no bouncemail
set syslog

poll mail.server.ca protocol pop3
auth password
username "...@server.ca" password ""
mda "/opt/rt4/bin/rt-mailgate --queue xxx --action correspond --url 
http://xxx/";
no keep
#sslfingerprint "xxx"

Syslog
reading message 
xx...@server.ca@mail.server.ca:9 of 10 
(3310 octets) (log message incomplete)
not flushed




-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


Re: [rt-users] Custom fields in transaction

2016-07-05 Thread Nilesh
The use case is simple,

I want to move tickets to different queues based on a custom field and
this should happen when the agent is replying. So transaction is the
best place to introduce such a field.

-- 
Nilesh

On Tue, 2016-07-05 at 20:00 +0530, aniket tripathy wrote:
> Hi Nilesh,
> 
> Can you please explain,the use case. Just trying to understand the
> scenario where a transaction custom field would be best fit.
> 
> Thanks.
> -Aniket
> 
> On Fri, Jul 1, 2016 at 9:11 AM, Nilesh  wrote:
> > Hi,
> > 
> > I'm trying to assign the ticket to a queue based on a transaction
> > custom field, but I am unable to fetch the custom field in my
> > scrip.
> > 
> > Scrip details:
> > Condition: On correspond
> > Action: User defined
> > Template: Blank
> > 
> > Custom condition:
> > 1;
> > 
> > Custom action preparation code:
> > 1;
> > 
> > Custom action commit code:
> > my $queueName = $self->TicketObj->QueueObj->Name;
> > RT::Logger->info("Queue name: $queueName");
> > 
> > my $trans = $self->TransactionObj;
> > RT::Logger->info($trans->FirstCustomFieldValue("Product"));
> > 
> > --
> > 
> > The method FirstCustomFieldValue returns empty even though the
> > value is
> > set in form submission.
> > 
> > All the stuff I found on Google are about custom fields in tickets,
> > seems nobody uses transaction custom fields?
> > 
> > I'm using RT 4.4.0.
> > 
> > --
> > Nilesh
> > 
> > -
> > RT 4.4 and RTIR Training Sessions https://bestpractical.com/trainin
> > g
> > * Los Angeles - September, 2016
> > 
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


Re: [rt-users] help

2016-07-05 Thread Nagraj Arya
Can Anyone Help?


From: rt-devel [mailto:rt-devel-boun...@lists.bestpractical.com] On Behalf Of 
Nagraj Arya
Sent: Thursday, June 30, 2016 8:01 AM
To: rt-de...@lists.bestpractical.com; rt-users@lists.bestpractical.com
Subject: [rt-devel] help

Hi,
I am new to RT so your help is really appreciated.
We are trying to see if we can create a dashboard and add a field which shows 
all the attachments for that ticket in the dashboard itself
[cid:image001.png@01D1D6B4.590F5750]
Instead of going to the ticket details and  seeing the attachments.

[cid:image002.png@01D1D6B4.590F5750]


Is it possible, can you please guide me to achieve it..

//BR
Nagraj Arya
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


Re: [rt-users] help

2016-07-05 Thread Nagraj Arya
Can Anyone Help?

From: Nagraj Arya
Sent: Thursday, June 30, 2016 8:02 AM
To: 'rt-de...@lists.bestpractical.com'; 'rt-users@lists.bestpractical.com'
Subject: help

Hi,
I am new to RT so your help is really appreciated.
We are trying to see if we can create a dashboard and add a field which shows 
all the attachments for that ticket in the dashboard itself
[cid:image001.png@01D1D6B2.AA266220]
Instead of going to the ticket details and  seeing the attachments.

[cid:image002.png@01D1D6B2.AA266220]


Is it possible, can you please guide me to achieve it..

//BR
Nagraj Arya
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


[rt-users] FW: Fetchmail

2016-07-05 Thread Dunbar, Brian



Thank you for the reply there are no spaces but a period. I did have “” quotes 
and I changed it now to ‘ ‘ but still broken pipe

From: trevortho...@gmail.com 
[mailto:trevortho...@gmail.com] On Behalf Of Trev
Sent: Tuesday, July 5, 2016 11:33 AM
To: Dunbar, Brian
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Fetchmail

If your queue contains spaces in it, you may consider using single quotes:

poll oa-internal.domain.com protocol imap 
username "rt-correspondance" password "my_password" mda 
"/opt/rt4/bin/rt-mailgate --queue 'IT General' --action correspond --url 
http://rt.domain.com/"; no keep



On Tue, Jul 5, 2016 at 11:22 AM, Dunbar, Brian 
mailto:brian.dun...@von.ca>> wrote:
Hello RT_Users,

I have exim4 working to send mails from RT and I am trying to use fetchmail to 
poll exchange and collect the messages.
Fetchmail returns  Fetchmail MDA returned nonzero status 2 in the syslog. I 
also get POP3 Protocol error 19
I look at the exchange account and I can see that fetchmail is reading the 
messages.

I have also tried with imap and get error writing to mda broken pipe


Here is the fetchmail config

set daemon 30:
set invisible
set no bouncemail
set syslog

poll mail.server.ca protocol pop3
auth password
username "...@server.ca" password ""
mda "/opt/rt4/bin/rt-mailgate --queue xxx --action correspond --url 
http://xxx/";
no keep
#sslfingerprint "xxx"

Syslog
reading message 
xx...@server.ca@mail.server.ca:9 of 10 
(3310 octets) (log message incomplete)
not flushed




-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


Re: [rt-users] Fetchmail

2016-07-05 Thread Trev
If your queue contains spaces in it, you may consider using single quotes:

poll oa-internal.domain.com protocol imap username "rt-correspondance"
password "my_password" mda "/opt/rt4/bin/rt-mailgate --queue 'IT General'
--action correspond --url http://rt.domain.com/"; no keep



On Tue, Jul 5, 2016 at 11:22 AM, Dunbar, Brian  wrote:

> Hello RT_Users,
>
>
>
> I have exim4 working to send mails from RT and I am trying to use
> fetchmail to poll exchange and collect the messages.
>
> Fetchmail returns  Fetchmail MDA returned nonzero status 2 in the syslog.
> I also get POP3 Protocol error 19
>
> I look at the exchange account and I can see that fetchmail is reading the
> messages.
>
>
>
> I have also tried with imap and get error writing to mda broken pipe
>
>
>
>
>
> Here is the fetchmail config
>
>
>
> set daemon 30:
>
> set invisible
>
> set no bouncemail
>
> set syslog
>
>
>
> poll mail.server.ca protocol pop3
>
> auth password
>
> username "...@server.ca" password ""
>
> mda "/opt/rt4/bin/rt-mailgate --queue xxx --action correspond --url
> http://xxx/";
>
> no keep
>
> #sslfingerprint "xxx"
>
>
>
> Syslog
>
> reading message xx...@server.ca@mail.server.ca:9 of 10 (3310 octets) (log
> message incomplete)
>
> not flushed
>
>
>
>
>
>
>
> -
> RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
> * Los Angeles - September, 2016
>
>
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


[rt-users] Fetchmail

2016-07-05 Thread Dunbar, Brian
Hello RT_Users,

I have exim4 working to send mails from RT and I am trying to use fetchmail to 
poll exchange and collect the messages.
Fetchmail returns  Fetchmail MDA returned nonzero status 2 in the syslog. I 
also get POP3 Protocol error 19
I look at the exchange account and I can see that fetchmail is reading the 
messages.

I have also tried with imap and get error writing to mda broken pipe


Here is the fetchmail config

set daemon 30:
set invisible
set no bouncemail
set syslog

poll mail.server.ca protocol pop3
auth password
username "...@server.ca" password ""
mda "/opt/rt4/bin/rt-mailgate --queue xxx --action correspond --url 
http://xxx/";
no keep
#sslfingerprint "xxx"

Syslog
reading message 
xx...@server.ca@mail.server.ca:9 of 10 
(3310 octets) (log message incomplete)
not flushed



-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


[rt-users] (no subject)

2016-07-05 Thread Dunbar, Brian
Hello RT_Users,

I have exim4 working to send mails from RT and I am trying to use fetchmail to 
poll exchange and collect the messages.
Fetchmail returns  Fetchmail MDA returned nonzero status 2 in the syslog. I 
also get POP3 Protocol error 19
I look at the exchange account and I can see that fetchmail is reading the 
messages.

Here is the fetchmail config

set daemon 30:
set invisible
set no bouncemail
set syslog

poll mail.server.ca protocol pop3
auth password
username "...@server.ca" password ""
mda "/opt/rt4/bin/rt-mailgate --queue xxx --action correspond --url 
http://xxx/";
no keep
#sslfingerprint "xxx"

Syslog
reading message 
xx...@server.ca@mail.server.ca:9 of 10 
(3310 octets) (log message incomplete)
not flushed

-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


[rt-users] Improve RT API calls

2016-07-05 Thread Jack Beanstallk
Hi,

I am having issues where a web service makes around 40 API calls to RT the
time it takes can amount to around 15 seconds to fetch that data from RT.
Are there any ways to improve/advice to speed up RT API calls?

1. Can the API process be offloaded to another server?
2. Any ideas where the bottlenecks could be? In general the RT service is
quick to load and respond via the website.
3. A better way to code API calls to be more efficient?

Thanks
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016


[rt-users] Issues with RTExternalAuth

2016-07-05 Thread it_stuff
This is what I use to auth against ldap and local. 
(left out the ldap section ofcourse... 

# 
# User Authentication 
Set($ExternalAuth, 1); 

Set($ExternalAuthPriority, [ 'My_LDAP' ] ); 
Set($ExternalInfoPriority, [ 'My_LDAP' ] ); 
Set($UserAutocreateDefaultsOnLogin, { Privileged => 1 } ); 
Set($ExternalServiceUsesSSLorTLS, 0); 
Set($AutoCreateNonExternalUsers, 1); 
Set($ExternalAuthPriority,['My_LDAP']); 

Set($ExternalSettings, { 
'My_LDAP' => { ## GENERIC SECTION 
 


Regards, 

Tom 
-
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Los Angeles - September, 2016