Index: [Article Count Order] [Thread]

Date:  Fri, 14 Jul 2006 18:42:15 +0200
From:  Michael Stauber <bq (at mark) solarspeed.net>
Subject:  [coba-e:06026] Re: Apache Email to remote servers not working.
To:  coba-e (at mark) bluequartz.org
Message-Id:  <200607141842.15425.bq (at mark) solarspeed.net>
In-Reply-To:  <380-220067514143617640 (at mark) M2W003.mail2web.com>
References:  <380-220067514143617640 (at mark) M2W003.mail2web.com>
X-Mail-Count: 06026

> Email from the Internet gets redirected to the client's IP (55.66.77.88,
> above) without problems, but Apache-
> generated email (using php's mail() function) results in a bounce being
> sent to the admin email account like this:
>
>     ----- The following addresses had permanent fatal errors -----
>     user (at mark) domain.com
>     (reason: 553 5.3.0 <user (at mark) domain.com>... No such user here)
>     (expanded from: user (at mark) domain.com)
>
>     ----- Transcript of session follows -----
>
>     ... while talking to [127.0.0.1]:
>     >>> DATA
>
>     <<< 553 5.3.0 <user (at mark) domain.com>... No such user here
>     550 5.1.1 user (at mark) domain.com... User unknown
>     <<< 503 5.0.0 Need RCPT (recipient)
>
> >From the above, it appears apache is trying to find the user at localhost

PHP scripts being unable to send emails:
================================

Find out which php.ini your PHP is using. If you're using the stock PHP that 
came with BlueQuartz, your php.ini is probably located here:

/etc/php.ini

If you have the updated and more modern Solarspeed PHP, then your php.ini is 
located here:

/home/php/etc/php.ini

Edit it and find the following line:
;sendmail_path =

Change it to this:
sendmail_path = /usr/sbin/sendmail -t -i -f admin

Then save the changes and restart Apache:

/etc/init.d/httpd restart

That will solve the issue.

-- 

With best regards,

Michael Stauber