30

This is a canonical question about avoiding outgoing mail being classified as spam.
Also related:

I'm wondering how to prevent my emails from my site being marked as spam? I'm using sendmail.

I'm trying to send emails through my ruby-on-rails application. The mails are all written in swedish (if that does make a difference?). I don't know why they keep getting marked as spam.

Are there any things that I can do to minimize the risk?

jonepatr
  • 405
  • 1
  • 4
  • 7
  • 3
    This depends entirely on why your email is being marked as spam -- can you be more specific with this question? :-) – voretaq7 Jan 26 '11 at 17:53
  • I have updated the question a little bit, maybe still to unspecific, but it is a little bit hard to be more specific. Just ask if you want to know more! Thanks! – jonepatr Jan 26 '11 at 18:13
  • Possible duplicate, see: http://serverfault.com/questions/41693/best-practices-for-preventing-you-from-looking-like-a-spammer – gravyface Jan 26 '11 at 19:09

4 Answers4

25

Mail will be marked as spam by major ISPs (including webmail providers like gmail, hotmail, yahoo) for several possible reasons:

  1. If you're sending it from a residential IP address
  2. If you're sending it from an IP address with a poor reputation
  3. If you're sending mail which matches certain patterns (these are hard to describe, but software looks for things like "Congratulations, you've won $1 billion!", in a fuzzy-matching sort of way).
  4. If you send too much mail to the ISP too fast
  5. If too many people at the ISP click the "This is spam" button on your emails
  6. If you don't use SPF to identify which mail servers for your domain may send email, and which servers may not
  7. If you don't use DKIM to sign your messages
  8. If you haven't requested permission to be a "bulk sender" (some offer this like AOL and hotmail)
  9. If you IP address is on any DNS blocklists

and many, many other possible reasons.

You can check the reputation of your IP address at https://www.senderscore.org/
You can check if you're on various blocklists at http://www.mxtoolbox.com/blacklists.aspx

Avleen
  • 1,044
  • 7
  • 4
6

In addition to all the steps in the excellent accepted answer a number of the largest e-mail providers have special tools and program's for (bulk) senders that will help you to prevent your valid email from getting marked as spam. Fairly typical are feedback loop programs that allow you, as the sender, to respond to spam complaints from recipients, instead of getting blacklisted immediately as a Spam sender.

There are still no guarantees though.

Microsoft responsible for among others @hotmail.com, @live.com, @outlook.com and @msn.com offers:

  • The Junk Mail Reporting Program JMRP for domain owners.
  • The Smart Network Data Service SNDS is intended for mostly for owners of IP space rather than individual domains.

Google's @gmail.com offerings:

AOL offers:

And undoubtedly many more!

HBruijn
  • 72,524
  • 21
  • 127
  • 192
  • These are great tips! I have trouble with Microsoft marking my emails as spam even though I've followed all the other general best-practices like DKIM and checking blacklists. I'm curious to see what kind of impact these suggestions will have, but now I'm much more optimistic about my situation. Thank you! – FlippingBinary Mar 10 '19 at 14:40
0

Often reason for marking mail as spam is also the absence of several headers, most usually of the "To" header, which often happens when sending mail from a host's console, or with a poorly configured script.

drookie
  • 8,051
  • 1
  • 17
  • 27
0

No simple answer to that. Do the traceroute from sending host to mail server, and from mail server to destination node (host that's downloading email). Simply every node CAN be a antispam server, and can mark You email as SPAM. Not to mention that there can be transparent antispam proxies/utms/andsoons and at the end AntiVirus software installed on users computers.

Generally what You can do in first place:

  • disable antispam on Mail Server for destination account
  • check if there is no antispam on destination router that act also as an AntiSpam
  • whitelist senders domain everywhere you can
  • drill sendmail logs check if your application in not malfunctioning and not sending thousands of emails
  • check if you are not violating mailsend policy on your isp (usually mails/hour)
  • check for proper DNS configuation of domain eg. SFP field
  • run some tests from eg mxtoolbox.com to find potentials problems with mail server.
integratorIT
  • 139
  • 1
  • 1
  • 11