Re: [rt-users] REST mail-gateway using 100% cpu

2014-01-16 Thread andriuss
The situation become a little bit clearer:

The failing mail header:
From:
=?UTF-8?B?ICJUb21hcyBNYXLEjWl1bGlvbmlzIiA8VG9tYXMuTWFyY2l1bGlvbmlzQGJp?=
 =?UTF-8?B?dGVzcGFydG5lcmlzLmx0Pg==?= 

But it should be the following (RT works just fine with that):
From: =?UTF-8?B?VG9tYXMgTWFyxI1pdWxpb25pcw==?=
 tomas.marciulio...@bitespartneris.lt

Clients mail program, probably encodes all the header, no matter that there
are no non-ascii symbols in the second part of the header (
tomas.marciulio...@bitespartneris.lt);

The RT somehow can't handle the second encoded part of FROM header and after
180s timeout I get:

HTTP request failed: 500 read timeout. Your webserver logs may have more
information or there may be a network problem.
/opt/rt4/bin/rt-mailgate: undefined server error

In the logs I can only see: 
[8944] [Thu Jan 16 06:23:10 2014] [debug]: Encode::Guess guessed encoding:
ascii (/opt/rt4/sbin/../lib/RT/I18N.pm:594)
[8946] [Thu Jan 16 08:35:30 2014] [debug]: Converting 'utf-8' to 'utf-8' for
text/plain - Subjectless message (/opt/rt4/sbin/../lib/RT/I18N.pm:294)
[8946] [Thu Jan 16 08:35:30 2014] [debug]: Converting 'cp1257' to 'utf-8'
for text/plain - Subjectless message (/opt/rt4/sbin/../lib/RT/I18N.pm:294)
[8946] [Thu Jan 16 08:35:30 2014] [debug]: Converting 'cp1257' to 'utf-8'
for text/html - Subjectless message (/opt/rt4/sbin/../lib/RT/I18N.pm:294)
[8946] [Thu Jan 16 08:35:30 2014] [debug]: Encode::Guess guessed encoding:
ascii (/opt/rt4/sbin/../lib/RT/I18N.pm:594)
[8946] [Thu Jan 16 08:35:30 2014] [debug]: Encode::Guess guessed encoding:
ascii (/opt/rt4/sbin/../lib/RT/I18N.pm:594)
[8946] [Thu Jan 16 08:35:30 2014] [debug]: Encode::Guess guessed encoding:
ascii (/opt/rt4/sbin/../lib/RT/I18N.pm:594)
[8946] [Thu Jan 16 08:35:30 2014] [debug]: Encode::Guess guessed encoding:
ascii (/opt/rt4/sbin/../lib/RT/I18N.pm:594)
[8946] [Thu Jan 16 08:35:30 2014] [debug]: Encode::Guess guessed encoding:
ascii (/opt/rt4/sbin/../lib/RT/I18N.pm:594)
[8946] [Thu Jan 16 08:35:30 2014] [debug]: Encode::Guess guessed encoding:
ascii (/opt/rt4/sbin/../lib/RT/I18N.pm:594)



Kevin Falcone-2 wrote
 On Wed, Jan 15, 2014 at 12:26:28PM -0800, andriuss wrote:
 From:
 =?UTF-8?B?ICJUb21hcyBNYXLEjWl1bGlvbmlzIiA8VG9tYXMuTWFyY2l1bGlvbmlzQGJp?=
  =?UTF-8?B?dGVzcGFydG5lcmlzLmx0Pg==?=
 
 This line, in the mail was the problem, RT somehow hang when parsing this
 in
 I18N.pm. Any solution for this?
 
 RT Version?
 
 Also, send along your perl module version list from System
 Configuration.
 
 -kevin
 
 
 attachment0 (243 bytes)
 lt;http://requesttracker.8502.n7.nabble.com/attachment/56306/0/attachment0gt;


