2019-09-20 - hschneider, Admin
Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.
Printable Version of Topic
Click here to view this topic in its original format |
XMail Forum > Documentation and Knowledge Base > XMail Sendmail permission denied ! |
Posted by: crys Mar 4 2006, 09:53 AM | ||||||||
Hi All, I do this,
And I get,
I checked the dirs,
and this,
What could be the problem? Thnx Crys. |
Posted by: hschneider Mar 4 2006, 10:21 AM | ||||
mv sendmail sendmail.org2 ln -s sendmail.xmail.sh sendmail chmod +s sendmail.xmail.sh The sendmail.xmail.sh should call sendmail.xmail then. Mine looks like this:
|
Posted by: crys Mar 6 2006, 10:21 AM |
Thanks, This works charm!. Do you care to explain WHY?. Not Mandatory but will help!! Thanks, Crys |
Posted by: hschneider Mar 6 2006, 11:03 AM |
mv sendmail sendmail.org2 This disables the original sendmail binary by renaming it. ln -s sendmail.xmail.sh sendmail Here we create a symbolic link called sendmail, which calls sendmail.xmail.sh. So each call to the sendmail binary is redirected to that script. chmod +s sendmail.xmail.sh This means the script is executed under the ID of its owner (root). The script itself just sets the global environment variables DEFAULT_DOMAIN + MAIL_ROOT and finally calls XMail's sendmail binary: /usr/sbin/xmail.sendmail which has also its SUID bit set (chmod +s) |
Posted by: crys Mar 7 2006, 03:59 AM | ||
THANK YOU, And off topic I'd like to share something for which I toil to get this XMail sendmail CLI working!!, 1. I wanted to get SSH login/connection alert from my box (I have a gentoo box) 2. Create a file called /etc/ssh/sshrc
3. Whenever a connection is made thru' SSH I get a mail. 4. My next step is to setup a sms alert to my mobile!!!. I'll be very glad if this helps somebody. Please please improve this junk if a genius see this !!!. Thnx Crys. |