RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.4k stars 10.51k forks source link

Emails Landing In Spam due to Incorrect Header Formatting #10539

Open pcm211 opened 6 years ago

pcm211 commented 6 years ago

Description:

emails being sent from the application is not being correctly formatted to be precise the FROM : xxxxx (email Address)

from the Application fails to correctly be sent as input to the mongodb ---- hence all mails being sent via any means ...have incorrect headers and land in SPAM --- others are stopped by mailers itself

Server Setup Information:

Ubuntu 16.04 LTS

Steps to Reproduce:

  1. Snap Instl
  2. update email from Field like ---- Admin Team some-email@example.com
  3. emails -- LANDING IN SPAM ---inspite of all SPF,DKIM, etc clean

Expected behavior:

mails to be inboxed -- After Necessary SPF, DKIM, DMARCs etc in place

Actual behavior:

MAIL IN SPAM

Relevant logs:

would send the header snapshot soon

TX

pcm211 commented 6 years ago

the workaround is do directly go to mongo and update the "from email"

TwizzyDizzy commented 6 years ago

@pcm211 please adhere to the issue template (all up to date will not be true anymore in a few weeks) and post some actual header lines.

Cheers Thomas

nkeilar commented 6 years ago

I confirm this is also an issue for me. The test email sends correctly, but reset password emails do not using sendgrid backend after all email config options setup correctly.

550 5.7.1 [168.245.112.179 11] Our system has detected that this message is 5.7.1 not RFC 5322 compliant: 5.7.1 'From' header is missing. 5.7.1 To reduce the amount of spam sent to Gmail, this message has been 5.7.1 blocked. Please visit 5.7.1 https://support.google.com/mail/?p=RfcMessageNonCompliant 5.7.1 and review RFC 5322 specifications for more information. j15-v6si2275651qvf.10 - gsmtp

Zyplonox commented 6 years ago

Can confirm that. Im running Rocket.Chat with Docker from docker-compose (https://raw.githubusercontent.com/RocketChat/Rocket.Chat/develop/docker-compose.yml)

relay=gmail-smtp-in.l.google.com[173.194.76.26]:25, delay=3.7, delays=1.6/0.02/1.1/1, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[173.194.76.26] said: 550-5.7.1 [193.30.122.114 11] Our system has detected that this message is 550-5.7.1 not RFC 5322 compliant: 550-5.7.1 'From' header is missing. 550-5.7.1 To reduce the amount of spam sent to Gmail, this message has been 550-5.7.1 blocked. Please visit 550-5.7.1 https://support.google.com/mail/?p=RfcMessageNonCompliant 550 5.7.1 and review RFC 5322 specifications for more information. p6-v6si2012384wrf.110 - gsmtp (in reply to end of DATA command))

As you can see the 'From' header is missing.

using Rocket.Chat 0.69.1

tassoevan commented 5 years ago

Still a issue in 0.71.0 and/or 0.72.0?

kaji-bikash commented 5 years ago

@pcm211 Vivek / @nkeilar Nathan, what is the version of Rocket.chat?

We may have been the victim of the same. Can you guys also confirm if upgrading the system to recent version ie. 0.71.0/0.72.0 solved it?