Kevin Falcone-2 wrote
 On Wed, Jan 15, 2014 at 12:26:28PM -0800, andriuss wrote:
 From:
 =?UTF-8?B?ICJUb21hcyBNYXLEjWl1bGlvbmlzIiA8VG9tYXMuTWFyY2l1bGlvbmlzQGJp?=
  =?UTF-8?B?dGVzcGFydG5lcmlzLmx0Pg==?=
 
 This line, in the mail was the problem, RT somehow hang when parsing this
 in
 I18N.pm. Any solution for this?
 
 RT Version?
 
 Also, send along your perl module version list from System
 Configuration.
 
 -kevin
 
 
 attachment0 (243 bytes)
 lt;http://requesttracker.8502.n7.nabble.com/attachment/56306/0/attachment0gt;


Kevin Falcone-2 wrote
 On Wed, Jan 15, 2014 at 12:26:28PM -0800, andriuss wrote:
 From:
 =?UTF-8?B?ICJUb21hcyBNYXLEjWl1bGlvbmlzIiA8VG9tYXMuTWFyY2l1bGlvbmlzQGJp?=
  =?UTF-8?B?dGVzcGFydG5lcmlzLmx0Pg==?=
 
 This line, in the mail was the problem, RT somehow hang when parsing this
 in
 I18N.pm. Any solution for this?
 
 RT Version?
 
 Also, send along your perl module version list from System
 Configuration.
 
 -kevin
 
 
 attachment0 (243 bytes)
 lt;http://requesttracker.8502.n7.nabble.com/attachment/56306/0/attachment0gt;





--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/REST-mail-gateway-using-100-cpu-tp56255p56316.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.


[rt-users] need help with the following error

2014-01-16 Thread Bryon Baker
getmail version 4.34.0
Copyright (C) 1998-2012 Charles Cazabon.  Licensed under the GNU GPL version 2.
SimpleIMAPRetriever:clientservice@copesan.local@192.168.250.61:143:
Delivery error (command rt-mailgate 6390 error (75, RT server error.

The RT server which handled your email did not behave as expected. It
said:

Can't call method HasRight on an undefined value at 
/opt/rt4/sbin/../lib/RT/User.pm line 1284.

Stack:
  [/opt/rt4/sbin/../lib/RT/User.pm:1284]
  [/opt/rt4/sbin/../lib/RT/Ticket.pm:265]
  [/opt/rt4/sbin/../lib/RT/Interface/Email.pm:1415]
  [/opt/rt4/share/html/REST/1.0/NoAuth/mail-gateway:61]))
  msg 2245/2580 (7535 bytes), delivery error (command rt-mailgate 6390 error 
(75, RT server error.

Please help this is effecting production.


I just start receiving these errors.  I do not find anything in the RT log 
related.  Message seem like they are be delivered but after a period of time RT 
will stop delivering completely and I need to restart the web service.

The RT server which handled your email did not behave as expected. It
said:

Can't call method HasRight on an undefined value at 
/opt/rt4/sbin/../lib/RT/User.pm line 1284.

Stack:
  [/opt/rt4/sbin/../lib/RT/User.pm:1284]
  [/opt/rt4/sbin/../lib/RT/Ticket.pm:265]
  [/opt/rt4/sbin/../lib/RT/Interface/Email.pm:1415]
  [/opt/rt4/share/html/REST/1.0/NoAuth/mail-gateway:61]))
Delivery error (command rt-mailgate 6391 error (75, RT server error.

The RT server which handled your email did not behave as expected. It
said:

Can't call method HasRight on an undefined value at 
/opt/rt4/sbin/../lib/RT/User.pm line 1284.

Stack:
  [/opt/rt4/sbin/../lib/RT/User.pm:1284]
  [/opt/rt4/sbin/../lib/RT/Ticket.pm:265]
  [/opt/rt4/sbin/../lib/RT/Interface/Email.pm:1415]
  [/opt/rt4/share/html/REST/1.0/NoAuth/mail-gateway:61]))
  msg 2505/2580 (5807 bytes), delivery error (command rt-mailgate 6391 error 
(75, RT server error.

The RT server which handled your email did not behave as expected. It
said:

Can't call method HasRight on an undefined value at 
/opt/rt4/sbin/../lib/RT/User.pm line 1284.

Stack:
  [/opt/rt4/sbin/../lib/RT/User.pm:1284]
  [/opt/rt4/sbin/../lib/RT/Ticket.pm:265]
  [/opt/rt4/sbin/../lib/RT/Interface/Email.pm:1415]
  [/opt/rt4/share/html/REST/1.0/NoAuth/mail-gateway:61]))
  msg 2535/2580 (2894 bytes) delivered
  msg 2536/2580 (30501 bytes) delivered
  4 messages (46737 bytes) retrieved, 2532 skipped

Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726  *  262-783-6261 ext. 2296
bba...@copesan.commailto:cstep...@copesan.com
www.copesan.comhttp://www.copesan.com/
Servicing North America with Local Care



