I'm dealing with this problem on my CentOS 6.6 server: when I send a mail with PHP/phpBB (mail() function), Postfix overwrites the return path with apache@servername.
The issue is also expained in this phpBB bug report. The only way I found to deal with the issue is to patch the application and force a -f [email protected]
.
The phpBB team said is a server issue, but I don't know where to start.
I've a default CentOS 6.6 installation (Postfix) + OpenDKIM (but I suspect the latter is not relevant).
Any hints?
postconf -n
-f
appended to email) in the last argument ("additional_parameters") of themail()
function? Ie:[email protected]
"-f" . $config['board_email']
. I stumbled on this Q because our serv was doing something similar even with -f set, but come to find out the multi-domain platform had instantiated mail class for contact form that was overriding using a static email instead of per-domain emails that were called deeper in. In PhpBB case, it's a super simple fix for a bug 5 years old. So noob they haven't patched it by now.