Connect a Gandi domain to Ayamail
Gandi is a French registrar with customers all over Europe. If your domain is there, it can stay there. To receive mail in Ayamail you change a handful of records in LiveDNS, Gandi's own DNS service.
Written by Ayamail editorial team · Updated 30 October 2026
Short answer
Quick version: at Gandi go to Domain, click your domain and open the DNS Records tab. Remove Gandi's two MX records (spool.mail.gandi.net and fb.mail.gandi.net), add one MX record for mx1.ayamail.net with priority 10, and add the TXT records Ayamail lists for your domain.
Does Gandi run your DNS?
Gandi's documentation says records can only be edited in its interface when the domain is registered at Gandi and uses LiveDNS. Many people point their nameservers to a web host or to Cloudflare. If that is you, Gandi's DNS Records tab is the wrong place: add the Ayamail records at whoever the nameservers belong to.
On a domain that does use LiveDNS, Gandi adds a pair of MX records for its mail service out of the box. One points to spool.mail.gandi.net with priority 10, the other to fb.mail.gandi.net with priority 50. Both have to go, or mail will keep splitting between the two providers.
What to click
Prepare the list in Ayamail
In Ayamail, open Domains and add the domain. You get a list of records with an ownership code and a DKIM key that belong to this domain only.
Go to the DNS Records tab
Log in at Gandi, choose Domain in the left menu, click the domain name and select DNS Records.
Replace the MX pair
In table mode, delete both Gandi MX lines with the red bin icon. Use the green Add button to create a new MX record: name @, priority 10, value mx1.ayamail.net. with the final dot.
Prefer text? Edit the zone directly
Click Edit DNS Records to see the zone as plain text. Swap the two Gandi MX lines for the Ayamail line and click Save. Handy if you are used to zone files.
Create the TXT records
Add a TXT record on @ for SPF, one on _ayamail for the ownership code, one on _dmarc and one on dkim._domainkey. Paste the values from Ayamail unchanged.
Run the check
Gandi publishes new records in its zone in real time, but replaced records can take a few hours to be seen everywhere. Press verify on the Domains page in Ayamail and try again later if something is still pending.
Records for your Gandi zone
Copy the ownership code and the DKIM key from Ayamail; they differ for every domain.
| Setting | Value |
|---|---|
| Mail server (MX) | mx1.ayamail.net |
| Priority | 10 |
| Setting | Value |
|---|---|
| MX value in text mode | mx1.ayamail.net. |
| TXT on @ (SPF) | v=spf1 mx a:mx1.ayamail.net ~all |
| TXT on _ayamail (ownership) | ayamail-verify=… (see Ayamail) |
| TXT on _dmarc | v=DMARC1; p=quarantine; … (see Ayamail) |
| TXT on dkim._domainkey | v=DKIM1; k=rsa; p=… (see Ayamail) |
| CNAME autoconfig, autodiscover, mail (optional) | mx1.ayamail.net |
Gandi's default zone already has an SPF record for Gandi Mail. Edit that one instead of adding a second SPF record.
Leaving Gandi Mail behind
Your Gandi mailboxes are not deleted when you change the MX records; they simply stop receiving. Fetch the old messages first with the IMAP import in your Ayamail account, so folders and history move with you.
Forwarding addresses set up at Gandi also rely on Gandi's MX records and stop working after the switch. Recreate them as aliases in Ayamail. When new mail has arrived at Ayamail for a few days, you can cancel any Gandi mailboxes you no longer need.
Fixing common problems
Ayamail finds none of the records
What to do: The domain is probably not on LiveDNS. Look up its nameservers at Gandi and add the records at the provider that actually answers for the domain.
The MX record shows up as mx1.ayamail.net.yourdomain.com
What to do: The final dot is missing in text mode. Add it after mx1.ayamail.net and save the zone again.
A few messages still reach Gandi
What to do: One of Gandi's MX lines is left, or another server still remembers the old value. Remove the line and allow a few hours.
Questions and answers
- Must the domain leave Gandi?
- No. Registration stays at Gandi and only the mail moves. Moving the domain to Ayamail later is possible on a paid plan, but you do not need to.
- How soon will mail arrive?
- New records often work within minutes. Gandi notes that changes replacing older records can take longer to show everywhere.
- Can one address stay on Gandi Mail?
- No. The MX records send all mail for the domain to one place. Create that address as an alias in Ayamail instead.
- Will my website break?
- No. Its A or CNAME records are separate. Only change the MX, TXT and optional CNAME records listed here.
Sources
- Gandi: Adding and editing DNS records (Checked 30 October 2026)
- Gandi: Frequent questions about DNS records (Checked 30 October 2026)
- Gandi Mail: General questions (default MX records) (Checked 30 October 2026)
Related guides
- Namecheap
Point a Namecheap domain at Ayamail: choose Custom MX under Mail Settings in Advanced DNS, add the TXT records and check nothing else catches your mail.
- 123 Reg
Move the mail for a .co.uk or .uk domain at 123 Reg to Ayamail: where the DNS screen is, the full stop MX values need and which old records to delete.
- Domain with email
Search, buy or transfer a domain in Ayamail and get working mail on it without touching DNS. Mail records are set up for you, and you can leave any time.
- Email aliases
Create extra addresses that land in one inbox, reply from any alias and switch one off when spam starts. Works on ayamail.net and your own domain.