[rt-users] Need to send Big Cheese email based on requestor's email or group membership

2014-01-16 Thread Ethier, Michael
Hello,

We are running RT 4.0.7 in production and a test instance of 4.0.18. We have 
the need to flag
tickets from VIPs by comparing the incoming (on create) ticket's requestor's 
email address
OR if they are member of a particular Windows AD group. If a match is found, 
then
send an email to a specific email address (our group) with Subject: Big Cheese 
ticket RT ticket number
and a short body with the requestors name and email let's say. Maybe action 
of Notify AdminCC's
would be fine in this case.

I found this snippet of code in the RT wiki:
http://requesttracker.wikia.com/wiki/CustomConditionSnippets


return 0 unless $self-TransactionObj-Type eq Create;
return 1 if $self-TicketObj-IsWatcher(
Type = 'Requestor', Email = 'bigche...@harvard.edu'
);
return 0;

Which works but only checks against 1 email address. We have 50-60 people in 
the big cheese group.
I have written a small perl script which dumps out all the email address for 
all the big cheese's in
a file in /tmp, 1 email per line. Any way to check against that inside RT on 
create ? Or check if a requestor is in
a specific Windows AD group ? If yes, trigger the email to our group.

Thanks in advance for any help,
Mike





Re: [rt-users] RT farming management?

2014-01-16 Thread Kevin Falcone
On Wed, Jan 15, 2014 at 11:39:08PM +0100, Marc Chantreux wrote:
 everything must be done via cli (optionnally, a little web app to
 control the whole thing).
 
 I don't see another simple solution (please don't tell me about the
 configuration management systems) but maybe i'm wrong so any feedback
 (or existing code, experiments,...) is welcomed.

While we have written one-off scripts for these deployments, and I
know other folks have as well, I suspect that you'll find that most of
the modern work is being done with a configuration management system.
I've not used it, but I know folks have worked on
http://forge.puppetlabs.com/darin/rt
and there may be a chef equivalent.

-kevin


pgpf284CqPupF.pgp
Description: PGP signature


Re: [rt-users] Postfix error: 500 No Host option provided

2014-01-16 Thread Kevin Falcone
On Wed, Jan 15, 2014 at 12:25:17PM -1000, Mathew Snyder wrote:
Jan 15 17:09:14 zen-rt postfix/qmgr[6294]: 314F2808AD: 
 from=[26]u...@example.com, size=447,
nrcpt=1 (queue active)
Jan 15 17:09:15 zen-rt postfix/local[6409]: 314F2808AD: 
 to=[27]r...@host.example.com,
relay=local, delay=54, delays=53/0.01/0/0.11, dsn=4.3.0, status=deferred 
 (temporary failure.
Command output: HTTP request failed: 500 No Host option provided. Your 
 webserver logs may have
more information or there may be a network problem. )
Jan 15 17:09:16 zen-rt postfix/smtpd[6375]: disconnect from
[28]host.example.com[192.168.231.42]
I have searched around online and have not seen anything that even 
 references this problem. If
anyone can provide any insight I will be very appreciative.

You appear to have asked variants on this question a few times.
In each case, a mailing list user asked you for information needed to
help you.

How are you invoking rt-mailgate, from an aliases file?
Show the alias file, with all the options you are passing to
rt-mailgate.

Have you read your apache error log?  Since you're getting a 500
error, and that's an HTPT status code, I'd look there.

-kevin


pgpsw5sMXtZ8o.pgp
Description: PGP signature


Re: [rt-users] Question

2014-01-16 Thread Bryon Baker
Thanks for the help Landon

More information


I added the following config to RT_SiteConfig.pm



Set($SendmailArguments , -fbou...@copesan.com -oi -t);

And restarted RT after change.



Does the bou...@copesan.commailto:bou...@copesan.com address need to exist on 
the Suse Linux server or can it exist on the exchange server?



