It sends the bounced message to /var/mail/www-data and I get this:

Content-Description: Delivery report
Content-Type: message/delivery-status

Reporting-MTA: dns; homemade
X-Postfix-Queue-ID: 19BE8A70109
X-Postfix-Sender: rfc822; www-d...@homemade
Arrival-Date: Sat, 24 Oct 2009 13:57:26 -0700 (PDT)

Final-Recipient: rfc822;
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix;

Content-Description: Undelivered Message
Content-Type: message/rfc822

Received: by homemade (Postfix, from userid 33)
        id 19BE8A70109; Sat, 24 Oct 2009 13:57:26 -0700 (PDT)

I will investigate how to change the loglevel of postfix, because
right now the error messages don't seem very helpful (at least to me).

On Sat, Oct 24, 2009 at 1:27 PM, John Black
<> wrote:
> James Prentice wrote:
>  > Also, I notice that in the mail.log file, the 'from:' value is
>> 'www-d...@homemade'. The actual 'from:' value is provided to the php
>> mail() function via a web form, so should be somebody's email address
>> (e.g. my own in this case).
> I think PHP will use the apache user and domain to generate the email
> address. I use my own smtp function so I can't say for certain.
> One thing you could try is to use a valid email account on the server for
> the FROM address so that you can receive the bounced message. The actual
> message should contain more information.
> Alternatively attempt to increase the loglevel of postfix so you get exact
> feedback of why the connection is failing.
> As far as which server to use. I think this page lists the correct one:
> --
> John

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to