Thanks everyone for the help, I found the sendmail path thing did not work, I also found in my research I am not at all alone in this issue.
I discovered a fix by adding an additional header to the mail() command in emailer.php
What is confusing is that the from: and Return-Path: are both set in the phpBB code, it just does not get put into the email.
I tested it as a test case in a simple hard codes email test, linux and os x both, and I suspect almost all other systems out there just do not honor the Return-Path: header at all. You have to add it as a -
femail@example.com header and it will get put in. It makes no sense, but I consider it a bug in phpBB.
This leads me to my next question, where do you report bugs and fixes to in hopes they get back into the next version?
For example, only \n is used as the line endings in the emails, thats wrong as far as I know, it should be \r\n as per RFC, a lot of email servers out there will complain about stuff like this.
My official one line fix in emailer.php is to find the line that looks like this and change it to this...
find:
Code: Select all
$result = @mail($to, $this->subject, preg_replace("#(?<!\r)\n#s", "\n", $this->msg), $this->extra_headers);
change:
Code: Select all
$result = @mail($this->address, $this->subject, $this->msg, $this->extra_headers,"-f" . $board_config['board_email'], '-f' . $board_config['board_email']);