Currently it exists on the exchange server and I have made some tests and 
nothing is showing up in the mailbox on the exchange server.


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

From: Landon Stewart [mailto:lstew...@iweb.com]
Sent: Wednesday, January 15, 2014 4:47 PM
To: Bryon Baker
Cc: RT Users (rt-users@lists.bestpractical.com)
Subject: Re: [rt-users] Question

I don't know if that's even still valid.  I did see this:
http://requesttracker.wikia.com/wiki/RtBounceHandler

We aren't using that though.  We just handle the straight bounce messages in 
their own queue and then process the message content itself to find the 
original ticket #.  Unless you have a very high volume of tickets it might not 
be worth it to do that but instead set the -f for sendmail to something 
someone actually receives so they can intervene if a bounce comes back.

On 15 January 2014 14:35, Bryon Baker 
bba...@copesan.commailto:bba...@copesan.com wrote:
Thanks for the information

but where can I download the program rtbouncehandler from?

Bryon Baker
Network Operations Manager
Copesan - Specialists in Pest Solutions
800-267-3726tel:800-267-3726  *  262-783-6261 ext. 
2296tel:262-783-6261%20ext.%202296
bba...@copesan.commailto:cstep...@copesan.com
www.copesan.comhttp://www.copesan.com/
Servicing North America with Local Care

From: Landon Stewart [mailto:lstew...@iweb.commailto:lstew...@iweb.com]
Sent: Wednesday, January 15, 2014 3:34 PM
To: Bryon Baker
Subject: Re: [rt-users] Question

On 15 January 2014 13:13, Bryon Baker 
bba...@copesan.commailto:bba...@copesan.com wrote:
Hello All

I have a question.

What happen to the NDR message that come from a forwarded or replied to with an 
invalid email address?

I cannot find the NDR anywhere.  We are reling through an exchange server. On 
the Suse server I am using postfix to send the message off the Suse server.

Please keep in mind I am not a Linux guru when trying to explain this.

This thread might answer your question if you are talking about emails bouncing 
that were sent from RT

http://www.gossamer-threads.com/lists/rt/users/91551

On a side note - We have SendmailArguments in RT's configuration to include 
'-fbounce@ourdomainname.comhttp://ourdomainname.com' and then we have a 
queue for bounces.  I wrote a module that looks at the bounces and attributes 
them to the original by ticket # and posts a comment on the original alerting 
the owner that the email bounced and then marks the bounce email ticket 
resolved.

--
Landon Stewart :: lstew...@iweb.commailto:lstew...@iweb.com
Lead Specialist, Abuse and Security Management
Spécialiste principal, gestion des abus et sécurité
http://iweb.com :: +1 (888) 909-4932tel:%2B1%20%2%29%20909-4932





--
Landon Stewart :: lstew...@iweb.commailto:lstew...@iweb.com
Lead Specialist, Abuse and Security Management
Spécialiste principal, gestion des abus et sécurité
http://iweb.com :: +1 (888) 909-4932




[rt-users] rt-crontool and --action RT::Action::NotifyAsComment

2014-01-16 Thread Eric Maisonobe
Hello,

I try to use the following cron task :

/opt/rt4/bin/rt-crontool \

--search RT::Search::FromSQL \
--search-arg Created  '1 day ago' AND (Status = 'new')\
--action RT::Action::NotifyAsComment \
--action-arg 'OtherRecipients'
--template 'my_nice_template'

but nothing is done (no comment and no notification), because RT complains :

[critical]: Can't call method CreatorObj on an undefined value at
 /opt/rt4/bin/../lib/RT/Action/Notify.pm line 134.
 (/opt/rt4/bin/../lib/RT.pm:400)


I look at  /opt/rt4/bin/../lib/RT/Action/Notify.pm line 134 and i see :

   my $creatorObj = $self-TransactionObj-CreatorObj;



So, does anybody knows :
- how to use rt-crontool with --action RT::Action::NotifyAsComment,
- or how to specify the default RT system user in the Notify.pm script
something like :

 eval( my $creatorObj = $self-TransactionObj-CreatorObj) || my
 $creatorObj = RT_DEFAULT_USER_OBJ;


Thank you for any suggestion !

Eric


[rt-users] Need help about scrip condition

2014-01-16 Thread Eric MAISONOBE
Hello,

