So in setting up the site for a client I realized that the return-path is not being setup correctly. In our case the name of the site is "Media@McGill" and this is the name (attached to the smpt server's name) that is being sent. If I turn off MimeMail and use the DefaultMail system then it uses the proper email address configuration.

Any ideas? I even tried to change the "Sender name" to match the email address but that didn't seem to even be used?

Cheers

Comments

ShaneOnABike’s picture

Priority:Normal» Major
Issue tags:+SimpleNews, +MIME mail

I also increased the status since I think it is pretty major that the return-path is not being setup properly. It means that most emails being sent my simplenews using this module are actually being marked as spam by google and other agents.

kienan’s picture

Status:Active» Needs review
StatusFileSize
new637 bytes

This is a tiny patch which takes the last part of the address, exploded from a ' ' as the subject in the preg_match() which follows. Ideally I think the function here should parse the email address as something closer to rfc-compliant, however this will solve the problem in many cases. Emails of the form "a person"@domain.tld will break this patch.

sgabe’s picture

Priority:Major» Normal
StatusFileSize
new564 bytes

I would rather just fix the regex pattern.

sgabe’s picture

StatusFileSize
new1.52 KB

Test added.

sgabe’s picture

Title:Return path is incorrectly using sender name» Return-Path is incorrectly using sender name
Status:Needs review» Fixed
Issue tags:-SimpleNews, -MIME mail

Patch committed to both branches.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.