View Full Version : /etc/smrsh
Omair Haroon 11-17-2001, 03:10 PM Hello,
I don't why I can't go in my /etc/smrsh directory.
[admin@www admin]$ su -
Password:
*****************************************************************
* *
* NOTICE TO ROOT USER: Changes to system files may affect *
* your warranty. Please consult your warranty card for details. *
* *
* http://www.cobaltnet.com *
* *
*****************************************************************
[root@www /root]# cd /etc/smrsh/
sh: /etc/smrsh/: Not a directory
[root@www /root]#
Can you tell me how can I access it ??
-Omair
skylab 11-17-2001, 03:24 PM possible it's a data file of some sort, not a dir? i have the same, under /usr/sbin/
it's a data file. having something to do with sendmail. i think.
Omair Haroon 11-17-2001, 05:54 PM Well,
In order to be able to use Ticket Smith, I have to copy gateway.pl to /etc/smrsh and then chmod it to 777, but I am unable to chmod it. Although I am able to copy it to /etc/smrsh :(
-Omair
ffeingol 11-17-2001, 06:46 PM Omair,
Check out this (http://www.sendmail.org/faq/section3.html#3.11) from the sendmail FAQ. At the bottom of the paragraph there are several links with info about smrsh.
Frank
Omair Haroon 11-17-2001, 10:04 PM Well, I read all the three links the link you gave had! But that also never helped!
Anyone ??
Omair Haroon 11-18-2001, 07:06 AM Anyone ??
Chicken, I am waiting for your reply :(
:o
-Omair
jaschwa 11-18-2001, 04:10 PM I had a similar problem. See the thread in the Technical forum: http://www.webhostingtalk.com/showthread.php?threadid=26423
Basically, smrsh is a more secure shell used by sendmail. smrch ignores the path to the file specified in the .forward or .mailprocrc file (or the /etc/aliases file for that matter), and looks for the file in /usr/adm/sm.bin/
Therefore, you need to create a symbolic link to your file:
ln -s /path-to-your-file /usr/adm/sm.bin/your-file-name
Omair Haroon 11-18-2001, 10:14 PM Jeff,
I created a symlink. The command I used is below:
ln -s /home/sites/site4/web/ts/gateway.pl /usr/adm/sm.bin/gateway.pl
Is that right?
It still ain't working. I have used a .procmailrc file. Do I have to use a .forward file?
Waiting for your reply.
-Omair
Omair Haroon 11-18-2001, 10:15 PM Also when I tried to check my email account through NeoMail, I can see that the emails are lying over there. Why are'nt they being forwarded to the file ? :(
-Omair
NewonNet 11-19-2001, 08:47 AM cd into the user directory.
issue commands
chmod 755 .
chmod 644 .procmailrc
chown root .procmailrc
This should work...
Since procmail is already setup to work with sendmail, it is run under root. This is probably why .procmailrc will only work if it is owned by root.
Anyone have suggestion or info on this?
Omair Haroon 11-19-2001, 10:11 AM NewonNet,
It did'nt helped either :( . Would anyone like to help me out!
??
-Omair
NewonNet 11-19-2001, 10:38 AM Maybe you should post the .procmailrc file so that we can see why and help you out.
jaschwa 11-19-2001, 12:12 PM Originally posted by Omair Haroon
Jeff,
I created a symlink. The command I used is below:
ln -s /home/sites/site4/web/ts/gateway.pl /usr/adm/sm.bin/gateway.pl
Is that right?
It still ain't working. I have used a .procmailrc file. Do I have to use a .forward file?
Waiting for your reply.
-Omair
Yes, I believe you need to use a .forward file. If the .procmailrc file does some filtering you need to retain, you can use a .forward file to call the .procmailrc file. See this KB Article (http://cobalt-knowledge.sun.com/cgi-bin/kbase.cfg/php/enduser/std_adp.php?p_sid=IiEsFB*f&p_lva=&p_refno=010829-000008&p_created=999095907&p_sp=cF9ncmlkc29ydD0mcF9yb3dfY250PTEmcF9zZWFyY2hfdGV4dD0ucHJvY21haWxyYyZwX3NlYXJjaF90eXBlPTMmcF9wcm9kX2x2bDE9fmFueX4mcF9wcm9kX2x2bDI9fmFueX4mcF9jYXRfb HZsMT1_YW55fiZwX2NhdF9sdmwyPX5hbnl_JnBfc29ydF9ieT1kZmx0JnBfcGFnZT0x&p_li=) from Cobalt.
Omair Haroon 11-19-2001, 01:17 PM My .procmailrc file looks like:
:0
* (^To:|^CC:|^Cc:) .*test123@cinewebs.com
| /etc/smrsh/gateway.pl
Should I change the path of gateway.pl to /usr/admin/sm.bin/gateway.pl?
-Omair
jaschwa 11-19-2001, 08:03 PM No, that is not necessary. According to the man page for smrsh, the path is stripped off and it looks for the file in /usr/adm/sm.bin/
Note that its /usr/adm/sm.bin, not /usr/admin/sm.bin
Omair Haroon 11-20-2001, 07:52 AM Sorry, I typed the wrong the path over here only. I have the right path in the .procmailrc file as well as I have copied it to /usr/adm/sm.bin but that does'nt either helps.
Please help me!
Omair Haroon 11-20-2001, 08:33 PM I was helped out by ffeingol in setting up Ticket Smith. I would be soon posting how to install Ticket-Smith on my personal website and will give the link to the tutorial here.
-Omair
P.S: I would like to thank all of you for taking your time in helping me out.
|