I've disabled scrips for sending auto-notifications  when a comment is
added on tickets.

BUT, i would like that comment created by rt-crontool  been notified to
'OtherRecipients'.

So i have 2 questions :
- what's the way to check if the comment creator is Enoch root, and in
this case (and only in this case) to notify the comment to
'OtherRecipients',
- moreover, where can i found the code corresponding to default conditions
and actions pre-existing in RT web interface ?
(just because it's easier to modify working code instead of wrinting one
from blank)

Thank you by advance for any help !

Eric


[rt-users] How to find possible values for an object

2014-01-16 Thread rwzoerner
I'm not a Perl programmer and the documentation for RT isn't very friendly
for folks like me. I'm trying to put the ticket owner's full name in a
template, for example, and I can't find anything that tells me what the
possible values are for {$Ticket-OwnerObj}. I did see a snippet that used
{$Ticket-OwnerObj-Name} but that displays just the username, not the full
name.

Aside from needing to resolve that specific problem, is there a way a
non-Perl-person can find what values are possible for other objects, as
well?

Thanks, I know this is such a noob question, but I'm stumped.
-Rick



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/How-to-find-possible-values-for-an-object-tp56324.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.


[rt-users] How to create a scrip Condition for OnAddRequestor

2014-01-16 Thread rwzoerner
I found a list of condition snippets that was great, but for all it had, it
missed any examples related to when a new requestor is added.

One scenario is that technicians frequently take a phone call and create the
ticket for the requestor. That makes them the requestor and then they have
to go in and change it to the correct person. 

Another possibility is that they simply need to add a second name as
requestor.

I'm not a Perl person so writing conditions in a scrip for me is really a
matter of finding an existing example and copying it. Does anyone have
snippet to show me how to isolate the Adding of a Requestor?

Thanks,
-Rick



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/How-to-create-a-scrip-Condition-for-OnAddRequestor-tp56325.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.


Re: [rt-users] Postfix error: 500 No Host option provided

2014-01-16 Thread Mathew Snyder
Apologies. I have not been seeing the responses. Checking my spam folder
did not turn up the emails either.

My aliases file contains two entries. One for rt: and the other for
rt-comment:

rt:  |/opt/rt4/bin/rt-mailgate --queue general --action
correspond --url http://host.example.com;
rt-comment:|/opt/rt4/bin/rt-mailgate --queue general --action comment
--url http://host.example.com;

The web logs don't mention anything about this.

-Mathew

When you do things right, people won't be sure you've done anything at
all. - God; Futurama

We'll get along much better once you accept that you're wrong and neither
am I. - Me


On Thu, Jan 16, 2014 at 5:36 AM, Kevin Falcone falc...@bestpractical.comwrote:

 On Wed, Jan 15, 2014 at 12:25:17PM -1000, Mathew Snyder wrote:
 Jan 15 17:09:14 zen-rt postfix/qmgr[6294]: 314F2808AD: from=[26]
 u...@example.com, size=447,
 nrcpt=1 (queue active)
 Jan 15 17:09:15 zen-rt postfix/local[6409]: 314F2808AD: to=[27]
 r...@host.example.com,
 relay=local, delay=54, delays=53/0.01/0/0.11, dsn=4.3.0,
 status=deferred (temporary failure.
 Command output: HTTP request failed: 500 No Host option provided.
 Your webserver logs may have
 more information or there may be a network problem. )
 Jan 15 17:09:16 zen-rt postfix/smtpd[6375]: disconnect from
 [28]host.example.com[192.168.231.42]
 I have searched around online and have not seen anything that even
 references this problem. If
 anyone can provide any insight I will be very appreciative.

 You appear to have asked variants on this question a few times.
 In each case, a mailing list user asked you for information needed to
 help you.

 How are you invoking rt-mailgate, from an aliases file?
 Show the alias file, with all the options you are passing to
 rt-mailgate.

 Have you read your apache error log?  Since you're getting a 500
 error, and that's an HTPT status code, I'd look there.

 -kevin



Re: [rt-users] Postfix error: 500 No Host option provided

2014-01-16 Thread Landon Stewart
From the server itself what if execute the following while in an SSH
session (obviously replacing the host.example.com with the correct fqdn of
RT):

curl http://host.example.com

What do you get back?  If you get a 500 error back from that your problem
is not RT related (yet).


On 16 January 2014 12:30, Mathew Snyder mathew.sny...@gmail.com wrote:

 Apologies. I have not been seeing the responses. Checking my spam folder
 did not turn up the emails either.

 My aliases file contains two entries. One for rt: and the other for
 rt-comment:

 rt:  |/opt/rt4/bin/rt-mailgate --queue general --action
 correspond --url http://host.example.com;
 rt-comment:|/opt/rt4/bin/rt-mailgate --queue general --action comment
 --url http://host.example.com;

 The web logs don't mention anything about this.

 -Mathew

 When you do things right, people won't be sure you've done anything at
 all. - God; Futurama

 We'll get along much better once you accept that you're wrong and
 neither am I. - Me


 On Thu, Jan 16, 2014 at 5:36 AM, Kevin Falcone 
 falc...@bestpractical.comwrote:

 On Wed, Jan 15, 2014 at 12:25:17PM -1000, Mathew Snyder wrote:
 Jan 15 17:09:14 zen-rt postfix/qmgr[6294]: 314F2808AD: from=[26]
 u...@example.com, size=447,
 nrcpt=1 (queue active)
 Jan 15 17:09:15 zen-rt postfix/local[6409]: 314F2808AD: to=[27]
 r...@host.example.com,
 relay=local, delay=54, delays=53/0.01/0/0.11, dsn=4.3.0,
 status=deferred (temporary failure.
 Command output: HTTP request failed: 500 No Host option provided.
 Your webserver logs may have
 more information or there may be a network problem. )
 Jan 15 17:09:16 zen-rt postfix/smtpd[6375]: disconnect from
 [28]host.example.com[192.168.231.42]
 I have searched around online and have not seen anything that even
 references this problem. If
 anyone can provide any insight I will be very appreciative.

 You appear to have asked variants on this question a few times.
 In each case, a mailing list user asked you for information needed to
 help you.

 How are you invoking rt-mailgate, from an aliases file?
 Show the alias file, with all the options you are passing to
 rt-mailgate.

 Have you read your apache error log?  Since you're getting a 500
 error, and that's an HTPT status code, I'd look there.

 -kevin





-- 
Landon Stewart :: lstew...@iweb.com
Lead Specialist, Abuse and Security Management
Spécialiste principal, gestion des abus et sécurité
http://iweb.com :: +1 (888) 909-4932


Re: [rt-users] Postfix error: 500 No Host option provided

2014-01-16 Thread Mathew Snyder
Great...

After sending multiple emails due to not seeing responses and then finally
getting one, I've discovered that the aliases file was malformed. I didn't
actually have --url http://host.example.com;. Instead I had --url http:
host.example.com

/facepalm

-Mathew

When you do things right, people won't be sure you've done anything at
all. - God; Futurama

We'll get along much better once you accept that you're wrong and neither
am I. - Me


