More about email deliverability
Sometime ago I wrote a post about how to send emails without getting flagged as SPAM. Unfortunately I had missed out on a few things.
rDNS
One of the most important things in email deliverability is rDNS (also known as the PTR record). rDNS stands for “reverse” DNS. Here is an example how rDNS works:
- A mail header says that the sender is abc@abc.com and it was sent from 111.222.333.444
- The receiving mail server verifies if 111.222.333.4444 really points to abc.com by a rDNS lookup
Mail servers like AOL and Google are very very particular about rDNS i.e – they would check for reverse DNS entries for each mail received by them. Your important newsletter is almost sure to make it to the bulk email folder if you haven’t setup the reverse DNS entry for your domain.
Now if you are hosting your nice web-application on Amazon EC2, reverse DNS won’t work for you, because Amazon won’t set your reverse lookup. You will have to use a third-party email service like authsmtp or fastmail to send out mass emails with maximum deliverability.
Domain Keys Identified Mail
Domain Keys Identified Mail is a method for email authentication (as the DKIM website says). Basically DKIM allows the sender of an email to sign the email using public key cryptography. Prominent email services like Yahoo, Gmail and Fastmail implement DKIM. This is how it works in a nutshell:
- The sender of the email adds a header-field named “DKIM-Signature” which contains a digital signature of the contents of the header and body of the email message
- The receiving SMTP server does a DNS lookup and gets the public key for the domain.
- It uses the public key to decrypt the message
You can use Javamail with DKIM for sending out that important newsletter from your web application.
Sender policy Framework
SPF is a special format DNS record which specifies which machines can send emails for that domain.
- For example the owner of abc.com can determine which hosts are allowed to send emails whose sender email address ends in @abc.com
- Receivers who check SPF can reject messages from unauthorized hosts before receiving the message body
And here’s what the SPF record may look like:
abc.com TXT “v=spf1 ip4:111.222.333.444 –all”
White lists, Black lists
- Blacklists are lists of domain names which are known to send SPAM emails. Basically they are the lists of known offenders.
- Whitelists are the opposite – lists by which an ISP allows someone to bypass spam filters when sending emails to its subscribers
So …. Get Registered
MxToolBox and ReturnPath are both good options
