Fw: Returned mail: see transcript for details -rt-mailgate problem

It does not matter what RT is running as in this case. Your mail
delivery system is trying to execute the command… in my case its
postfix which runs as the user _postfix on OpenBSD. So as root, I
would do su _postfix, then I could manually try to run the rt-mailgate
command.

I think its waiting for the message to be piped into it, so thats why
it did nothing.

I’d find out what user your MTA is running as (ps -aux | less and see
what user it shows up as) then try the su username and see if you can
get at rt-mailgate.

From the error, I would guess that the problem is that the user that
sendmail is running as cannot access that file for some reason.

Your maillog may have more information also, but I think that is the
problem, since you do appear to have the full path in there.

Hope that helps!On Tue, 17 Jan 2006 10:43:54 +0530 “Abilash Praveen M” abilashpraveen82@hotmail.com wrote:

ok so how do i test that? I guess www is what rt is running as? (please note
i have already created the user www for someother stuff… is that a
problem?)

I typed this /opt/rt3/bin/rt-mailgate --queue general --action
correspond --url http://localhost/rt on console and it never responded with
anything. I pressed ctrl+c to quit.

Is it running chrooted or something? - it’s chrooted for ftp access. however
when i type cd /root it says permission denied.

One more thing is that I have MailScanner installed, I’m not sure if this
has any connection with this problem though.

Many thanks for your help.

Thanks again,
Abilash

----- Original Message -----
From: “Bill Chmura” Bill@Explosivo.com
To: rt-users@lists.bestpractical.com
Sent: Tuesday, January 17, 2006 10:36 AM
Subject: Re: [rt-users] Fw: Returned mail: see transcript for
details -rt-mailgate problem

Is the rt-mailgate problem accessable from the sendmail program? As
the user its running as? Is it running chrooted or something?

On Tue, 17 Jan 2006 10:25:59 +0530 “Abilash Praveen M” abilashpraveen82@hotmail.com wrote:

Can someone help me with this problem? I searched on the list and found
no
solution for this yet?

Thanks again,
Abilash
----- Original Message -----
From: “Mail Delivery Subsystem” <MAILER-DAEMON@>
To: <postmaster@>; <praveen@>
Sent: Tuesday, January 17, 2006 10:51 AM
Subject: Returned mail: see transcript for details

The original message was received at Tue, 17 Jan 2006 10:21:24 +0500
from [ip.ip.55.222]

----- The following addresses had permanent fatal errors -----
"|/opt/rt3/bin/rt-mailgate --queue general --action correspond --url
http://localhost/tickets/"
(reason: Service unavailable)
(expanded from: general@localhost.com)

----- Transcript of session follows -----
553 5.3.0 header syntax error, line "X-Name -MailScanner-Information:
Please contact the ISP for more information"
553 5.3.0 header syntax error, line "X-Name Web-MailScanner: Found to
be
clean"
553 5.3.0 header syntax error, line "X-Name -MailScanner-From:
praveen@"
smrsh: “rt-mailgate” not available for sendmail programs (stat failed)
554 5.0.0 Service unavailable


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Download a free sample chapter of RT Essentials from O’Reilly Media at
http://rtbook.bestpractical.com

WE’RE COMING TO YOUR TOWN SOON - RT Training in Amsterdam, Boston and
San Francisco - Find out more at
http://bestpractical.com/services/training.html


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Download a free sample chapter of RT Essentials from O’Reilly Media at
http://rtbook.bestpractical.com

WE’RE COMING TO YOUR TOWN SOON - RT Training in Amsterdam, Boston and
San Francisco - Find out more at
http://bestpractical.com/services/training.html

Ok, I just did # ps -aux | less and got a list. I’ve pasted whatever
corresponds to sendmail. So, to my guess sendmail runs as root?

root 2864 0.0 0.3 9112 3140 ? Ss 10:06 0:00 sendmail:
accepting connections

smmsp 2868 0.0 0.2 8388 2620 ? Ss 10:06 0:00 sendmail:
Queue runner@00:15:00 for /var/spool/clientmqueue

root 2873 0.0 0.2 6660 2736 ? Ss 10:06 0:00 sendmail:
Queue runner@00:15:00 for /var/spool/mqueue

Here is my sendmail log.

