Procédure
Service concerned: Standard Mail and LWS Pro Email
Panel concerned: LWS Panel
Level: Beginner to intermediate
Do you want to use your LWS e-mail addresses with your domain name, but it is managed by another provider? Are you having an SPF, DKIM, or DMARC configuration issue?
For your mail service to work correctly, certain DNS records for your domain must match the settings of your LWS mail service.
This documentation explains how to retrieve this information, make the necessary changes, and verify that everything works properly, whether your DNS is managed by LWS or by an external provider.
Are you using another environment?
This procedure applies to e-mail addresses managed from the LWS Panel. If your mailboxes are managed directly from cPanel or a VPS server, their configuration may be different.
However, if your website is hosted on cPanel but your e-mail addresses are managed from the LWS Panel, this documentation does apply to you.
1. Before you begin
You must have an active Standard or Pro mail service on the LWS Panel and access to the DNS management of your domain name, either directly or through your provider.
It is especially important to know where your domain's DNS is actually managed.
DNS makes it possible to indicate which server your website and e-mails should be directed to.
- Your domain uses LWS DNS: you can make changes from the “DNS Zone” section of your LWS customer area.
- Your domain uses external DNS (Cloudflare, OVHcloud, or another provider): changes must be made in that provider's interface, even if the domain was purchased from LWS.
If you do not know where your DNS is managed, consult our documentation: How do I use a domain's DNS Zone?
Warning if you already use e-mail addresses with another provider.
Changing MX records changes the service that receives new e-mails for your domain.
Before transferring mail reception to LWS, create the required addresses on your LWS mail service and plan to keep or migrate your old messages.
If you only want to fix an SPF, DKIM, or DMARC issue, do not modify your MX records unless there is another reason to do so.
2. Retrieve your LWS mail service settings
Before modifying your domain, you need to know the settings expected by your mail service.
This information is available in your LWS customer area.
- Log in to your LWS customer area.
- Select the relevant hosting or mail service, then click “Manage”.
- In the account information, find the server IP. This is the IP address associated with your mail service server.
- Then open the management of your e-mail addresses by clicking “E-mails” or “E-mail Administration”, depending on your plan.
In your mail administration, look for the “Mail status” block.
This block lets you check your domain's SPF, DKIM, and DMARC settings.
When an issue is reported, click the relevant check to display the information needed to fix it.
This allows you to retrieve the values to use for SPF and DKIM without having to invent them or search for them on another site.
What do these settings mean?
| Setting |
Its role |
| MX |
Indicates the server that receives e-mails sent to your domain. |
| A |
Associates a server name, such as mail.yourdomain.com, with an IP address. |
| SPF |
Indicates which servers are allowed to send e-mails for your domain. |
| DKIM |
Adds a signature to messages so recipients can verify their authenticity. |
| DMARC |
Allows control over the use of your domain as a sender, relying on SPF and DKIM, and defines a policy for messages that fail these checks. |
SPF, DKIM, and DMARC records are generally published as TXT DNS records.
Always use the values corresponding to your mail service.
SPF settings and DKIM keys can vary depending on the service used.
Do not copy an IP address or DKIM key found in documentation or on another domain. Use the information displayed in your LWS Panel or provided by the relevant sending service.
3. Link your domain name to LWS mail
The procedure depends on where your DNS zone is managed.
If your domain uses LWS DNS
When your domain is registered with LWS, uses LWS DNS, and uses the mail service associated with your plan, the required records are normally configured automatically.
Before making any changes, check the existing configuration.
- From your LWS customer area, click “Manage” for the relevant domain.
- Open the “DNS Zone” section.
- Check the MX records and entries related to your mail service.
- Also consult the “Mail status” block in your e-mail administration.
If the records are correct and no issue is reported, no changes are necessary.
If a record is missing or incorrect, modify it using the information from your LWS mail service.
You can follow our guide: How do I use a domain's DNS Zone?
If your domain uses an external provider's DNS
In this case, you must add the required records directly with the provider managing your DNS.
Open its DNS management interface, then look for the section allowing you to add or modify records.
To connect the reception of your e-mails to the LWS Panel service, use the following settings, adapting them to your domain and your LWS service values:
| Type |
Name |
Value to enter |
| MX |
@ or your domain |
mail.yourdomain.com, if this is the MX server planned for your LWS service |
| A |
mail |
Mail server IP address indicated in your LWS Panel |
| TXT (SPF) |
@ or your domain |
SPF value provided by your LWS mail service |
| TXT (DKIM) |
DKIM name provided by LWS, usually dkim._domainkey |
Full DKIM key provided by LWS |
In this table, yourdomain.com represents your own domain name.
The @ symbol generally refers to the main domain. Some providers require you to enter the full domain name instead.
For the MX record, also enter the priority expected by your service. If several MX records are required, keep the indicated values and priorities.
For the TTL, which determines how long the DNS record is cached, you can usually keep the value proposed by your provider, for example 3,600 seconds (one hour).
To complete the configuration:
- Check whether the record you want to add already exists.
- If it exists, modify it only if its value needs to be corrected.
- If it is missing, create a record of the appropriate type.
- Enter its name and value.
- Save the changes.
Repeat the operation for each required record.
Your domain can remain with another provider.
It is not necessary to transfer your domain name to LWS in order to use LWS Panel mail.
You can also keep your website on external hosting while using LWS e-mails. The site's DNS records do not need to be changed if it is already working properly.
If you use the SMTP Premium option with dedicated IP
If your mail service includes the SMTP Premium option with a dedicated IP, your LWS Panel also displays an outgoing dedicated IP.
This address is used for sending and must not be confused with the IP address of the server that receives your e-mails.
Depending on this option's configuration, you may also need to add the following record:
| Type |
Name |
Value |
| A |
dedicatedip.yourdomain.com |
Outgoing dedicated IP indicated in your LWS Panel |
Also make sure that your SPF record correctly authorizes the sending service used.
Add this additional configuration only if it matches the option enabled on your service.
If your website is hosted on cPanel
You can host your website on cPanel while using the LWS Panel mail service.
In this situation, the DNS records must direct e-mails to the LWS Panel service. You must also make sure that cPanel is not trying to receive them itself.
- Log in to your cPanel interface.
- In the “E-mail” section, click “E-mail Routing”.
- Select the relevant domain.
- If your e-mail addresses are hosted on the LWS Panel and not on cPanel, choose “Remote Mail Exchanger”.
- Save the change.
Do not select remote routing if cPanel must actually receive your domain's e-mails.
This is notably the case when your mailboxes are hosted on cPanel, including in some configurations using an external filtering service.
For more information, see: How do I use the E-mail Routing tool available on cPanel?
4. Fix an SPF, DKIM, or DMARC issue
If your e-mail addresses already work but the LWS Panel indicates an SPF, DKIM, or DMARC issue, you generally do not need to redo your entire mail configuration.
You only need to identify and correct the relevant record.
In your e-mail administration, consult the “Mail status” block, then select the check showing an issue.
Fix an SPF error
SPF indicates which servers are allowed to send e-mails for your domain.
An error can appear when the record is missing, contains an incorrect value, or does not authorize the server used for your sending.
To fix this issue:
- In your LWS Panel, open the SPF information for your mail service.
- Copy the indicated value.
- Open your domain's active DNS zone.
- Find the TXT record whose value begins with
v=spf1.
- Check that it authorizes the servers actually used for your sending and correct it if necessary.
Do not create multiple SPF records for the same domain name.
If an SPF record already exists, you must adjust that record rather than create a second one.
This precaution is particularly important if you also use an external sending service, such as Brevo, Mailjet, or a newsletter platform. Removing their authorizations could prevent some of your messages from being properly authenticated.
For further explanations, see: How do I add an SPF field on a domain name?
Fix a DKIM error
DKIM allows your mail service to sign the messages it sends. This signature is then verified by the recipient's server.
If the LWS Panel indicates a DKIM error, the expected record may be missing, incorrect, or published in a DNS zone that is not being used.
To fix it:
- In the “Mail status” block, click “DKIM”.
- Note the record name and its full value.
- Open your domain's active DNS zone.
- Find the TXT record corresponding to the DKIM name provided by LWS, usually
dkim._domainkey.
- If it is missing, create it. If it is incorrect, replace its value with the one indicated in your LWS Panel.
- Save the changes.
A DKIM value usually starts with v=DKIM1; and contains a long string of characters.
Copy it in full, without removing any character or adding a line break.
If the domain uses multiple sending services, each may have its own DKIM selector. Do not delete records from other services without first checking their usefulness.
Find the detailed procedure in our help: How do I add a DKIM field on a domain name?
Fix a DMARC error
DMARC complements SPF and DKIM. It makes it possible, in particular, to check that the information used to authenticate a message matches the domain visible in the sender address.
A DMARC alert may indicate a missing or incorrect record. A message may also fail DMARC checks when its SPF or DKIM authentication is not properly aligned with the sender's domain.
To check your configuration:
- From the LWS Panel, consult the “DMARC” check in your mail status.
- Open your domain's active DNS zone.
- Find a TXT record named
_dmarc.
- Check that its value matches the DMARC policy planned for your domain.
- If a record must be created or corrected, follow the DMARC configuration instructions appropriate to your situation.
A DMARC value starts with v=DMARC1; and includes in particular a p= parameter that defines the policy applied to messages that fail the check.
The main policies are:
p=none: allows you to observe authentication failures without requesting rejection or quarantine on that basis alone.
p=quarantine: asks recipient servers to treat the messages concerned as suspicious.
p=reject: asks recipient servers to reject the messages concerned.
Do not choose a restrictive DMARC policy without checking your sending services.
A p=reject configuration applied too early can cause legitimate messages from your domain to be rejected.
If SPF or DKIM already has an error, start by correcting the authentication of the relevant services before tightening your DMARC policy.
To understand the values to use and to add the record, see: How do I add a DMARC field on a domain name?
5. Check that your mail service is working properly
After a DNS change, it may take a few minutes to several hours for the changes to take effect. In some cases, propagation can last up to 24 to 48 hours.
Once this delay has passed, carry out the following checks.
1. Check the mail status in the LWS Panel
Go back to your e-mail administration and consult the “Mail status” block.
Check that any SPF, DKIM, or DMARC alerts have disappeared.
2. Test receiving e-mails
From an external address, such as Gmail or Outlook, send a message to your LWS address.
Check that this message arrives in your LWS mailbox.
3. Test sending e-mails
From your LWS address, send a message to an external address.
Check that it is received and that no error message is returned to you.
4. Check message authentication
To check SPF, DKIM, and DMARC more precisely, you can examine the authentication information of a message received on a service such as Gmail, using the option to display the original message.
The SPF, DKIM, and DMARC results must match the expected configuration of your sending service. For DMARC, at least one SPF or DKIM authentication must pass with a properly aligned domain.
Your mail service is correctly configured when the required DNS records are published, sending and receiving tests work, and sent messages pass the expected authentication checks.
If you only corrected SPF, DKIM, or DMARC, especially check that the relevant alert has disappeared and that your messages are properly authenticated. There is no need to modify your MX records if reception is already working.
6. Common issues
I changed the DNS, but the LWS Panel still shows an error
First check that you made the change in the DNS zone actually used by your domain.
Then check the name, type, and value of the added record.
If the information is correct, wait for DNS propagation, then check your mail status again.
I can send e-mails, but I cannot receive any
First check your domain's MX records.
They must point to the service responsible for receiving your messages.
If your addresses are hosted on the LWS Panel, also check that they have indeed been created on this service.
If your site is hosted on cPanel, also check the e-mail routing.
I receive my e-mails, but SPF, DKIM, or DMARC shows an error
Receiving and authenticating sent messages are two different functions.
So you can receive your e-mails correctly while still having an incomplete SPF, DKIM, or DMARC configuration.
In that case, keep your MX records and correct only the relevant authentication records.
I use an external service to send e-mails
If you use Brevo, Mailjet, or another sending service in addition to LWS, that service may require its own SPF or DKIM records.
Use the values provided by that provider, without removing the authorizations needed by your other sending services.
The configuration must allow each legitimate service to authenticate its messages correctly.
The LWS Panel indicates that my domain does not point to my LWS mail server
This message may appear when the domain's MX records do not match the mail service expected by the LWS Panel.
If you want to receive your e-mails with LWS, check the MX records and the linking settings described in this documentation.
On the other hand, if you have deliberately entrusted the reception of your e-mails to another provider, do not replace its MX records with LWS records just to make the warning disappear.
The problem persists despite a correct configuration
You can contact LWS support from your customer area, in the “Support” section, then “Contact support”.
Specify the relevant domain name, the mail service used, the error message encountered, and the changes already made.
Also indicate whether your DNS zone is managed by LWS or by another provider. This information will make it easier to verify your configuration.