Problem sending mail with sendmail and php - wrong sender!
When i send mail using mail() in php i receive from my external smtp
server a message such that:
Sep 3 17:30:15 xxxxxxx postfix/smtpd[898]: NOQUEUE: reject: RCPT from
unknown[yyyyyyyy]: 450 <apache [at] zzzzzzzzzz.uuu.hhh.it>: Sender address
rejected: Domain not found; from=<apache [at] zzzzzzzzzz.uuu.hhh.it>
to=<marco.pppppppppppppp [at] xxxxxxx.it> proto=ESMTP
helo=<apache [at] zzzzzzzzzz.uuu.hhh.it>
Where zzzzzzzzzz is name of the Linux machine
uuu.hhh.it is the domain
I need that sender is someone [at] uuu.hhh.it and not
apache [at] zzzzzzzzzz.uuu.hhh.it
Do you know where must i change this parameter of configuration?
Re: Problem sending mail with sendmail and php - wrong sender!
Well, this a php problem. Sendmail sends mail, that's all. I use a little
function so send:
function SendEmail ( $Address, $Title, $Body, $Extra = "" )
{
$Headers = "From: PHP AutoMailer
<no-reply [at] mycompany.co.nz>\r\nX-Mailer: PHP/" . phpversion();
if ( $Extra != "" )
{
$Headers .= "\r\n" . $Extra;
}
$Return = mail ( $Address, $Title, wordwrap ($Body, 70 ), $Headers );
}
Then you've set up the from: address properly.
On Mon, 03 Sep 2007 08:50:13 -0700, bertainafederico
wrote:
> When i send mail using mail() in php i receive from my external smtp
> server a message such that:
>
> Sep 3 17:30:15 xxxxxxx postfix/smtpd[898]: NOQUEUE: reject: RCPT from
> unknown[yyyyyyyy]: 450 <apache [at] zzzzzzzzzz.uuu.hhh.it>: Sender address
> rejected: Domain not found; from=<apache [at] zzzzzzzzzz.uuu.hhh.it>
> to=<marco.pppppppppppppp [at] xxxxxxx.it> proto=ESMTP
> helo=<apache [at] zzzzzzzzzz.uuu.hhh.it>
>
>
> Where zzzzzzzzzz is name of the Linux machine
> uuu.hhh.it is the domain
>
>
> I need that sender is someone [at] uuu.hhh.it and not
> apache [at] zzzzzzzzzz.uuu.hhh.it
>
> Do you know where must i change this parameter of configuration?