Jan 17 11:10:22 support sendmail[4459]: k0H6A1Hp004390: SYSERR(root): header
syntax error, line "X-Name -MailScanner-Information: Please contact the ISP
for more information"
Jan 17 11:10:22 support sendmail[4459]: k0H6A1Hp004390: SYSERR(root): header
syntax error, line “X-Name -MailScanner: Found to be clean"
Jan 17 11:10:22 support sendmail[4459]: k0H6A1Hp004390: SYSERR(root): header
syntax error, line “X-Name-MailScanner-From: root@dddd.com"
Jan 17 11:10:22 support smrsh: uid 8: attempt to use “rt-mailgate --queue
general --action correspond --url http://domainname.com/tickets/” (stat
failed)
Jan 17 11:10:22 support sendmail[4459]: k0H6A1Hp004390:
to=”|/opt/rt3/bin/rt-mailgate --queue general --action correspond --url
http://domainname.com/tickets/”, ctladdr=general@dddd.com (8/0),
delay=00:00:11, xdelay=00:00:00, mailer=prog, pri=120382, dsn=5.0.0,
stat=Service unavailable
Jan 17 11:10:33 support sendmail[4459]: k0H6A1Hp004390: k0H6AHnD004459: DSN:
Service unavailable
Jan 17 11:10:54 support sendmail[4459]: k0H6AHnD004459: to=root(forwarded),
delay=00:00:21, xdelay=00:00:21, mailer=esmtp, pri=31963,
relay=mx1.mail.yahoo.com. [4.79.181.15], dsn=2.0.0, stat=Sent (ok dirdel)

I’m using the url http://domainname.com instead of http://localhost … is
this is a problem? (just trying you give you as much info as possible)

Thanks again,
AbilashFrom: “Bill Chmura” Bill@Explosivo.com
To: “Abilash Praveen M” abilashpraveen82@hotmail.com
Cc: rt-users@lists.bestpractical.com
Sent: Tuesday, January 17, 2006 10:58 AM
Subject: Re: [rt-users] Fw: Returned mail: see transcript for
details -rt-mailgate problem

It does not matter what RT is running as in this case. Your mail
delivery system is trying to execute the command… in my case its
postfix which runs as the user _postfix on OpenBSD. So as root, I
would do su _postfix, then I could manually try to run the rt-mailgate
command.

I think its waiting for the message to be piped into it, so thats why
it did nothing.

I’d find out what user your MTA is running as (ps -aux | less and see
what user it shows up as) then try the su username and see if you can
get at rt-mailgate.

From the error, I would guess that the problem is that the user that
sendmail is running as cannot access that file for some reason.

Your maillog may have more information also, but I think that is the
problem, since you do appear to have the full path in there.

Hope that helps!

ok so how do i test that? I guess www is what rt is running as? (please
note
i have already created the user www for someother stuff… is that a
problem?)

I typed this /opt/rt3/bin/rt-mailgate --queue general --action
correspond --url http://localhost/rt on console and it never responded
with
anything. I pressed ctrl+c to quit.

Is it running chrooted or something? - it’s chrooted for ftp access.
however
when i type cd /root it says permission denied.

One more thing is that I have MailScanner installed, I’m not sure if this
has any connection with this problem though.

Many thanks for your help.

Thanks again,
Abilash

----- Original Message -----
From: “Bill Chmura” Bill@Explosivo.com
To: rt-users@lists.bestpractical.com
Sent: Tuesday, January 17, 2006 10:36 AM
Subject: Re: [rt-users] Fw: Returned mail: see transcript for
details -rt-mailgate problem

Is the rt-mailgate problem accessable from the sendmail program? As
the user its running as? Is it running chrooted or something?

Can someone help me with this problem? I searched on the list and
found
no
solution for this yet?

Thanks again,
Abilash
----- Original Message -----
From: “Mail Delivery Subsystem” <MAILER-DAEMON@>
To: <postmaster@>; <praveen@>
Sent: Tuesday, January 17, 2006 10:51 AM
Subject: Returned mail: see transcript for details

The original message was received at Tue, 17 Jan 2006 10:21:24 +0500
from [ip.ip.55.222]

----- The following addresses had permanent fatal errors -----
"|/opt/rt3/bin/rt-mailgate --queue general --action correspond --url
http://localhost/tickets/"
(reason: Service unavailable)
(expanded from: general@localhost.com)

----- Transcript of session follows -----
553 5.3.0 header syntax error, line
"X-Name -MailScanner-Information:
Please contact the ISP for more information"
553 5.3.0 header syntax error, line "X-Name Web-MailScanner: Found
to
be
clean"
553 5.3.0 header syntax error, line "X-Name -MailScanner-From:
praveen@"
smrsh: “rt-mailgate” not available for sendmail programs (stat
failed)
554 5.0.0 Service unavailable


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Download a free sample chapter of RT Essentials from O’Reilly Media at
http://rtbook.bestpractical.com

WE’RE COMING TO YOUR TOWN SOON - RT Training in Amsterdam, Boston and
San Francisco - Find out more at
http://bestpractical.com/services/training.html


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Download a free sample chapter of RT Essentials from O’Reilly Media at
http://rtbook.bestpractical.com

WE’RE COMING TO YOUR TOWN SOON - RT Training in Amsterdam, Boston and
San Francisco - Find out more at
http://bestpractical.com/services/training.html

