I'm running into a similar issue on our Moodle platform. Messages that are sent out with a "From" of an @yahoo.com domain are being bounced as spam due to Yahoo's stronger DKIM policy. I researched this issue because it started happening on a Wordpress with Getresponse forms install and the solution, along with correcting our personal DNS files was to set the FROM and REPLY-TO fields correctly.
From: someone@ourdomain.com
Reply-To: personsending@theirdomain.com
How do I do this in Moodle? It looks like I need to edit the class.phpmailer.php file in /lib/phpmailer, but I'm pretty useless at PHP. Essentially, I want to add the Reply-To field into each message and hardcode the From field.
Headers from a bounced message look like this:
grant@globalfrontiermissions.com
SMTP error from remote mail server after end of data:
host aspmx.l.google.com [173.194.64.26]: 550-5.7.1 Unauthenticated email from yahoo.com is not accepted due to domain's
550-5.7.1 DMARC policy. Please contact administrator of yahoo.com domain if
550-5.7.1 this was a legitimate mail. Please visit
550-5.7.1 http://support.google.com/mail/answer/2451690 to learn about DMARC
550 5.7.1 initiative. mc5si4554725obb.42 - gsmtp
------ This is a copy of the message, including all the headers. ------
Return-path: <mtsonline@globalfrontiermissions.com>
Received: from gfmstaff by gator3100.hostgator.com with local (Exim 4.82)
(envelope-from <mtsonline@globalfrontiermissions.com>)
id 1WkmGH-0001ZQ-5J
for grant@globalfrontiermissions.com; Wed, 14 May 2014 22:23:13 -0500
To: "Grant Haynes" <grant@globalfrontiermissions.com>
Subject: Brian Galloway has completed 100 Questions - Unveiled at Last
X-PHP-Script: missionarytrainingschool.com/moodle/mod/quiz/processattempt.php for 73.53.111.176
Date: Wed, 14 May 2014 22:23:13 -0500
From: "Brian Galloway" <elgallo253@yahoo.com>
Message-ID: <255e2576f7a587f4738839097130a7d3@missionarytrainingschool.com>
X-Priority: 3
X-Mailer: PHPMailer Moodle 2013111801.01 (https://github.com/PHPMailer/PHPMailer/)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit