On 15.10.2005 13:50, Dick van der Kaaden wrote: > Davide, > > What you think about a version of sendmail that has an option to use the > From: > header address as smtp mail from. Do you envision any problems with this? > > The thing is that the current behavior does not work well in the shared > hosting environment that we operate for our customers. Most of the these > sites use php and the php mail function. This function does not allow you to > set the smtp mail from and it simply calls xmail's sendmail.
It does, if you don't use PHP's safe_mode - see here: http://php.speedbone.de/manual/en/function.mail.php Description bool mail ( string to, string subject, string message [, string additional_headers [, string additional_parameters]] ) << additional_parameters (optional) The additional_parameters parameter can be used to pass an additional parameter to the program configured to use when sending mail using the sendmail_path configuration setting. For example, this can be used to set the envelope sender address when using sendmail with the -f sendmail option. The user that the webserver runs as should be added as a trusted user to the sendmail configuration to prevent a 'X-Warning' header from being added to the message when the envelope sender (-f) is set using this method. For sendmail users, this file is /etc/mail/trusted-users. >> So you can use the fifth parameter and "[EMAIL PROTECTED]" and it's becoming the Return Path / MAIL_FROM. - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
