Alibaba Cloud master account setup Alibaba Cloud DirectMail SPF and DKIM configuration guide
You’re here because you want DirectMail emails to pass authentication checks and land reliably in inboxes—without getting stuck in “verification failed”, “SPF too long”, or “DKIM selector mismatch” loops. Below is a practical configuration guide focused on the questions that show up during real onboarding and operational work: account readiness, verification (KYC) readiness, risk control constraints, payment/renewal realities, and the exact SPF/DKIM DNS records you’re most likely to need.
Before you touch DNS: what to confirm in Alibaba Cloud so SPF/DKIM doesn’t get blocked
In production, the biggest SPF/DKIM failures aren’t syntax—they’re mismatches caused by account state, sending domain, and risk control behavior. Before creating DNS records, confirm these three things:
-
Your DirectMail sending identity is already bound to the same “From domain” you’ll publish DNS for.
If your DirectMail sending address is [email protected] but your DNS is configured for mailer.yourdomain.com, SPF alignment and DKIM signing will appear “incomplete” even though the record exists. -
Your sending domain has passed Alibaba’s domain verification flow.
If DirectMail’s console shows the domain as “pending” or “not verified”, you can still publish DNS, but verification checks (and sometimes later sending) can be restricted until approval succeeds. -
Account status: avoid sending from a newly created or risk-flagged identity.
If your Alibaba Cloud International account was recently verified with a new payment method, or your first domain verification attempt was rejected, DirectMail may enforce stricter review. In my experience, the cleanest workflow is: finish account KYC + domain verification + DNS publishing, then start sending gradually.
Quick scenario: “My DKIM record is published but still fails verification”
Most often this happens because the selector differs from what DirectMail expects. Another common cause is
publishing DKIM on the wrong host label (e.g., putting it at _domainkey.yourdomain.com instead of
selector._domainkey.yourdomain.com).
Alibaba Cloud master account setup Take 2 minutes to copy the exact DKIM host and TXT value from the DirectMail console—don’t “translate” it. Even if the DKIM value looks similar, whitespace and line breaks matter depending on how your DNS provider stores TXT strings.
Step-by-step: SPF for Alibaba Cloud DirectMail (what to publish and what not to do)
Your goal is not “a working SPF record”—it’s “an SPF record that matches what DirectMail signs and won’t get rejected due to length or policy mistakes”. Here’s how to approach it.
1) Identify what SPF record you already have
Pull your current TXT record(s) for the root domain (@) and verify:
- You have only one SPF TXT record at the root. Multiple SPF records can cause hard failures.
- No legacy record includes
redirect=orincludechains that are already near the practical limit.
2) Build the SPF record using the DirectMail requirement
In DirectMail, Alibaba provides an SPF include mechanism (often an include: domain) and sometimes an additional mechanism.
Your SPF should be merged into your existing SPF so the final result remains a single TXT record.
Example structure (adjust values from your DirectMail console):
v=spf1 include:directmail-send.example.com -all
If you already send via other providers, merge like this (still one SPF TXT at root):
v=spf1 include:_spf.providerA.example include:directmail-send.example.com ip4:203.0.113.10/32 -all
Alibaba Cloud master account setup 3) SPF policy you should actually use
For production senders, I recommend this decision rule:
-
If you only send from providers you explicitly list in SPF:
use
-all. -
If you still have legacy systems and you can’t fully enumerate sources yet:
use
~alltemporarily, then tighten after you finish inventory. -
Avoid
+allfor deliverability—some risk controls and mailbox filters treat it as suspicious.
4) Verify TXT record length and DNS provider formatting
SPF TXT can exceed limits when you paste multiple includes. DNS providers enforce string length limits; some will split TXT strings automatically. That’s okay, but only if it results in a syntactically correct SPF string.
Operational tip: after publishing, re-check with a tool (SPF tester) and confirm: the evaluator uses your final TXT at root, and doesn’t detect multiple SPF records.
Cost tie-in (yes, SPF affects cost)
When SPF is wrong, you’ll see bounce rates and increased sending retries—DirectMail throughput can become wasted spend. If your monthly email volume is significant, a correct SPF early saves more than the “time cost” of testing.
Step-by-step: DKIM for Alibaba Cloud DirectMail (selector mistakes that keep happening)
DKIM is where the majority of “it’s published but not verified” cases come from. Your job is to publish a TXT record with the exact host label and DKIM public key value.
1) Get selector, DKIM domain/host, and the public key from the console
In DirectMail you’ll see values like:
- Selector (e.g.,
selector1) - DKIM host (often
selector._domainkey.yourdomain.com) - TXT value (starts with
v=DKIM1;)
2) Publish DKIM TXT correctly
Create a TXT record at the DKIM host. Typical format:
Name/Host: selector1._domainkey Type: TXT Value: v=DKIM1; k=rsa; p=MIIBIjANBgkqh...
If your DNS UI asks you for the full name (e.g., selector1._domainkey.yourdomain.com),
paste it exactly and let the provider handle the root domain.
Alibaba Cloud master account setup 3) Don’t break TXT value by reformatting
Some DNS panels insert quotes or split TXT values. That’s acceptable if the concatenation results in the same DKIM public key string. What you should avoid:
- Removing semicolons or the
v=DKIM1prefix - Accidentally pasting the DKIM “private” side (you should never have it)
- Adding extra whitespace that changes the TXT payload
4) Selector rotation planning (future-proofing)
DirectMail may allow or require multiple selectors over time. If you later add a new selector but remove the old record immediately, some recipients may cache and still validate older DKIM signatures for a while. Operationally: keep the old DKIM record until your sending domain shows stable validation for the new selector.
Account purchasing, KYC readiness, and why it matters for DirectMail DNS verification
You asked for a “configuration guide”, but in the real world your account state decides whether DirectMail will let you complete domain verification and start sending smoothly. Here’s what I’ve seen across Alibaba Cloud International account lifecycles.
What to check if you bought an Alibaba Cloud account (or are using a resold one)
Many users search for “Alibaba Cloud account purchase” because it seems faster. For DirectMail DKIM/SPF setup, it’s not just about having an account—it's about whether the account can pass messaging-related reviews.
- Domain ownership verification must be clean. If the account’s verification history is flagged, domain verification may be delayed or rejected.
- Payment method binding can block verification. Some accounts with incomplete payment setup can’t proceed to certain messaging console steps.
- Risk control holds can freeze sending. DNS might be perfect, but sending requests can still be rejected.
If you’re buying an account: treat it like a time-bomb. Plan for manual downtime when the console refuses operations due to risk policies.
KYC (identity verification) expectations that affect messaging services
Messaging-related services are often more sensitive than basic compute. While exact requirements vary by region and account type, the pattern is:
- Use your own identity documents consistently (individual vs enterprise documents should match the console profile).
- Ensure contact info and company registration data align with what you’ll use for domain verification.
- If you’re setting up a business sending domain, keep the domain registration details consistent with the company identity where possible.
When KYC is incomplete, domain verification can appear to work briefly but fail when you try to start sending or when the system re-checks.
Funding, renewals, and payment methods: what impacts DirectMail operations
Alibaba Cloud master account setup SPF/DKIM don’t consume budget directly, but DirectMail sending does. Funding issues cause “I configured everything but it won’t send” scenarios.
Common operational blockers tied to payment and renewal
- Alibaba Cloud master account setup Insufficient balance / payment failure results in sending throttling or rejection during message submission.
- Billing cycle misalignment: you may have sending requests queued while credits expire, leading to partial delivery.
- Payment method limitations: some payment types can fail due to bank/region rules, delaying activation steps.
Payment method differences you’ll feel in practice
Without getting too speculative (because each account has different billing configuration), the real differences usually show up like this:
| Payment method category | Operational impact | What to do before going live |
|---|---|---|
| Bank transfer / manual top-up | Can take longer; missing references delay posting. | Confirm posting time window; keep buffer for renewal. |
| Card/online payment | Fast when approved; may be blocked by risk checks. | Do a small test payment; avoid frequent retries. |
| Auto-renew / recurring billing | Best for continuity; depends on settings and account eligibility. | Validate renewal status in console and keep at least one backup payment. |
| Partner/bundle billing | Can introduce extra review steps for some messaging features. | Ask partner to confirm messaging console access permissions. |
Risk control and compliance review: how it intersects with SPF/DKIM
SPF/DKIM help deliverability, but risk control decides whether your traffic is allowed at all. In many cases, misconfiguration plus low-signal behavior triggers stricter review:
- High bounce / complaint rates trigger reputation throttling.
- Mismatch of “From” domain and authentication triggers fraud/spoof suspicion.
- New domain + immediate high volume often results in temporary holds.
Alibaba Cloud master account setup Practical case: SPF correct, DKIM missing, sending volume spiked
I’ve seen setups where SPF passed but DKIM wasn’t fully validated (wrong selector), and the sender ramped up volume. The result was not a DNS failure—it was a reputation restriction after a few waves. Fix was simple (publish the correct DKIM selector TXT), but the lesson was to:
- Start with low volume after DNS changes
- Confirm authentication results before scaling
- Keep DKIM/SPF aligned with the actual From and Return-Path behavior
Account usage restrictions you might hit during setup
Alibaba Cloud master account setup Depending on your account type and verification status, DirectMail actions can be restricted:
- Domain verification requests blocked (common after KYC issues)
- Sending disabled until a review passes
- Rate limits on new senders
If you see these restrictions after publishing SPF/DKIM, don’t keep editing DNS randomly. Instead, check:
- Console status for the sending domain
- Any account risk notifications
- Whether you can submit a test email and whether it returns an error code
Cost comparisons: how to estimate savings from correct SPF/DKIM setup
DirectMail costs are usually driven by sending usage and how efficiently you avoid re-tries/bounces. Even without exact pricing numbers (which vary by region and plan), you can plan cost impact with a simple model:
A practical cost model you can use
- Monthly sends: M
- Expected hard bounce rate before fix: B1
- Expected hard bounce rate after fix: B2
- Cost per send unit: C
- Retry factor (if your system retries): R
Estimated savings ≈ M × (B1 - B2) × C × (1 + R)
Even a 0.5% improvement in hard bounces can be meaningful at high volume. DKIM verification correctness directly affects “auth pass” rates, which influences mailbox acceptance behavior.
Common SPF/DKIM mistakes (and the exact symptom you’ll see)
| Problem | What you’ll observe | Fix |
|---|---|---|
| Multiple SPF records at root | SPF fail/permerror, some receivers treat as invalid | Merge into a single SPF TXT at @ |
| SPF include value copied incorrectly | SPF “softfail” or “neutral” inconsistently | Copy include domain exactly from DirectMail console |
| Wrong DKIM selector | DKIM status “fail” or “not found” | Create TXT at selector._domainkey matching console selector |
| DKIM TXT value modified/line-broken incorrectly | DKIM “fail” even though record exists | Paste DKIM public key value exactly as provided; let DNS panel handle splitting |
| From domain mismatch | Auth checks don’t align with expected domain | Ensure DirectMail sending identity uses the same domain you configured |
| DNS propagation assumptions | Verification fails initially, then succeeds later | Respect TTL; re-check after propagation (often 30–300 seconds, but varies) |
FAQ (the questions users actually ask right before they go live)
1) Do I need both SPF and DKIM? Can I start with only one?
For reliable deliverability, configure both. SPF reduces spoof acceptance; DKIM provides signature validation. In practice, I’ve seen setups where SPF alone “looks okay” in some tools but still gets lower mailbox confidence. If you’re going live quickly: publish both, verify, then ramp volume.
2) How long does DirectMail take to verify SPF/DKIM?
Often within minutes, but don’t assume immediate success. Verification depends on DNS propagation, TTL settings, and when DirectMail checks. If the console still shows failure after the DNS record exists, wait once, then re-test by triggering a verification/recheck action in the console.
3) My DNS provider splits TXT records—will that break DKIM/SPF?
TXT splitting is not automatically a problem. The key is whether the receiving system reconstructs the string correctly. If your console shows DKIM record exists but verification fails, try viewing the raw TXT retrieval from your DNS panel and compare with the exact expected value.
4) I changed DNS records—will my existing emails be affected?
New messages will use the current configuration. Receivers may cache DNS for a while. If you rotate DKIM selectors, keep old records until you’re sure messages signed with old selector stop being sent or are no longer needed.
5) Does Alibaba Cloud International account verification affect DNS configuration?
DNS publishing works regardless of KYC, but DirectMail’s domain verification and sending permissions depend heavily on account state. If KYC is incomplete or risk flags exist, the console may block domain verification completion or message submission even with correct DNS.
6) Can I use payment methods from a different country than my account?
It may work, but it can cause delays or failures based on bank/card risk controls and Alibaba billing rules. For time-sensitive launch dates, do a small test charge/top-up first and confirm that the account credits post successfully.
7) If I bought an account to get started faster, what’s the first thing I should check?
Check that you can access DirectMail messaging console pages, submit domain verification, and that there are no risk notices. Then publish SPF/DKIM and attempt a test send with the lowest possible volume. If domain verification is blocked or sending fails with permission errors, don’t keep changing DNS—fix account access first.
DirectMail go-live checklist (so you don’t waste retries or budget)
- Confirm your DirectMail “From domain” exactly matches the domain you will publish SPF/DKIM for.
- Publish SPF as a single root TXT record; merge includes instead of adding a second SPF record.
-
Publish DKIM TXT at
selector._domainkeywith the exact selector and TXT value from DirectMail console. - Wait for propagation and run verification/recheck in the DirectMail console.
- Submit a test email to multiple mailbox providers (Gmail, Outlook, Yahoo-like) and check authentication results in headers.
- After authentication passes, ramp volume gradually to avoid triggering risk controls on new senders.
- Ensure account billing/renewal is active so you don’t hit funding-related sending restrictions mid-campaign.
If you want, tell me: (1) your sending From domain format, (2) the selector shown in DirectMail, and (3) your current SPF record (paste the SPF TXT string), and I’ll show you the exact merged SPF and the DKIM TXT host/value to publish without breaking existing providers.

