Optimising the sending of emails

Find out how to send emails and limit the risk of them being marked as spam

Last updated 08th December 2021

Objective

Anti-spam policies are becoming increasingly strict. To ensure that your emails reach recipients without getting blocked by security tools, you will need to configure your service to authenticate your emails and validate their content.

This guide will give you a few tips on optimising how your emails are sent.

OVHcloud provides services that you are responsible for. In fact, as we do not not have administrative access to these machines, we are not administrators and we cannot provide you with support. This means that it is up to you to manage the software and security daily. We have provided you with this guide in order to help you with common tasks. However, we advise contacting a specialist provider if you experience any difficulties or doubts about administration, usage or server security.

Requirements

  • a configured email server

Instructions

Configure the SPF record.

If you are using a dedicated infrastructure (e.g. a dedicated server, VPS, Public Cloud instance or Hosted Private Cloud VM), the optimal SPF record is: v=spf1 ip4:server_ipv4 ~all. Please remember to replace 'server_ipv4' with your server's IPv4 address.

The symbol before all is very important:

  • +: accept
  • -: do not accept
  • ~: soft fail
  • ?: neutral

For further information on the SPF record, refer to the following page: http://www.open-spf.org/.

You can go even further by configuring the SPF record of a specific domain, or by specifying an IPv6 address. You can find out how to do this in our guide to adding an SPF record.

Configure the DKIM record.

By configuring the DKIM (DomainKeys Identified Mail) record, you add extra protection to prevent your emails from getting marked as spam. In simple terms, the DKIM is a signature that enables the sender’s domain to be authenticated.

The authentication is carried out by a DKIM key that needs to be added in your DNS zone. There are different generators for DKIM keys, including: http://dkimcore.org/tools/keys.html. Please follow the instructions listed on your chosen generator website.

Configure the reverse IP.

To further optimise email sending and lower the risk of your emails being blocked, you can also configure a reverse IP with your domain name.

To begin, you first have to create an A record in the DNS Zone of your domain with the IP address of your server as a target.

If your DNS Servers are managed by OVHcloud, please consult this guide.

Once you have modified your domain name’s DNS zone, you will need to allow a maximum of 24 hours for the changes to propagate fully, and be effective.

Once done, add the PTR record (also known as the reverse):

In the OVHcloud Control Panel, go to the Bare Metal Cloud section, then open IP.

In the “Service” drop-down menu, select a service with an IPv4 address:

Reverse IP

Click on ... in the relevant row and select Modify the reverse path:

Reverse IP

Enter your domain name on the Reverse DNS section and click on Confirm

Reverse IP

When you enter your domain name in the reverse, it double checks immediately if the A Record is referring back to the same IP. This is used in anti-spam procedures, so your A Record must be valid and propagated. There are certain rules to follow while entering the reverse:

  • it cannot start with a -
  • it cannot be longer than 80 characters
  • It cannot contain uppercase characters
  • it must end with a .

Example : "MyDomain.ca" in the reverse field would be "mydomain.ca."

Specific types of email sending

To a Microsoft server (Outlook, etc.)

Microsoft uses a whitelist policy. This means that initially, everything starts off on a blacklist, and a specific procedure is required to validate your email server.

To do this, please open a support request with Microsoft.

To a Gmail server

If your recipients are with Gmail, adding specific records (e.g. a DMARC record) may ensure that emails reach them. Here is a Google article that can help you with this: Add a DMARC record.

Check your information

You may want to use a website like Mail Tester to check that all of your settings are correct.

Go further

To get support setting up your OVHcloud solutions, contact our network of OVHcloud partners.

Join our community of users on https://community.ovh.com/en/.


Did you find this guide useful?

Please feel free to give any suggestions in order to improve this documentation.

Whether your feedback is about images, content, or structure, please share it, so that we can improve it together.

Your support requests will not be processed via this form. To do this, please use the "Create a ticket" form.

Thank you. Your feedback has been received.


These guides might also interest you...

OVHcloud Community

Access your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.

Discuss with the OVHcloud community

In accordance with the 2006/112/CE Directive, modified on 01/01/2015, prices incl. VAT may vary according to the customer's country of residence
(by default, the prices displayed are inclusive of the UK VAT in force).