yeah, that was nicer. works fine. thanks

/thomas


----- Original Message ----- 
From: "Sönke Ruempler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 07, 2003 4:40 PM
Subject: [xmail] Re: sendmail + permissions


>
> > into the spool required by sendmail. Is there a better approach ?
>
> yes:

> Replace or create a sendmail script
> -----------------------------------
>
> If your MUA (Kmail, for instance) interfaces (when sending mail) with the
> MTA
> using SMTP you can skip this step entirely, but some MUA's need a sendmail
> script which you can create like this.
>
> The sendmail executable needs the SETGUID bit set to run as root and this
> might
> be a security hole.
>
> If you already have a sendmail script or program, move it aside (your's
> might be
> in /usr/bin or elsewhere):
>
> mv /usr/sbin/sendmail /usr/sbin/sendmail.orig
>
> Copy Xmail's sendmail executable to an appropriate place, and set it's
> SETUID
> bit so that it runs as root.
>
> cp sendmail /usr/sbin/sendmail.xmail
> chmod +s /usr/sbin/sendmail.xmail
>
> And create a sendmail script to set the environment and call the executable:
>
> cat > /usr/sbin/sendmail << "EOF"
> #!/bin/bash
> # This script sets the environment for XMail's sendmail and then calls it.
> # The script exists so that software that expects sendmail can use XMail.
>
> if [ -z $MAIL_ROOT ]; then
>         export MAIL_ROOT=/var/MailRoot
> fi
> /usr/sbin/sendmail.xmail $*
> # End /usr/sbin/sendmail
> EOF
>
> chmod +x /usr/sbin/sendmail
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe xmail" in
> the body of a message to [EMAIL PROTECTED]
> For general help: send the line "help" in the body of a message to
> [EMAIL PROTECTED]
>
>
>

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to