I have a server with many virtual domains.
Several of these have forms and alert emails which are sent via php and sendmail.
Currently these all have headers of the form:
Code:
Return-Path: <apache@xxx.com>
Received: from xxx.com (localhost.localdomain [127.0.0.1])
by xxx.com (8.14.4/8.14.4) with ESMTP id t9NAHgLJ031067
for <mail@blah.co.uk>; Fri, 23 Oct 2015 11:17:42 +0100
Received: (from apache@localhost)
by xxx.com (8.14.4/8.14.4/Submit) id t9NAHgES031066;
This is causing a lot of problems with spam classification and blocks.
Ive tried adding relevant domains to the trusted domains list, and using php with the -f feature , eg
PHP Code:
mail("jim@blah.co.uk", "Rolty's Form", $message, $headers, "-fmail@blah.co.uk");
This has no effect..
Ive also looked into using the generics table, but as the actual sender of the email is always apache, it looks like I could only rewrite that to one other address, is that correct?
Several hours on google has me going round in circles, can anyone point the way?
Thanks!