For XMail and PHP your /usr/sbin/sendmail should be a script like:

#! /bin/sh
#modified for debian xmail package

export DEFAULT_DOMAIN=`cat /etc/xmail/default_domain`

if [ -z $MAIL_ROOT ]; then
        export MAIL_ROOT=/var/lib/xmail
fi

exec /var/lib/xmail/sendmail/sendmail $*


Basically MAIL_ROOT needs to be set in this script, then you call the real
sendmail binary for xmail. If you want to use the -F option for sendmail in
your php.ini, you should also do a chmod u+s on your sendmail binary while
logged in a root.

-Mark


Quoting Ceesjan Luiten <[EMAIL PROTECTED]>:

>
> Hi,
>
> I had the same problem with the sendmail from XMail 1.20, with the 1.21
> version it was solved. I did not do anything to the PHP config for this
> to happen.
>
> If you are using 1.21 and don't mind some dirty stuff, you can always
> send mail your own way using something like this:
>
> exec("echo -e \"To: Someone <[EMAIL PROTECTED]>\r\nMIME-Version:
> 1.0\r\nSubject: Mail for you !\r\n\r\nReally, this is my email
> body\r\n\" | /usr/sbin/sendmail [EMAIL PROTECTED]
> [EMAIL PROTECTED]");
>
> Greetings,
>
> Ceesjan Luiten
>
> MysteryX schrieb:
>
> >Hi,
> >I have a problem with Xmail. I use Apache 2.0.28 an PHP 4.3. First I
> >installed XMail an moved the sendmail binary to /usr/sbin/ than I
> >compiled php an Apache. Now when I use the mail()-Funktion the Mail it
> >doesn't work. When I use the sendmail from the shell it works so it is
> >not exactly the sendmail program than the config of the php. So can
> >someone tell me, how do I have to configure my php ?
> >Thanks and I hope someone can help me.
> >
> >-
> >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]
>
>



-
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