Page MenuHomePhabricator

ContactPage sets "From" in SMTP request to user-provided email address
Closed, ResolvedPublic

Description

This causes messages to be rejected on services like Amazon SES that do not allow users to send emails from domains they do not own (see here). The proper behavior (used by Special:EmailUser) is to set "From" to an email address specified by the site administrator (e.g. PasswordSender or the SenderEmail config variable) put the user-provided email address in ReplyTo.

The extension currently evaluates $wgUserEmailUseReplyTo and sets ReplyTo if true, but does not change the sender to the site-configured email address.

Event Timeline

This comment was removed by Chrishel.

Change 679450 had a related patch set uploaded (by Chris Rishel; author: Chris Rishel):

[mediawiki/extensions/ContactPage@master] includes/SpecialContact.php: Fixed to properly respect $wgUserEmailUseReplyTo

https://gerrit.wikimedia.org/r/679450

Change 679450 merged by jenkins-bot:

[mediawiki/extensions/ContactPage@master] includes/SpecialContact.php: Fixed to properly respect $wgUserEmailUseReplyTo

https://gerrit.wikimedia.org/r/679450

Change 707442 had a related patch set uploaded (by RhinosF1; author: Chris Rishel):

[mediawiki/extensions/ContactPage@REL1_36] includes/SpecialContact.php: Fixed to properly respect $wgUserEmailUseReplyTo

https://gerrit.wikimedia.org/r/707442

Change 707442 merged by jenkins-bot:

[mediawiki/extensions/ContactPage@REL1_36] includes/SpecialContact.php: Fixed to properly respect $wgUserEmailUseReplyTo

https://gerrit.wikimedia.org/r/707442

It looks like the patch has been merged, are there outstanding issues or can this task be closed?

Aklapper assigned this task to Chrishel.

Boldly closing