Mail Setup (SPF, DKIM, DMARC) in VestaCP

The VestaCP panel is no longer offered for new servers. This guide is kept for those who already have it installed. For a new VPS choose FASTPANEL, ISPmanager or CloudPanel - see the FastPanel, ISPmanager server (VPS) and CloudPanel sections.

To ensure reliable email delivery and keep messages out of spam, you need to set up SPF, DKIM, and DMARC.
This is done in the VestaCP control panel and DNSmanager.

Log in to the VestaCP control panel as the user the domain belongs to:

Go to the DNS section:

Open the domain records:

You will need the TXT records:

Next, go to the DNS management section in the client area:

Open the domain and go to its records:

Create a new record:

Copy the values from VestaCP:

Paste them into DNSmanager:

Repeat these steps for all TXT records.

You also need to install an SSL certificate for the domain:

Enable the following options:

  • SSL Support
  • Lets Encrypt Support

Click Save:

A message will appear confirming that the settings have been saved:

Setup is complete.

Questions and answers
They increase trust in your emails and reduce the chance of them landing in spam.
In DNSmanager in the client area.
Yes, SSL is required for the mail server to work correctly.