External mail service

Last Revised: October 2, 2021

Junk mail (spam), that scourge of the Internet that many of us suffer every day in our inbox, is something that we must prevent from happening because of our website.

Controlling the mail that leaves our server as a general rule is something that is not reviewed or paid attention to, in addition to being an outgoing email that is not signed or secured. To improve and correct this, to make the emails arrive correctly and in a safe and attractive way, it is best to use an external mail outage service (SMTP).

Once again, there are dozens of plugins to replace the internal mail functions with external ones, although in this case I recommend using Elastic Email that also has its own plugin that facilitates its configuration.

DNS entries for mail

Although it is not the purpose of this text to go into explaining the configuration of the mail, being strict in the configuration is something important, only if it is done correctly. This is why to avoid problems with sending emails from your website correctly configure your DNS entries:

  • A: Although it seems stupid, for the mail to work properly, the domain example.com must always have an entry A to an IP address.
  • MX: To be able to send mail you need email addresses, so if you want to send mail you have to be able to receive mail. Have at least one MX entry — though at least two are recommended — set to receive.
  • SPF: With the sending policy you say from which servers you can send mail. If you’re sending mail from your machine, say so. If you’re adding Google as well, say so.
  • DKIM: Digitally sign your email and get your recipient to verify that the email is yours and no one else’s.
  • DMARC: Prevent anyone from sending an email on your behalf, fighting phishing and spam.

Seguir con Seguridad para WordPress


About this document

This document is regulated by the EUPL v1.2 license, published in WP SysAdmin and created by Javier Casares. Please, if you use this content in your website, your presentation or any material you distribute, remember to mention this site or its author, and having to put the material you create under EUPL license.