SPF when you send mail from an izCloud server
SPF publishes in DNS which servers may send email for your domain. If your app, a form or your own mail server sends directly from an izCloud server, the server’s public IP address must be on that list; otherwise the receiver may treat the message as suspicious or reject it.
When should you check?
- When you set up a new server and turn on sending in your app.
- When you move sending to another server; the old IP stays in the record and the new one is missing.
- When you add a new sender such as a newsletter service or CRM.
- After moving the domain to izCloud DNS.
Adding the server IP to SPF
If your server’s public IP is 203.0.113.10 and a separate mail service also sends for you, the record might look like this: v=spf1 ip4:203.0.113.10 include:service-name -all. The ip4 mechanism does not count as a DNS lookup, so listing servers with ip4 rather than include keeps you within the limit.
If you send from several servers, list each IP with its own ip4 or add a contiguous range in CIDR notation, such as ip4:203.0.113.0/28. Do not make the range wider than needed; every address in it can send as you.
A domain has exactly one SPF record. When adding a sender, edit the existing record instead of creating a second v=spf1 record. The DNS record guide shows how to change it in the panel.
If your app sends through izMail Relay, the relay delivers the message, not your server; the SPF record must contain the entry given for the relay.
Reading the results
| Result | What it means | What to do |
|---|---|---|
| No record | The receiver cannot verify the sender | Add an SPF record with the server IP |
| More than one record | SPF is treated as invalid | Merge everything into one TXT record |
| Over 10 lookups | The record returns an error (permerror) | Remove unused includes, list fixed IPs with ip4 |
| +all or ?all | Anyone can send as you | Close with -all or ~all |
| ~all | Unlisted senders get a softfail | Move to -all once every sender is listed |
Common mistakes
- Leaving the old and new record side by side: two separate v=spf1 records make SPF invalid altogether.
- Adding a fixed-IP server with a or mx: it works, but each one counts as a lookup; ip4 is more robust.
- Testing right after a change: receivers may see the old value until its TTL expires.
- Forgetting the ip6 address when the server also sends over IPv6.
- Ending the record with ?all: the SPF result then tells the receiver nothing.
PTR, DKIM and DMARC alongside SPF
When sending directly from a server, PTR alignment matters too: the IP’s reverse DNS record should match the name the server introduces itself with. PTR records are set by the owner of the IP block; for izCloud IPs you request one by opening a support request from the panel. You can see the current state with the Reverse DNS tool, and DKIM and DMARC with the Email security tool.
If you would rather not run sending infrastructure yourself, izMail offers mailboxes, and izMail Relay for your apps; your app sends on port 587 with STARTTLS and SMTP authentication.