Last modified: 2014-10-22 16:32:53 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T66795, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 64795 - DMARC: Users cannot send emails via a wiki (from Yahoo addresses etc)
DMARC: Users cannot send emails via a wiki (from Yahoo addresses etc)
Status: NEW
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
wmf-deployment
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 65860 70930 72363 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-03 12:40 UTC by Merlijn van Deen (test)
Modified: 2014-10-22 16:32 UTC (History)
13 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Merlijn van Deen (test) 2014-05-03 12:40:53 UTC
Yahoo recently changed their DMARC configuration, which has two results that are relevant for us:

1) It's no longer possible to send e-mails From: someone@yahoo.com, even if it's allowed from an SPF point of view (i.e. 'someone@yahoo.com via wikipedia.org'). This means Yahoo users cannot send e-mail from the wiki anymore.

2) It's no longer possible to change parts of an e-mail (e.g. the subject to add a mailing list name) sent by a Yahoo user. This means Yahoo users cannot send e-mail to a mailing list anymore. If they do try to, they will receive a flood of error mails from mail servers rejecting the e-mail.

See http://www.ietf.org/mail-archive/web/ietf/current/msg87153.html for more info on issue 2).


For issue 1), we might want to block Special:SendEmail for people with a @yahoo.com address, telling them their e-mail will not be delivered.
Comment 1 Nemo 2014-05-03 12:51:36 UTC
How is this a Wikimedia bug? Is there any workaround? Seb35 hinted yes:

(In reply to Seb35 from comment #22)
> could [...] implement[...] DMARC(+DKIM+SPF) on wikimedia.org to
> improve delivrability for this bug, *BUT* this could lead to heavy
> consequences on other @wikimedia.org emails (like non-delivery) so it must
> be carefully thought before action.

Anyway, if working around this requires special DNS settings something should (also) be done in core.
Comment 2 Merlijn van Deen (test) 2014-05-03 12:55:09 UTC
At the very least, it's good to have a place to keep track of the issue, even if we don't intend to solve it ourselves.

Secondly, there are some options for working around this in Mediawiki;

1) by blocking Yahoo users from using Special:SendEmail, or
2) by changing the SendEmail sender to noreply@wikimedia.org, and adapting Reply-To (not sure if this works), or
3) 2), but by letting people reply through the wiki.
Comment 3 Tim Landscheidt 2014-05-03 19:22:46 UTC
It would be nice if these deficiencies for Yahoo! users were also noted prominently on the sign-up pages and not only show up on Special:SendEmail & Co. so that users can reconsider their choice of mail provider /before/ being handicapped.
Comment 4 Seb35 2014-05-04 11:13:51 UTC
I removed the "mailing lists" issue from this bug since it is a different software, different domain, and sort of different email function ("relay" vs "original on behalf of"); created bug 64818 for this.

As a resume of the proposed solution above, there are three solutions (at least):
(1) a quick one: set Wikimedia’s $wgUserEmailUseReplyTo to true. This would apply for all users, kind of functionality loss for me since the user no longer see who is the "sender".
(2) a more robust one: patch MediaWiki to decide on a domain-by-domain basis if $wgUserEmailUseReplyTo should be used. Yahoo and AOL would fall into the first case, others not. This would add inconsistency from an user to another, and hence a bit more difficult to document and explain to users.
(3) a radical one: patch MediaWiki to blacklist some domains from sending user-to-user emails and add a warning if users use such domains.
Comment 5 Seb35 2014-05-04 11:39:51 UTC
I don’t think (3) is a good solution since it’s a loss of functionality for DMARC senders and it would add as much code as (2).

Between (1) and (2) and status quo, it depends if:
* we want show Yahoo, AOL, and other DMARC email providers that DMARC should not be still used → status quo (DMARC senders think they could send emails throught MediaWiki although they couldn’t – I don’t know if the sender of a user-to-user email is warned if the email don’t reach the destination)
* we think DMARC is a rather bad solution but we want to mitigate it and we don’t want to penalise non-DMARC senders, and we think DMARC will not be widely implemented as it is currently (still not an IETF RFC) → solution (2)
* we think DMARC will be widely implemented in the near future (without proper solution to send an email on behalf of somebody), or we want a quick and/or transitional solution → solution (1)

I feel the more conservative approach would be to choose (1) and see how things evolve, particularly given DMARC is not really standardised as of now and only a big-scale experiment by Yahoo and AOL.
Comment 6 Nick Birse 2014-05-29 13:24:00 UTC
*** Bug 65860 has been marked as a duplicate of this bug. ***
Comment 7 Technical 13 2014-07-14 19:27:58 UTC
Has anyone considered allowing editors to connect directly to Yahoo SMTP servers, or contacting yahoo at dmarc-help@yahoo-inc.com to discuss authentication and configuration options?
Comment 8 Mardetanha 2014-08-11 14:32:16 UTC
I assume it would be wise to globally let users know that they can't send email through their yahoo mail. it could be a message in Special:SendEmail.
Comment 9 Chris Moss 2014-08-16 21:12:25 UTC
In response to Nemo, it is a Wikimedia bug. It's spoofing a From address. The user's email address shouldn't be used for this - using reply-to is quite adequate. And for the record, Gmail has also been flagging these emails as 'suspicious' for the last few months. So it wouldn't be surprising if they started rejecting them altogether.
Comment 10 Merlijn van Deen (test) 2014-08-16 22:25:19 UTC
That's a different (but equally valid) issue (SPF vs DMARC). The SPF issue can be solved with sender rewriting. I'm surprised that hasn't been implemented yet, to be honest.

Switching to a 'noreply@wikimedia.org' sender + reply-to header would solve both issues in MW, I think, and it should be a fairly simple change -- although it would require a new configuration variable for the new sender.
Comment 11 Nemo 2014-09-17 09:04:24 UTC
*** Bug 70930 has been marked as a duplicate of this bug. ***
Comment 12 Andre Klapper 2014-10-22 16:32:53 UTC
*** Bug 72363 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links