PDA

View Full Version : Missing Field... ENVELOPE-FROM Address


tom92909
04-08-2010, 11:59 AM
For security reasons, is it possible to include an ENVELOPE-FROM & RETURN-PATH field(s) in messages sent using this Solution Pack and/or all UE type products?

My Linux/Apache Mail server is broadcasting confidential account information in the message header...

Return-path: <username@server.domain.com>
(envelope-from <username@server.domain.com>)


By not providing them, it appears that the server defaults to the user account information, rather than using the mailbox information that would be more desirable.

Jason Byrnes
04-08-2010, 12:45 PM
you can add a return path in the WA_Universal_Email/WAUE_contact_1.php by editing the third argument of the WAUE_Definition


$WA_MailObject = WAUE_Definition("".($WAGLOBAL_Email_Server) ."","25","return_address@domain.com","","","");


The envelope from setting is added to the email using the -f parameter of the mail function:

you will need to edit that in the mail_PHP.php file:
$mailObj = mail($mailTo,$mailSubject,$mailContent,$mailHeader , '-f return_address@domain.com');