How to send mail with our domain without being identified as spam?

407 Views Asked by At

I am a nodejs developer and I am searching the best way to send email to users (for verifying emails and resetting passwords) with my domaine name and without being identified as spam how do big companies like facebook do? is Haraka recommended for my case?

1

There are 1 best solutions below

0
On

Sending emails properly is a complex thing to issue.

Some things to consider :

  • Having a dedicated IP to send all your emails from (this can be useful to forge a clean reputation of your sending server) - Also, ensure that your server's IP still clean of any blacklisting (see https://mxtoolbox.com/blacklists.aspx)
  • Set up a Sender Policy Framework (SPF)
  • Using an authentication protocol with cryptographic signatures like DKIM
  • Enforcing the security of the two action above with DMARC
  • Properly set-up your DNS records (MX records matching sending addresses, TXT records matching authentication protocols, ...)
  • Monitor continuously your outbounds emails for bounces rates and act accordingly to limit your spam ratings

If your application depends heavily on sending emails, it could be wise to refer to third party transactional email services that are dedicated to get the best delivery rates and take care of all those issues properly and focus on your developer needs.