R.A. Imhoff:
> In fact what finally does set the Return-path is to use the "-r" parameter in 
> the 5th place:
> 
>     $result = mail($to, $subject, $message, $headers, "-r [email protected]")
> 
> the "-f" sets the "From:", but that was already working by setting it in the 
> $headers or in the php.ini

No, that is incorrect.

With POSTFIX, the -f and -r options do exactly the same thing:

        case 'f':
            sender = optarg;
            break;
        ...
        case 'r':                               /* obsoleted by -f */
            sender = optarg;
            break;

If you look in your logging, you may find that you are handing the
mail to something other than POSTFIX.

POSTFIX submissions looks like:

pickup[xx]: yyy: uid=1001 from=<wietse>
cleanup[zz] yyy: message-id=<[email protected]>

        Wietse

Reply via email to