Return-Path not set to sender email

Return-Path not set to sender email

by Maxime Pelletier -
Number of replies: 3

Hi all,

Since we upgraded to Moodle 2.6.1+, email sent to users have the "admin email" address in the "Return-path" of the email.

As a result, emails are bouncing back to admin team instead of the teacher sending the email.

Is this a "feature" or a bug?

As a side note, we have disabled internal messaging so all messages are directly sent by email.

Actually, I'm not quite sure where the email used is coming from. Might be the "support email" or the email of an admin. Anyway, it's not the address of the sender.

Thanks

Max

Average of ratings: -
In reply to Maxime Pelletier

Re: Return-Path not set to sender email

by Maxime Pelletier -

Hi all,

Since I'm considering this as a bug, I created a ticket: https://tracker.moodle.org/browse/MDL-44467

After some testing, I found that the return-path is set to the "support email" defined in admin section. If this email is not set, then it uses the "main admin" email.

Regards

Max

In reply to Maxime Pelletier

Re: Return-Path not set to sender email

by Douglas Ward -

I think that this issue is causing email from users with a yahoo.com address to bounce. Take a look at the following mail header:

----------------------------------------

Delivered-To: dward@abc123.org
Received: by 10.152.46.137 with SMTP id v9csp108486lam;
        Fri, 11 Apr 2014 11:57:11 -0700 (PDT)
X-Received: by 10.140.83.37 with SMTP id i34mr4882731qgd.100.1397242630466;
        Fri, 11 Apr 2014 11:57:10 -0700 (PDT)
Return-Path: <dward@abc123.org>
Received: from gateway.abc123.org (gateway.abc123.org. [x.x.x.x])
        by mx.google.com with ESMTP id di5si3695646qcb.56.2014.04.11.11.57.09
        for <dward@abc123.org>;
        Fri, 11 Apr 2014 11:57:10 -0700 (PDT)
Received-SPF: pass (google.com: best guess record for domain of dward@abc123.org designates x.x.x.x as permitted sender) client-ip=x.x.x.x;
Authentication-Results: mx.google.com;
       spf=pass (google.com: best guess record for domain of dward@abc123.org designates x.x.x.x as permitted sender) smtp.mail=dward@abc123.org
Received: from moodlesite.domain.org (moodle.domain.org [x.x.x.x])
	by gateway.abc123.org (Postfix) with ESMTP id 2AAAB14018D
	for <dward@abc123.org>; Fri, 11 Apr 2014 14:49:09 -0400 (EDT)
Date: Fri, 11 Apr 2014 14:57:07 -0400
To: "Douglas Ward" <dward@abc123.org>
From: "Admin User" <moodle@abc123.org>
Reply-To: "Do not reply to this email" <moodle@abc123.org>
Subject: New message from Admin User
Message-ID: <25e3d6a99dc77f8686731ed104e4e060@moodlesite.domain.org>
X-Priority: 3
X-Mailer: PHPMailer Moodle 2013111802 (https://github.com/PHPMailer/PHPMailer/)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit


Hey, did you get this message?

 

----------------------------------------

In this example user Admin sent a message to user DWard. If user Admin had a yahoo.com email address listed then it would fail their DMARC record check in DNS. This is because our internal relay server's IP address doesn't match the allowed list in Yahoo's DMARC. Shouldn't the return-path be the noreply@moodlesite.org account? I could see it pulling the primary Admin's address if this isn't specified. We are getting a great deal of bounces from this one domain (Yahoo.com) ever since this update was loaded.