certified:
> How do I configure postfix to append the correct domain on outgoing emails
> from php on apache:
>
> I have LAMP on Centos 7 and a static IP. There are several domain names
> registered to that static IP:
> first.com -> my static ip
> another.com -> my static ip
> third.com -> my static ip
> My postfix MX server is also on the webserver box.
>
> php uses the following format:
> $result = mail($to, $subject, $message, $headers, "-f returndomain")
That is incorrect. The correct syntax is:
$result = mail($to, $subject, $message, $headers, "-f address")
where the address is in user@domain form.
Wietse