I'm having problems sending email using PHP on a Fedora 5 server. In the default configuration there appears to be a line that causes Sendmail to re-write any return path header I set to something like..
I can override this using the -f command line option in the PHP mail function, however, I would prefer not to have to do this.
The line in the sendmail.cf is..
The explanation I found for this line, doesn't tell me how to disable the feature..
This line defines a field called Return-Path: that displays the contents of
the $g macro (sender address relative to the receiver). The ?P? portion
indicates that this line is only used if the mailer uses the P flag (the
mailer requires a Return-Path line).
Is it safe to just comment out that line? Will that allow me to set the return path as I need it? The spam filters on various servers that we work with, have to resolve this address and I would like to be able to set within the code on a per/project basis on this machine.