遠端MTA回應的錯誤訊息: 554 <xxxxxxxx@yahoo.com>...5.7.9 Message not accepted for policy reasons. See http://postmaster.yahoo.com/errors/postmaster-28.html
[root@dywang moodle23]# diff -uN ../moodle/lib/moodlelib.php lib/moodlelib.php
--- ../moodle/lib/moodlelib.php 2012-08-10 08:05:01.000000000 +0800
+++ lib/moodlelib.php 2014-09-05 13:48:47.965062189 +0800
@@ -5293,7 +5298,9 @@
$mail->From = $CFG->noreplyaddress;
$mail->FromName = $from;
} else if ($usetrueaddress and $from->maildisplay) {
- $mail->From = $from->email;
+ // Changing this due to new DMARC policy requirements
+ $mail->From = $CFG->noreplyaddress;
$mail->FromName = fullname($from);
} else {
$mail->From = $CFG->noreplyaddress;