On Thu, Jan 16, 2014 at 10:37 AM, Landon Stewart lstew...@iweb.com wrote:

 From the server itself what if execute the following while in an SSH
 session (obviously replacing the host.example.com with the correct fqdn
 of RT):

 curl http://host.example.com

 What do you get back?  If you get a 500 error back from that your problem
 is not RT related (yet).


 On 16 January 2014 12:30, Mathew Snyder mathew.sny...@gmail.com wrote:

 Apologies. I have not been seeing the responses. Checking my spam folder
 did not turn up the emails either.

 My aliases file contains two entries. One for rt: and the other for
 rt-comment:

 rt:  |/opt/rt4/bin/rt-mailgate --queue general --action
 correspond --url http://host.example.com;
 rt-comment:|/opt/rt4/bin/rt-mailgate --queue general --action
 comment --url http://host.example.com;

 The web logs don't mention anything about this.

 -Mathew

 When you do things right, people won't be sure you've done anything at
 all. - God; Futurama

 We'll get along much better once you accept that you're wrong and
 neither am I. - Me


 On Thu, Jan 16, 2014 at 5:36 AM, Kevin Falcone falc...@bestpractical.com
  wrote:

 On Wed, Jan 15, 2014 at 12:25:17PM -1000, Mathew Snyder wrote:
 Jan 15 17:09:14 zen-rt postfix/qmgr[6294]: 314F2808AD: from=[26]
 u...@example.com, size=447,
 nrcpt=1 (queue active)
 Jan 15 17:09:15 zen-rt postfix/local[6409]: 314F2808AD: to=[27]
 r...@host.example.com,
 relay=local, delay=54, delays=53/0.01/0/0.11, dsn=4.3.0,
 status=deferred (temporary failure.
 Command output: HTTP request failed: 500 No Host option provided.
 Your webserver logs may have
 more information or there may be a network problem. )
 Jan 15 17:09:16 zen-rt postfix/smtpd[6375]: disconnect from
 [28]host.example.com[192.168.231.42]
 I have searched around online and have not seen anything that even
 references this problem. If
 anyone can provide any insight I will be very appreciative.

 You appear to have asked variants on this question a few times.
 In each case, a mailing list user asked you for information needed to
 help you.

 How are you invoking rt-mailgate, from an aliases file?
 Show the alias file, with all the options you are passing to
 rt-mailgate.

 Have you read your apache error log?  Since you're getting a 500
 error, and that's an HTPT status code, I'd look there.

 -kevin





 --
 Landon Stewart :: lstew...@iweb.com
 Lead Specialist, Abuse and Security Management
 Spécialiste principal, gestion des abus et sécurité
 http://iweb.com :: +1 (888) 909-4932





Re: [rt-users] Postfix error: 500 No Host option provided

2014-01-16 Thread Landon Stewart
I guess that’s why pasting what you actually have instead of what is in the
documentation is important in a problem description.


On 16 January 2014 12:40, Mathew Snyder mathew.sny...@gmail.com wrote:

 Great...

 After sending multiple emails due to not seeing responses and then finally
 getting one, I've discovered that the aliases file was malformed. I didn't
 actually have --url http://host.example.com;. Instead I had --url http:
 host.example.com

 /facepalm

 -Mathew

 When you do things right, people won't be sure you've done anything at
 all. - God; Futurama

 We'll get along much better once you accept that you're wrong and
 neither am I. - Me


 On Thu, Jan 16, 2014 at 10:37 AM, Landon Stewart lstew...@iweb.comwrote:

 From the server itself what if execute the following while in an SSH
 session (obviously replacing the host.example.com with the correct fqdn
 of RT):

 curl http://host.example.com

 What do you get back?  If you get a 500 error back from that your problem
 is not RT related (yet).


 On 16 January 2014 12:30, Mathew Snyder mathew.sny...@gmail.com wrote:

 Apologies. I have not been seeing the responses. Checking my spam folder
 did not turn up the emails either.

 My aliases file contains two entries. One for rt: and the other for
 rt-comment:

 rt:  |/opt/rt4/bin/rt-mailgate --queue general --action
 correspond --url http://host.example.com;
 rt-comment:|/opt/rt4/bin/rt-mailgate --queue general --action
 comment --url http://host.example.com;

 The web logs don't mention anything about this.

 -Mathew

 When you do things right, people won't be sure you've done anything at
 all. - God; Futurama

 We'll get along much better once you accept that you're wrong and
 neither am I. - Me


 On Thu, Jan 16, 2014 at 5:36 AM, Kevin Falcone 
 falc...@bestpractical.com wrote:

 On Wed, Jan 15, 2014 at 12:25:17PM -1000, Mathew Snyder wrote:
 Jan 15 17:09:14 zen-rt postfix/qmgr[6294]: 314F2808AD: from=[26]
 u...@example.com, size=447,
 nrcpt=1 (queue active)
 Jan 15 17:09:15 zen-rt postfix/local[6409]: 314F2808AD: to=[27]
 r...@host.example.com,
 relay=local, delay=54, delays=53/0.01/0/0.11, dsn=4.3.0,
 status=deferred (temporary failure.
 Command output: HTTP request failed: 500 No Host option provided.
 Your webserver logs may have
 more information or there may be a network problem. )
 Jan 15 17:09:16 zen-rt postfix/smtpd[6375]: disconnect from
 [28]host.example.com[192.168.231.42]
 I have searched around online and have not seen anything that even
 references this problem. If
 anyone can provide any insight I will be very appreciative.

 You appear to have asked variants on this question a few times.
 In each case, a mailing list user asked you for information needed to
 help you.

 How are you invoking rt-mailgate, from an aliases file?
 Show the alias file, with all the options you are passing to
 rt-mailgate.

 Have you read your apache error log?  Since you're getting a 500
 error, and that's an HTPT status code, I'd look there.

 -kevin





 --
 Landon Stewart :: lstew...@iweb.com
 Lead Specialist, Abuse and Security Management
 Spécialiste principal, gestion des abus et sécurité
 http://iweb.com :: +1 (888) 909-4932






