Permission Denied Error - Ticket creation using mail

Hi,

I am trying to get ticket creation thru mail up in a Fedora 10 box. I am using RT 3.8. I am getting the following error in my maillog. I tried using rt-mailgate directly from /usr/sbin/rt-mailgate. But the same result. I am not sure why I get a permission denied error here. Any pointers will be very useful.

[root@localhost log]# ls -ltr /etc/ | grep smr
drwxrwxrwx 2 root root 4096 2009-08-28 18:11 smrsh
[root@localhost log]# ls -ltr /etc/smrsh
total 16
-rwxrwxrwx 1 root root 12700 2009-08-27 10:28 rt-mailgate
lrwxrwxrwx 1 root root 9 2009-08-28 18:11 mail -> /bin/mail
[root@localhost log]#

Sep 15 10:38:34 localhost sendmail[8685]: n8EA5iIq006474: to="|/etc/smrsh/rt-mailgate --queue General --action correspond --url http://10.108.39.72/ --debug", ctladdr=correspond@localhost.localdomain (8/0), delay=19:02:50, xdelay=00:00:00, mailer=prog, pri=1830557, dsn=4.0.0, stat=Operating system error
Sep 15 10:38:34 localhost sendmail[8712]: n8EA3n3F006454: Warning: program /etc/smrsh/ unsafe: World writable directory
Sep 15 10:38:34 localhost sendmail[8712]: n8EA3n3F006454: SYSERR(root): Cannot exec /etc/smrsh/: Permission denied
Sep 15 10:38:34 localhost sendmail[8685]: n8EA3n3F006454: to="|/etc/smrsh/rt-mailgate --queue General --action correspond --url http://10.108.39.72/ --debug", ctladdr=correspond@localhost.localdomain (8/0), delay=19:04:45, xdelay=00:00:00, mailer=prog, pri=1830748, dsn=4.0.0, stat=Operating system error

Thanks,
Baskar N

DISCLAIMER:

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

Retrying…From: Baskaraganesan Natarajan
Sent: Tuesday, September 15, 2009 11:07 AM
To: 'rt-users@lists.bestpractical.com’
Subject: Permission Denied Error - Ticket creation using mail

Hi,

I am trying to get ticket creation thru mail up in a Fedora 10 box. I am using RT 3.8. I am getting the following error in my maillog. I tried using rt-mailgate directly from /usr/sbin/rt-mailgate. But the same result. I am not sure why I get a permission denied error here. Any pointers will be very useful.

[root@localhost log]# ls -ltr /etc/ | grep smr
drwxrwxrwx 2 root root 4096 2009-08-28 18:11 smrsh
[root@localhost log]# ls -ltr /etc/smrsh
total 16
-rwxrwxrwx 1 root root 12700 2009-08-27 10:28 rt-mailgate
lrwxrwxrwx 1 root root 9 2009-08-28 18:11 mail -> /bin/mail
[root@localhost log]#

Sep 15 10:38:34 localhost sendmail[8685]: n8EA5iIq006474: to="|/etc/smrsh/rt-mailgate --queue General --action correspond --url http://10.108.39.72/ --debug", ctladdr=correspond@localhost.localdomain (8/0), delay=19:02:50, xdelay=00:00:00, mailer=prog, pri=1830557, dsn=4.0.0, stat=Operating system error
Sep 15 10:38:34 localhost sendmail[8712]: n8EA3n3F006454: Warning: program /etc/smrsh/ unsafe: World writable directory
Sep 15 10:38:34 localhost sendmail[8712]: n8EA3n3F006454: SYSERR(root): Cannot exec /etc/smrsh/: Permission denied
Sep 15 10:38:34 localhost sendmail[8685]: n8EA3n3F006454: to="|/etc/smrsh/rt-mailgate --queue General --action correspond --url http://10.108.39.72/ --debug", ctladdr=correspond@localhost.localdomain (8/0), delay=19:04:45, xdelay=00:00:00, mailer=prog, pri=1830748, dsn=4.0.0, stat=Operating system error

Thanks,
Baskar N

DISCLAIMER:

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

Retrying…
[root@localhost log]# ls -ltr /etc/ | grep smr

drwxrwxrwx 2 root root 4096 2009-08-28 18:11 smrsh

Sep 15 10:38:34 localhost sendmail[8712]: n8EA3n3F006454: Warning: program /etc/smrsh/ unsafe:
World writable directory

Read the error messages, you can’t have a world writable /etc/smrsh

-kevin

Hi,

I found that my sendmail configuration was wrong. When I get this corrected in my sendmail.cf file, I got rid of this error. But getting a different error this time (Log below). Searching thru, I see the following line in http://mail.python.org/pipermail/mailman-users/2000-June/005182.html. Any help from here…

Sendmail won’t deliver to a setuid program unless the directory where the
process resides is writable only by the owner. That means no group write
or other' write priviledges. Mailman requires that thes’ bit be set
for the group.

Changed
Mprog, P=/etc/smrsh/
To
Mprog, P=/usr/sbin/smrsh

