-----Original Message-----
From: rt-users-request@lists.fsck.com
[mailto:rt-users-request@lists.fsck.com]
Sent: Friday, June 13, 2003 12:10 AM
To: rt-users@lists.fsck.com
Subject: rt-users digest, Vol 1 #1192 - 11 msgs
Send rt-users mailing list submissions to
rt-users@lists.fsck.com
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.fsck.com/mailman/listinfo/rt-users
or, via email, send a message with subject or body ‘help’ to
rt-users-request@lists.fsck.com
You can reach the person managing the list at
rt-users-admin@lists.fsck.com
When replying, please edit your Subject line so it is more specific
than “Re: Contents of rt-users digest…”
Today’s Topics:
- RE: Sendmail problems (EXIT_TEMPFAIL) with rt3 mailgate
(Arthur Watts)
- RE: Sendmail problems (EXIT_TEMPFAIL) with rt3 mailgate
(Stewart James)
- Re: Sendmail problems (EXIT_TEMPFAIL) with rt3 mailgate
(Phil Homewood)
- Re: Sendmail problems (EXIT_TEMPFAIL) with rt3 mailgate
(Stewart James)
- Re: Getting owner to change when replying (Jamie Wilkinson)
- Re: creating (email) and replying a ticket problem
(Augusto Castelan Carlson)
- RE: Getting owner to change when replying (mohan)
- Re: Getting owner to change when replying (Phil Homewood)
- Re: creating (email) and replying a ticket problem
(Phil Homewood)
- Re: Reopening of Closed Tickets (Phil Homewood)
- Re: Getting owner to change when replying (Jamie Wilkinson)
–––
Message: 1
Subject: RE: [rt-users] Sendmail problems (EXIT_TEMPFAIL)
with rt3 mailgate
Date: Fri, 13 Jun 2003 10:27:17 +1000
From: “Arthur Watts” a.watts@cqu.edu.au
To: “Stewart James” stewart.james@vu.edu.au
Cc: rt-users@lists.fsck.com
Hi Stewart,
Thanks for the prompt reply.
No - I had a problem with attachments previously, but even 'echo
“Testing” | mail icom-wemaster’ fails when I move to the rt3 config in
/etc/smrsh. Same result every time - I’ve checked that sendmail knows
what to do with the mail for that user, but still no luck.=20
Cheers,
Artie
-----Original Message-----
From: Stewart James [mailto:stewart.james@vu.edu.au]=20
Sent: Friday, 13 June 2003 10:17
To: Arthur Watts
Cc: rt-users@lists.fsck.com
Subject: Re: [rt-users] Sendmail problems (EXIT_TEMPFAIL) with rt3
mailgate
This sounds exactly the same as the problem I am having. Do the
message(s) causing the problem have attachments?
Date: Fri, 13 Jun 2003 09:56:19 +1000
From: Arthur Watts a.watts@cqu.edu.au
To: rt-users@lists.fsck.com
Subject: [rt-users] Sendmail problems (EXIT_TEMPFAIL) with rt3=20
mailgate
Hi,
I have searched high and low in an effort to find a
solution to=20
this problem, to no avail. After migrating our RT2 data
into the RT3=20
database and doing the necessary config (see below), our
mail logs=20
record the following result when I try to create a new ticket via=20
email in rt3 :
Jun 12 23:16:28 xx-xxx sendmail[21357]: h5CDGSU3021357:=20
from=3Da.watts@xxx.xxx.xx, size=3D48019, class=3D0, nrcpts=3D1,=20
msgid=3DC73A42308A9E56438DEDD76DB6FFC90A5B46C1@locxxx.xxx.xxx.xx,
proto=3DESMTP, daemon=3DMTA, relay=3Dmx2xxxxx.xxx.xxx.xx =
[138.77.5.126] Jun=20
12 23:16:29 xxxxxxxx sendmail[21358]: h5CDGSU3021357:=20
to=3D"|/usr/local/rt3/bin/rt-mailgate --queue Helpdesk -action=20
correspond --url=3Dhttp://my.rtserver/rt3",=20
ctladdr=3Dicom-helpdesk@xxx.xxx.xxx
(8/0), delay=3D00:00:01, xdelay=3D00:00:01, mailer=3Dprog, =
pri=3D78235,
dsn=3D4.0.0, stat=3DDeferred: prog mailer (/usr/sbin/smrsh) exited =
with
EX_TEMPFAIL
OS is RH 8.0, running 'Apache/1.3.27 (Unix)
mod_perl/1.27’, MySQL
3.23.53, sendmail 8.12.5-7.
1. /etc/aliases :
icom-helpdesk: "|/usr/local/rt3/bin/rt-mailgate
–queue general=20
-action correspond --url=3Dhttp://my.rtserver/rt3";
I have used the 'newaliases' command to rebuild sendmail's=20
database, and the mail log confirms this.
2. /etc/smrsh :
[root@xx-xxx smrsh]# ls -l rt-mailgate
lrwxrwxrwx 1 root root 30 Jun 13 07:50
rt-mailgate →
/usr/local/rt3/bin/rt-mailgate
3. httpd.conf :
Alias /rt3 /usr/local/rt3/share/html
Alias /NoAuth /usr/local/rt3/share/html/NoAuth
AddDefaultCharset UTF-8
PerlModule Apache::DBI
PerlRequire /usr/local/rt3/bin/webmux.pl
<Location /rt3>
SetHandler perl-script
PerlHandler RT::Mason
4. Perms :
Everything under /usr/local/rt3 is owned by
‘root:webserveruser’,=20
where ‘webserveruser’ is the name of the Apache ‘User’ variable.=20
Everything in the web interface is fine, it’s the mail
gateway which
seems to be my only stumbling block.
The sendmail doco says something to the effect that
‘EX_TEMPFAIL’
means that it is unable to deliver the mail, but will queue
it for=20
delivery at a later date. As soon as I switch everything
back to RT2,=20
mail begins coming in again, and the queued messages are
delivered=20
30-50 minutes after that point. I suspect that it’s a perms
issue with
the receiving mailbox, but the same user runs Apache under
rt3 as rt2,
and rt2 is working fine.
I am not a sendmail whiz, so any suggestions are most
welcome.=20
Alternatively, tips on how I can use strace to get a better
idea of=20
what file sendmail is trying to open would be handy - its
currently=20
just returning the above diag without giving me much idea
of what is=20
going on.
Thanks,
Arthur
Arthur Watts (a.watts@cqu.edu.au)
Web Developer
Faculty of Informatics and Communication | Central Queensland=20
University
| Rockhampton, Australia
rt-users mailing list
rt-users@lists.fsck.com=20
http://lists.fsck.com/mailman/listinfo/rt-users
Have you read the FAQ? The RT FAQ Manager lives at=20
http://fsck.com/rtfm
–––
Message: 2
Date: Fri, 13 Jun 2003 10:37:11 +1000 (EST)
From: Stewart James stewart.james@vu.edu.au
To: Arthur Watts a.watts@cqu.edu.au
Cc: rt-users@lists.fsck.com
Subject: RE: [rt-users] Sendmail problems (EXIT_TEMPFAIL)
with rt3 mailgate
Maybe the problems we are having are linked.
However, I only seem to have issues with some email, not all
- although
the errors we are getting seem to be similar. Although I am
not getting
anything useful out of the rt logs to indicate what is
actually happening
inside RT.
I am really hoping someone on the list knows more about the
inside of RT
to help solve this.
Stewart
Date: Fri, 13 Jun 2003 10:27:17 +1000
From: Arthur Watts a.watts@cqu.edu.au
To: Stewart James stewart.james@vu.edu.au
Cc: rt-users@lists.fsck.com
Subject: RE: [rt-users] Sendmail problems (EXIT_TEMPFAIL) with rt3
mailgate
Hi Stewart,
Thanks for the prompt reply.
No - I had a problem with attachments previously, but
even 'echo
“Testing” | mail icom-wemaster’ fails when I move to the
rt3 config in
/etc/smrsh. Same result every time - I’ve checked that
sendmail knows
what to do with the mail for that user, but still no luck.
Cheers,
Artie
-----Original Message-----
From: Stewart James [mailto:stewart.james@vu.edu.au]
Sent: Friday, 13 June 2003 10:17
To: Arthur Watts
Cc: rt-users@lists.fsck.com
Subject: Re: [rt-users] Sendmail problems (EXIT_TEMPFAIL) with rt3
mailgate
This sounds exactly the same as the problem I am having. Do the
message(s) causing the problem have attachments?
Date: Fri, 13 Jun 2003 09:56:19 +1000
From: Arthur Watts a.watts@cqu.edu.au
To: rt-users@lists.fsck.com
Subject: [rt-users] Sendmail problems (EXIT_TEMPFAIL) with rt3
mailgate
Hi,
I have searched high and low in an effort to find a
solution to
this problem, to no avail. After migrating our RT2 data
into the RT3
database and doing the necessary config (see below), our mail logs
record the following result when I try to create a new ticket via
email in rt3 :
Jun 12 23:16:28 xx-xxx sendmail[21357]: h5CDGSU3021357:
from=a.watts@xxx.xxx.xx, size=48019, class=0, nrcpts=1,
msgid=C73A42308A9E56438DEDD76DB6FFC90A5B46C1@locxxx.xxx.xxx.xx,
proto=ESMTP, daemon=MTA, relay=mx2xxxxx.xxx.xxx.xx
[138.77.5.126] Jun
12 23:16:29 xxxxxxxx sendmail[21358]: h5CDGSU3021357:
to=“|/usr/local/rt3/bin/rt-mailgate --queue Helpdesk -action
correspond --url=http://my.rtserver/rt3”,
ctladdr=icom-helpdesk@xxx.xxx.xxx
(8/0), delay=00:00:01, xdelay=00:00:01, mailer=prog, pri=78235,
dsn=4.0.0, stat=Deferred: prog mailer (/usr/sbin/smrsh)
exited with
EX_TEMPFAIL
OS is RH 8.0, running 'Apache/1.3.27 (Unix)
mod_perl/1.27’, MySQL
3.23.53, sendmail 8.12.5-7.
1. /etc/aliases :
icom-helpdesk: "|/usr/local/rt3/bin/rt-mailgate
–queue general
-action correspond --url=http://my.rtserver/rt3";
I have used the 'newaliases' command to rebuild sendmail's
database, and the mail log confirms this.
2. /etc/smrsh :
[root@xx-xxx smrsh]# ls -l rt-mailgate
lrwxrwxrwx 1 root root 30 Jun 13 07:50
rt-mailgate →
/usr/local/rt3/bin/rt-mailgate
3. httpd.conf :
Alias /rt3 /usr/local/rt3/share/html
Alias /NoAuth /usr/local/rt3/share/html/NoAuth
AddDefaultCharset UTF-8
PerlModule Apache::DBI
PerlRequire /usr/local/rt3/bin/webmux.pl
<Location /rt3>
SetHandler perl-script
PerlHandler RT::Mason
4. Perms :
Everything under /usr/local/rt3 is owned by
‘root:webserveruser’,
where ‘webserveruser’ is the name of the Apache ‘User’ variable.
Everything in the web interface is fine, it’s the mail
gateway which
seems to be my only stumbling block.
The sendmail doco says something to the effect that
‘EX_TEMPFAIL’
means that it is unable to deliver the mail, but will queue it for
delivery at a later date. As soon as I switch everything
back to RT2,
mail begins coming in again, and the queued messages are delivered
30-50 minutes after that point. I suspect that it’s a
perms issue with
the receiving mailbox, but the same user runs Apache
under rt3 as rt2,
and rt2 is working fine.
I am not a sendmail whiz, so any suggestions are
most welcome.
Alternatively, tips on how I can use strace to get a
better idea of
what file sendmail is trying to open would be handy - its
currently
just returning the above diag without giving me much idea
of what is
going on.
Thanks,
Arthur
Arthur Watts (a.watts@cqu.edu.au)
Web Developer
Faculty of Informatics and Communication | Central Queensland
University
| Rockhampton, Australia
rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users
Have you read the FAQ? The RT FAQ Manager lives at
http://fsck.com/rtfm
–––
Message: 3
Date: Fri, 13 Jun 2003 10:39:39 +1000
From: Phil Homewood pdh@snapgear.com
To: rt-users@lists.fsck.com
Subject: Re: [rt-users] Sendmail problems (EXIT_TEMPFAIL)
with rt3 mailgate
Arthur Watts wrote:
dsn=4.0.0, stat=Deferred: prog mailer (/usr/sbin/smrsh) exited with
EX_TEMPFAIL
So, what happens if you pipe the offending email directly
into rt-mailgate from the commandline?
Phil Homewood, Systems Janitor, http://www.SnapGear.com
pdh@snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances
–––
Message: 4
Date: Fri, 13 Jun 2003 11:53:56 +1000 (EST)
From: Stewart James stewart.james@vu.edu.au
To: rt-users@lists.fsck.com
Subject: Re: [rt-users] Sendmail problems (EXIT_TEMPFAIL)
with rt3 mailgate
Doing ti with the problem I am getting returns:
An Error Occurred
500 read timeout
I also tarted top and noticed that one of the apache processes start
chewing 99% of CPU.
The email is inserted into RT, and apart from this error,
everything seems
to function fine.
There was nothing in the apache logs, mysql logs to indicate the error
either.
Stewart
Date: Fri, 13 Jun 2003 10:39:39 +1000
From: Phil Homewood pdh@snapgear.com
To: rt-users@lists.fsck.com
Subject: Re: [rt-users] Sendmail problems (EXIT_TEMPFAIL) with rt3
mailgate
Arthur Watts wrote:
dsn=4.0.0, stat=Deferred: prog mailer (/usr/sbin/smrsh)
exited with
EX_TEMPFAIL
So, what happens if you pipe the offending email directly
into rt-mailgate from the commandline?
–––
Message: 5
Date: Fri, 13 Jun 2003 12:16:58 +1000
From: Jamie Wilkinson jaq@spacepants.org
To: rt-users rt-users@lists.fsck.com
Subject: Re: [rt-users] Getting owner to change when replying
–jRHKVT23PllUwdXP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
This one time, at band camp, jennyw wrote:
I’ve noticed that when a user replies to a new ticket, they do not
become the owner – it remains owned by nobody. Is there a
way to change
this so that if someone takes an action on a ticket that’s owned by
nobody, they own it?
I’ve got a patch that adds an AutoTake.pm action, then all
you need to do is
do a couple of database inserts to enable the new script as a separate
action/scrip.
Apply the attachment, then perform the following queries on
your database:
insert into scripactions (name, description, execmodule,
creator, created,
lastupdatedby, lastupdated) values (‘Assign Tickets’,
‘Assign a ticket on
first correspondance’, ‘AutoTake’, 1, current_timestamp, 1,
current_timestamp);
insert into scrips (description, scripcondition,
scripaction, stage, queue,
template, creator, created, lastupdatedby, lastupdated)
values (‘AutoTake’,
3, ID of the above scripaction, ‘TransactionCreate’, 0, 1, 1,
current_timestamp, 1, current_timestamp);
Remember to get the ID of the scripaction from the first query for the
scripaction column in the second query.
–
jaq@spacepants.org
http://spacepants.org/jaq.gpg
–jRHKVT23PllUwdXP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=“rt-3.0-autotake.patch”
Index: lib/RT/Action/AutoTake.pm
— lib/RT/Action/AutoTake.pm
+++ lib/RT/Action/AutoTake.pm
— 0 ****
+++ 1,81 ----
($self->TransactionObj->CreatorObj->HasQueueRight(QueueObj =>
$self->TicketObj->QueueObj,
=> ‘OwnTicket’)) {
$self->TicketObj->SetOwner($self->TransactionObj->CreatorObj->id);
-
}
- }
- return($retval);
- }
- eval “require RT::Action::AutoTake_Vendor”;
- die $@ if ($@ && $@ !~ qr{^Can’t locate
RT/Action/AutoOpen_Vendor.pm});
- eval “require RT::Action::AutoTake_Local”;
- die $@ if ($@ && $@ !~ qr{^Can’t locate
RT/Action/AutoOpen_Local.pm});
- 1;
–jRHKVT23PllUwdXP–
–––
Message: 6
Date: Thu, 12 Jun 2003 23:37:30 -0300 (BRT)
From: Augusto Castelan Carlson carlson@mail.npd.ufsc.br
To: Phil Homewood pdh@snapgear.com
Cc: rt-users@lists.fsck.com
Subject: Re: [rt-users] creating (email) and replying a ticket problem
Did you run “newaliases” after editing /etc/aliases?
Yes.
There’s no errors there, just diagnostics.
But this means something?
–
Augusto
–––
Message: 7
From: “mohan” mkunamneni@osi-tech.com
To: “rt-users” rt-users@lists.fsck.com
Subject: RE: [rt-users] Getting owner to change when replying
Date: Fri, 13 Jun 2003 08:17:40 +0530
I have installed rt-3.0.2 on redhat linux 7.2
everything working fine.
But so many directories are creating under /tmp directory
with web user
ownership.
shall I remove all these directories from cron job?
Thank in advance.
Mohan.
–––
Message: 8
Date: Fri, 13 Jun 2003 13:15:37 +1000
From: Phil Homewood pdh@snapgear.com
To: rt-users rt-users@lists.fsck.com
Subject: Re: [rt-users] Getting owner to change when replying
Jamie Wilkinson wrote:
Apply the attachment, then perform the following queries on
your database:
It should be noted that throwing random SQL at your RT database
is, um, Not Advisable. Please don’t try this at home.
RT provides tools and hooks for doing this in a safe(r), portable
way. In this instance, a datafile containing something like:
@ScripActions = (
{ Name => ‘Auto Take’,
Description => ‘Take ticket on correspondence’,
ExecModule => ‘AutoTake’ },
);
when fed to “rt-setup-database --insert --datafile”, is the
correct approach.
–
Phil Homewood, Systems Janitor, http://www.SnapGear.com
pdh@snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances
–––
Message: 9
Date: Fri, 13 Jun 2003 13:17:04 +1000
From: Phil Homewood pdh@snapgear.com
To: rt-users@lists.fsck.com
Subject: Re: [rt-users] creating (email) and replying a ticket problem
Augusto Castelan Carlson wrote:
Did you run “newaliases” after editing /etc/aliases?
Yes.
Did you edit the right aliases file, then? Your problem
is that sendmail can’t find that alias.
There’s no errors there, just diagnostics.
But this means something?
It means there are no errors.
Phil Homewood, Systems Janitor, http://www.SnapGear.com
pdh@snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances
–––
Message: 10
Date: Fri, 13 Jun 2003 13:21:14 +1000
From: Phil Homewood pdh@snapgear.com
To: rt-users@lists.fsck.com
Subject: Re: [rt-users] Reopening of Closed Tickets
Stevo wrote:
So I’m using RT2 - is there a way that I can disable a
resolved ticket
getting re-opened on correspondence?
Look for the code containing “Ticket auto-opened” in
RT::Ticket->Correspond(). Be well warned that disabling that
section of code means that a transaction will never automatically
open, so a requestor’s reply informing you that “the problem is
NOT resolved!” isn’t going to reopen the ticket. For example.
Phil Homewood, Systems Janitor, http://www.SnapGear.com
pdh@snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances
–––
Message: 11
Date: Fri, 13 Jun 2003 14:08:29 +1000
From: Jamie Wilkinson jaq@spacepants.org
To: rt-users rt-users@lists.fsck.com
Subject: Re: [rt-users] Getting owner to change when replying
This one time, at band camp, Phil Homewood wrote:
Jamie Wilkinson wrote:
Apply the attachment, then perform the following queries
on your database:
It should be noted that throwing random SQL at your RT database
is, um, Not Advisable. Please don’t try this at home.
RT provides tools and hooks for doing this in a safe(r), portable
way. In this instance, a datafile containing something like:
@ScripActions = (
{ Name => ‘Auto Take’,
Description => ‘Take ticket on correspondence’,
ExecModule => ‘AutoTake’ },
);
when fed to “rt-setup-database --insert --datafile”, is the
correct approach.
The patch submitted to rt-3.0-bugs included this for the
scripaction, although
not the scrip.
–
jaq@spacepants.org
http://spacepants.org/jaq.gpg
–––
rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users
End of rt-users Digest