From: rt-users-bounces@lists.bestpractical.com

Can someone help me with this problem? I searched on the list
and found no solution for this yet?

----- The following addresses had permanent fatal errors -----
"|/opt/rt3/bin/rt-mailgate --queue general --action
correspond --url http://localhost/tickets/"
(reason: Service unavailable)
(expanded from: general@localhost.com)

Localhost.com ??

----- Transcript of session follows -----
553 5.3.0 header syntax error, line "X-Name-MailScanner-Information: Please contact the ISP for more information"
553 5.3.0 header syntax error, line "X-NameWeb-MailScanner: Found to be clean"
553 5.3.0 header syntax error, line "X-Name-MailScanner-From: praveen@"
smrsh: “rt-mailgate” not available for sendmail programs
(stat failed)

Smrsh - you need to create a symlink for this. Let me know if you can’t find the Wiki page: my personal wiki notes:

Uses sendmail to route to the rt-mailgate script.

Add the following to /etc/aliases so that sendmail will, for the addresses on the left, pipe mail to the programs on the right:
rt-comment: "|/opt/rt3/bin/rt-mailgate --queue general --action comment --url http://rt/"
rt: "|/opt/rt3/bin/rt-mailgate --queue general --action correspond --url http://rt/"
Execute the newaliases command after making changes to alisases.
sendmail requires that for any such piped-to program, a symbolic link to be placed in /etc/smrsh/:
ln -s /opt/rt3/bin/rt-mailgate /etc/smrsh/
Set the correspondance e-mail addresses in the RT configuration file RT_SiteConfig.pm:

Set($CorrespondAddress , ‘rt@dave11.easa.local’); Set($CommentAddress , ‘rt-comments@dave11.easa.local’);

To have e-mails appear to come from RT, make sure the RT httpd is running as user rt, and that this is not a log-on account.

Lee Goddard
Internet Application Analysis/Development
European Aviation Safety Agency
Administrative Directorate

E: Lee.Goddard@EASA.EU.int
T: +49 221 89990 3221
F: +49 221 89990 3721
W: www.easa.eu.int
:: Ottoplat 1, D-50679 Köln, Germany

Hi Goddard,

Thanks for your help.

Localhost.com was just for an example.

I had all my RT_SiteConfig.pm set right. Only this symlink was my mistake.
Very silly though was it not?

Anyway, I think we need to add this bit in the wiki -
http://wiki.bestpractical.com/index.cgi?ManualInstallation

Again, very much appreciated and thanks a lot for your help!!

Abilash

rt-users@lists.bestpractical.com
details -rt-mailgate problem

From: rt-users-bounces@lists.bestpractical.com

Can someone help me with this problem? I searched on the list
and found no solution for this yet?

----- The following addresses had permanent fatal errors -----
"|/opt/rt3/bin/rt-mailgate --queue general --action
correspond --url http://localhost/tickets/"
(reason: Service unavailable)
(expanded from: general@localhost.com)

Localhost.com ??

----- Transcript of session follows -----
553 5.3.0 header syntax error, line "X-Name-MailScanner-Information:
Please contact the ISP for more information"
553 5.3.0 header syntax error, line "X-NameWeb-MailScanner: Found to be
clean"
553 5.3.0 header syntax error, line "X-Name-MailScanner-From: praveen@"
smrsh: “rt-mailgate” not available for sendmail programs
(stat failed)

Smrsh - you need to create a symlink for this. Let me know if you can’t find
the Wiki page: my personal wiki notes:

Uses sendmail to route to the rt-mailgate script.

Add the following to /etc/aliases so that sendmail will, for the addresses
on the left, pipe mail to the programs on the right:
rt-comment: "|/opt/rt3/bin/rt-mailgate --queue general --action
comment --url http://rt/"
rt: "|/opt/rt3/bin/rt-mailgate --queue general --action
correspond --url http://rt/"
Execute the newaliases command after making changes to alisases.
sendmail requires that for any such piped-to program, a symbolic link to be
placed in /etc/smrsh/:
ln -s /opt/rt3/bin/rt-mailgate /etc/smrsh/
Set the correspondance e-mail addresses in the RT configuration file
RT_SiteConfig.pm:

Set($CorrespondAddress , ‘rt@dave11.easa.local’); Set($CommentAddress ,
‘rt-comments@dave11.easa.local’);

To have e-mails appear to come from RT, make sure the RT httpd is running as
user rt, and that this is not a log-on account.

Lee Goddard
Internet Application Analysis/Development
European Aviation Safety Agency
Administrative Directorate

E: Lee.Goddard@EASA.EU.int
T: +49 221 89990 3221
F: +49 221 89990 3721
W: www.easa.eu.int
:: Ottoplat 1, D-50679 K�ln, Germany