Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


Managing Director

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.

Link to comment
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.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
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.

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...