Jump to content
Managing Director

DMARC standards: "Return-Path" must match "From" email address

Recommended Posts

It is now the standard of Comcast and Charter to employ cloudmark.com to check compliance with DMARC standards which requires the "Return-Path:" address to match the "Sent/From:" address. Our shops use sendmail in osCommerce 2.3.4.1, which employs "tep_mail()" and class "email()". The problem is created by sendmail which defaults "Return-Path:" to the Linux host "Username " as Username@domain rather than Sent/From@domain. Accordingly, there needs to be an immediate fix to avoid these bounced emails never reaching our store customers because  the default "Return-Path:" fails to mirror the "Sent/From:" address.

Share this post


Link to post
Share on other sites

This is not a new problem. Searching the forums with google will turn up a number of threads on it. Here's one that, as I recall, works.

Share this post


Link to post
Share on other sites

Thanks for the information. After a bit of further research, we found that the simplest way to resolve this DMARC sendmail issue was to modify line # 522 of the class email() found in includes/classes/email.php and admin/includes/classes, to include the 5th PHP mail() argument "'-f ' . $to_addr". This would make the "Sent/From:" address match the "Return-Path:" address:

Replace:
return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers));

With:
return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers), '-f ' . $to_addr);

To resolve this DMARC problem using the osCommerce SMTP option, adding the 5th PHP mail() argument to that code likely will have the same result.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×