|
Posted by Geoff Muldoon on 11/10/85 11:22
inforequest@spam-killer-remove-techie.com says...
> >Some mail servers will reject mail where an attempt to set a value for the
> >"from" address in the header (as you have done) is in conflict with the
> >message's canonical from address (likely to be apache@yourserver).
> >
> >Try it using the optional fifth parameter in PHP's mail function:
> >$param='-fadmin@acme.co'; // the -f at the front of the address is needed
> >mail($to, $subject, $body, $headers, $param);
> >and see if that fixes it.
>
> Weird, using -f I now get an "Unrouteable address" bounce.
On the target address that used to fail using your initial method, or
both?
One of the upsides to using the -f param method is that bounces are likely
to be returned to the nominated -f address whereas using your initial
method they may well have just gone to the apache account. If mail to
that apache account wasn't been set to /dev/null see if your initial
method was always bouncing mail to that address as well. If so, I suspect
it's a host/DNS problem between your PHP server and that target server.
Geoff M
Navigation:
[Reply to this message]
|