Element-web: Validation emails are being spamcanned again

Created on 5 Nov 2016  路  18Comments  路  Source: vector-im/element-web

We seem to have reintroduced the "HTML_IMAGE_ONLY_28" rule again, presumably when rebranding for Riot :(

X-Spam-Report: 
        *  3.5 BAYES_99 BODY: Bayes spam probability is 99 to 100%
        *      [score: 1.0000]
        * -0.0 SPF_PASS SPF: sender matches SPF record
        *  0.2 BAYES_999 BODY: Bayes spam probability is 99.9 to 100%
        *      [score: 1.0000]
        *  1.4 HTML_IMAGE_ONLY_28 BODY: HTML: images with 2400-2800 bytes of words
        *  0.0 HTML_MESSAGE BODY: HTML included in message
        *  1.1 DCC_CHECK Detected as bulk mail by DCC (dcc-servers.net)
        * -0.4 AWL AWL: Adjusted score from AWL reputation of From: address
bug p1 regression critical registration

All 18 comments

this is still true on arasphere:

X-Spam-Report: 
    *  3.5 BAYES_99 BODY: Bayes spam probability is 99 to 100%
    *      [score: 1.0000]
    *  0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked.
    *       See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
    *      for more information.
    *      [URIs: vector.im]
    * -0.0 SPF_PASS SPF: sender matches SPF record
    *  0.2 BAYES_999 BODY: Bayes spam probability is 99.9 to 100%
    *      [score: 1.0000]
    *  1.4 HTML_IMAGE_ONLY_28 BODY: HTML: images with 2400-2800 bytes of words
    *  0.0 HTML_MESSAGE BODY: HTML included in message
    *  1.1 DCC_CHECK Detected as bulk mail by DCC (dcc-servers.net)
    *  0.8 RDNS_NONE Delivered to internal network by a host with no rDNS
    * -0.3 AWL AWL: Adjusted score from AWL reputation of From: address

According to http://serverfault.com/a/174022, the email needs to have more text in it! This could be quite simple to fix. We just have to decide what text to put in it. FTR the text at the moment reads:

Hello,

We have received a request to register this email address on riot.im. If this
was you who made this request, you may use the following link to complete 
the verification of your email address:

Complete email verification

Please note that Riot requires Chrome, Firefox or Safari on the web, or iOS 
or Android on mobile.

If you aren't aware of making such a request, please disregard this email.

thanks,

Riot

2400-2800 bytes of words refers to the HTML content I think, which is ~ 2500 bytes (and bizarrely not the actual textual content).

@lampholder can you bulk out the verbiage a bit please? they live in https://github.com/matrix-org/sydent/tree/master/res and Dave can deploy when done (or show you how)

Heh, did we trigger this by removing the (broken) reference to the IP address?

/me takes a crack at the wording.

it was a problem before, but it probably got exacerbated by removing the IP address. Worst case, just chuck a more detailed "You're receiving this because..." section at the bottom.

I've bulked it out significantly by borrowing some of the blurb from riot.im:

https://github.com/matrix-org/sydent/tree/registration_wording_change

@ara4n / @AmandineLP would you like to review the content? I conflated bulking out the word count with addressing a pet peeve about the email's somewhat robotic tone, because I'm a nuisance.

/me intends to fix up the matrix version of the file too after verifying that this change does indeed do the needful.

Our SpamAssassin score is now 0.0/5 (according to https://spamscorechecker.com/check anyway)

We're still triggering HTML_IMAGE_ONLY_20 on the matrix validation token email.

That's now fixed too.

this looks good but is there a reason we don't think that invite mails won't be suffering the same problem too?

We haven't changed invite emails recently AFAIK.

...but a quick check reveals they're every bit as bad:

* 1.6 HTML_IMAGE_ONLY_24 BODY:HTML: images with 2000-2400 bytes of words.

Are there any other categories of email we send? Notification emails might be affected too?

I can confirm that I have not received notification emails (though my email setup is now... complicated so it's not super obvious where it might be being canned).

as a first cut please let's fix invite emails? they may not have been changed, but they were borderline problematic in the first place...

Cool; changes merged for invites - I'll test against the spamwhatsit when they've been pushed live (which won't happen last thing on a Friday)

just to confirm, invites are indeed failing right now, with:

X-Spam-Status: Yes, score=6.0 required=5.0 tests=AWL,BAYES_99,BAYES_999,
    HTML_IMAGE_ONLY_28,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,URIBL_BLOCKED autolearn=no
    autolearn_force=no version=3.4.1
X-Spam-Report: 
    *  0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked.
    *       See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
    *      for more information.
    *      [URIs: matrix.org]
    * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no
    *      trust
    *      [83.166.64.11 listed in list.dnswl.org]
    *  3.5 BAYES_99 BODY: Bayes spam probability is 99 to 100%
    *      [score: 1.0000]
    *  1.4 HTML_IMAGE_ONLY_28 BODY: HTML: images with 2400-2800 bytes of words
    *  0.0 HTML_MESSAGE BODY: HTML included in message
    *  0.2 BAYES_999 BODY: Bayes spam probability is 99.9 to 100%
    *      [score: 1.0000]
    *  0.9 AWL AWL: Adjusted score from AWL reputation of From: address

spamscoreschecker.com is down, but I _can_ verify that invite emails are now coming through to gmail successfully (from both riot and matrix).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

niedzielski picture niedzielski  路  3Comments

turt2live picture turt2live  路  3Comments

arthurlutz picture arthurlutz  路  3Comments

nvbln picture nvbln  路  3Comments

MurzNN picture MurzNN  路  3Comments