-- 
Landon Stewart :: lstew...@iweb.com
Lead Specialist, Abuse and Security Management
Spécialiste principal, gestion des abus et sécurité
http://iweb.com :: +1 (888) 909-4932


[rt-users] How far can categories nest?

2014-01-16 Thread Mathew Snyder
I have three custom fields I'd like linked: Support Type, Support Category,
and Support Sub-Category.

Support Type has not Categories are based on set.
Support Category has Categories are based on set to Support Type
Support Sub-Category has Categories are based on set to Support Category.

When I select the Support Type, Support Category populates with the
expected values (In this case, Hardware, Software, and Telephony). However,
when I select Support Category, Support Sub-Category does not populate.

The categories are configured for each entry in Support Sub-Category.

Do categories only go one level?

-Mathew

When you do things right, people won't be sure you've done anything at
all. - God; Futurama

We'll get along much better once you accept that you're wrong and neither
am I. - Me


[rt-users] Reset Scrips to Default?

2014-01-16 Thread Ryan Skadberg
Hi Folks -

  I've been using RT for a while, but basically just using what was
set up by an administrator before me.  I recently did a major upgrade
from 3.8.8 to 4.2.1 to get us on a recent release.

  Since this upgrade (and maybe before), we were getting some
complaints that too much email was coming out of RT.  I looked around
a bit and we seem to have a mess of Scrips running on all sorts of
status changes.  I would like to declare bankruptcy on the scrips that
are set up and just get all the responses reset back to the default
and be able to modify from there.

I've searched through Google and the list archives, but can't seem to
find any methodology for doing this.  In the archives, I saw a script
that was in the GIT tree called fixup-default-scrips, but a) I don't
see it in the release tar and b) I'm guessing it might have been for
internal dev, not for what I am doing.

Does anyone have a good way to do this?

Thanks!
Skadz


Re: [rt-users] REST mail-gateway using 100% cpu

2014-01-16 Thread Alex Vandiver
On Thu, 2014-01-16 at 00:37 -0800, andriuss wrote:
 The situation become a little bit clearer:
 
 The failing mail header:
 From:
 =?UTF-8?B?ICJUb21hcyBNYXLEjWl1bGlvbmlzIiA8VG9tYXMuTWFyY2l1bGlvbmlzQGJp?=
  =?UTF-8?B?dGVzcGFydG5lcmlzLmx0Pg==?= 
 
 But it should be the following (RT works just fine with that):
 From: =?UTF-8?B?VG9tYXMgTWFyxI1pdWxpb25pcw==?=
  tomas.marciulio...@bitespartneris.lt
 
 Clients mail program, probably encodes all the header, no matter that there
 are no non-ascii symbols in the second part of the header (
 tomas.marciulio...@bitespartneris.lt);

Encoding the entire header is definitely against the RFC.  See the first
point on http://tools.ietf.org/html/rfc2047#page-8 .  What mail client?
 - Alex



Re: [rt-users] Need to send Big Cheese email based on requestor's email or group membership

2014-01-16 Thread Christian Loos
Hi,

for this type of requests we create an group inside RT, add all email
adresses (RT User) to this Group, add all User that should be notified
as AdminCc to the queue and then create a scrip (replace xxx with the
Big Cheese group id):

Condition: User Defined
Action: Notify AdminCcs
Template: you custom email template
Stage: TransactionCreate
Custom condition:

return 0 unless $self-TransactionObj-Type eq 'Create';
my $CreatorObj = $self-TransactionObj-CreatorObj;
my $GroupObj = RT::Group-new(RT-SystemUser);
$GroupObj-Load(xxx); # Big Cheese Group Id
return 1 if $GroupObj-HasMember($CreatorObj-PrincipalId);
return 0;


Chris