Log
Sep 16 12:15:01 localhost sendmail[15363]: n8G6j0O6015363: from=root, size=0, class=0, nrcpts=1, relay=root@localhost
Sep 16 12:15:13 localhost sendmail[15365]: n8G6jAvi015365: from=root, size=11, class=0, nrcpts=1, msgid=200909160645.n8G6jAvi015365@localhost.localdomain, relay=root@localhost
Sep 16 12:15:13 localhost sendmail[15366]: n8G6jDAd015366: from=root@localhost.localdomain, size=300, class=0, nrcpts=1, msgid=200909160645.n8G6jAvi015365@localhost.localdomain, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Sep 16 12:15:13 localhost sendmail[15365]: n8G6jAvi015365: to=helpdesk, ctladdr=root (0/0), delay=00:00:03, xdelay=00:00:00, mailer=relay, pri=30011, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (n8G6jDAd015366 Message accepted for delivery)
Sep 16 12:15:13 localhost sendmail[15367]: n8G6jDAd015366: to="|rt-mailgate --queue ‘CI new’ --action correspond", ctladdr=helpdesk@localhost.localdomain (8/0), delay=00:00:00, xdelay=00:00:00, mailer=prog, pri=30543, dsn=5.3.0, stat=unknown mailer error 1
Sep 16 12:15:13 localhost sendmail[15367]: n8G6jDAd015366: n8G6jDAd015367: DSN: unknown mailer error 1
Sep 16 12:15:13 localhost sendmail[15367]: n8G6jDAd015367: to=root@localhost.localdomain, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31567, dsn=2.0.0, stat=Sent

Thanks,
Baskar N-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kevin Falcone
Sent: Tuesday, September 15, 2009 10:21 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Permission Denied Error - Ticket creation using mail

On Tue, Sep 15, 2009 at 01:20:07PM +0530, Baskaraganesan Natarajan wrote:

Retrying…
[root@localhost log]# ls -ltr /etc/ | grep smr

drwxrwxrwx 2 root root 4096 2009-08-28 18:11 smrsh

Sep 15 10:38:34 localhost sendmail[8712]: n8EA3n3F006454: Warning: program /etc/smrsh/ unsafe:
World writable directory

Read the error messages, you can’t have a world writable /etc/smrsh

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

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

DISCLAIMER:

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

Hi Kevin,

I found that my sendmail configuration was wrong. When I get this corrected in my sendmail.cf file, I got rid of this error. But getting a different error this time (Log below). Searching thru, I see the following line in http://mail.python.org/pipermail/mailman-users/2000-June/005182.html. Any help from here…

Sendmail won’t deliver to a setuid program unless the directory where the
process resides is writable only by the owner. That means no group write
or other' write priviledges. Mailman requires that thes’ bit be set
for the group.

Changed
Mprog, P=/etc/smrsh/
To
Mprog, P=/usr/sbin/smrsh

Log
Sep 16 12:15:01 localhost sendmail[15363]: n8G6j0O6015363: from=root, size=0, class=0, nrcpts=1, relay=root@localhost
Sep 16 12:15:13 localhost sendmail[15365]: n8G6jAvi015365: from=root, size=11, class=0, nrcpts=1, msgid=200909160645.n8G6jAvi015365@localhost.localdomain, relay=root@localhost
Sep 16 12:15:13 localhost sendmail[15366]: n8G6jDAd015366: from=root@localhost.localdomain, size=300, class=0, nrcpts=1, msgid=200909160645.n8G6jAvi015365@localhost.localdomain, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Sep 16 12:15:13 localhost sendmail[15365]: n8G6jAvi015365: to=helpdesk, ctladdr=root (0/0), delay=00:00:03, xdelay=00:00:00, mailer=relay, pri=30011, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (n8G6jDAd015366 Message accepted for delivery)
Sep 16 12:15:13 localhost sendmail[15367]: n8G6jDAd015366: to="|rt-mailgate --queue ‘CI new’ --action correspond", ctladdr=helpdesk@localhost.localdomain (8/0), delay=00:00:00, xdelay=00:00:00, mailer=prog, pri=30543, dsn=5.3.0, stat=unknown mailer error 1
Sep 16 12:15:13 localhost sendmail[15367]: n8G6jDAd015366: n8G6jDAd015367: DSN: unknown mailer error 1
Sep 16 12:15:13 localhost sendmail[15367]: n8G6jDAd015367: to=root@localhost.localdomain, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31567, dsn=2.0.0, stat=Sent

Thanks,
Baskar N-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kevin Falcone
Sent: Tuesday, September 15, 2009 10:21 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Permission Denied Error - Ticket creation using mail

On Tue, Sep 15, 2009 at 01:20:07PM +0530, Baskaraganesan Natarajan wrote:

Retrying…
[root@localhost log]# ls -ltr /etc/ | grep smr

drwxrwxrwx 2 root root 4096 2009-08-28 18:11 smrsh

Sep 15 10:38:34 localhost sendmail[8712]: n8EA3n3F006454: Warning: program /etc/smrsh/ unsafe:
World writable directory

Read the error messages, you can’t have a world writable /etc/smrsh

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

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

DISCLAIMER:

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.