DirectMail setup walkthrough
Step-by-step illustrated guide covering DirectMail activation, DNS verification, least-privilege RAM keys, and EventBridge receipt webhooks.
AccessKey and Webhook tokens only inside the secure form fields.Part 1: Activate & send your first test email
Required · Steps 01–06Enable DirectMail service
Alibaba CloudPrepare a custom domain whose DNS you control and a verified Alibaba Cloud Admin account. DirectMail must be activated separately; billing follows Alibaba Cloud's console rates.
- Open the Alibaba Cloud DirectMail product console and enable the service.
- Note your selected region — your sending domain, sender address, Pixel EDM channel, and
EventBridgebus must all use the exact same region.
Done when: You can open the DirectMail console in your target region.
Alibaba Cloud Docs: Purchase & enableAdd a sending domain & verify DNS
Alibaba Cloud + DNS HostUse a dedicated subdomain such as
send.example.com(placeholder — replace with a domain you own).- Go to DirectMail Console → Sending Domains → New Domain, then open its Configure screen.
- In your DNS provider, add every ownership,
SPF,DKIM,DMARC, andMXrecord listed by DirectMail. Always copy hostnames and values directly from your console. - Once DNS propagates, return to the DirectMail console and click Verify.
DNS record quick reference (copy exact values from console)Type Purpose Host example Value source Notes TXT Domain ownership sendor console-assigned hostDirectMail Domain Configuration page Copy the verification token verbatim TXT SPF authorization send(sending subdomain)Provided v=spf1 ...recordKeep only one SPF TXT record on the same host CNAME / TXT DKIM signing Console DKIM selector host DirectMail public key or CNAME target Ensure your DNS host does not double-append the root domain TXT DMARC policy _dmarc.sendv=DMARC1; p=none; ...Recommended even at p=noneto build domain trustMX Bounce & verification send(sending subdomain)Console-specified MX host & priority Using a dedicated subdomain avoids conflicting with root-domain mail Domain verification flow. Record types are illustrative — use the exact hosts and values generated in your console. Done when: Your sending domain shows Verified with all DNS checks passing.
Alibaba Cloud Docs: Sending domainsCreate a sender address
Alibaba CloudCreate the outbound address under your verified domain, such as
hello@send.example.com.- Go to DirectMail Console → Sender Addresses → Create Sender Address and pick your verified domain.
- Set up and verify a reply-to address if customers should reply to a separate inbox.
- Wait until Alibaba Cloud marks the address ready before running in-app test sends.
Done when: The sender address appears active in that region's console.
Alibaba Cloud Docs: Sender addressesCreate dedicated RAM access keys
Alibaba Cloud RAMCreate a dedicated RAM user for Pixel EDM with API send permissions and generate an
AccessKey IDandAccessKey Secret.- Grant least-privilege permissions for sending; Alibaba Cloud provides custom policy examples allowing only
dm:SingleSendMail. - Store the newly generated ID and Secret temporarily so you can paste them in the next step — the Secret is never displayed again in Pixel EDM after saving.
Done when: You have an active AccessKey pair belonging to your DirectMail account.
Alibaba Cloud Docs: RAM access control- Grant least-privilege permissions for sending; Alibaba Cloud provides custom policy examples allowing only
Connect the channel in Pixel EDM
Pixel EDM · AdminOpen Settings → Sending channels → Add Alibaba Cloud DirectMail. Every field must match your verified Alibaba Cloud setup.
- Region: select the exact region where your domain and sender address live, then fill in your verified sender domain and address.
- From name: up to 14 characters. Reply-to is optional; if entered, ensure it receives mail.
- Enter your RAM
AccessKey IDandAccessKey Secretand click Save configuration safely. Also make sure your physical address is saved under Store details.
Done when: The channel card appears with status Configured, awaiting verification.
Send your first test email
Pixel EDM · AdminClick Send test email on the channel card. Pixel EDM sends a live message to the signed-in Admin's verified email address.
- Check both inbox and spam folders to verify the From address, display name, and reply-to header.
- If delivery fails, verify region matching, RAM permissions, and sender status, then inspect the channel card error details.
Done when: You receive the test email and the channel card reads Verified.
Part 2: Live delivery receipts & engagement tracking
Optional / Recommended · Steps 07–08Enable open & click tracking (optional)
Alibaba Cloud + Pixel EDMCreate an Email Tag in Alibaba Cloud DirectMail first, then enable Open & click tracking on your Pixel EDM channel card with the exact same tag name.
- The tag must already exist in the same DirectMail account and region. Pixel EDM accepts letters, digits, and underscores only.
- Changes apply to future formal campaigns only. Open tracking depends on email client image loading, and click tracking requires valid
HTTP(S)links. - Pixel EDM dispatches HTML-wrapped messages when tracking is enabled while excluding unsubscribe links from click tracking.
Done when: The channel card displays Tracking enabled along with your tag name.
Alibaba Cloud Docs: Data trackingConnect EventBridge delivery receipts (recommended)
Pixel EDM + EventBridgeReceipts distinguish provider acceptance from actual recipient-server delivery and sync bounces, complaints, opens, and clicks.
- On your Pixel EDM channel card, open Delivery receipt webhook → Generate token and copy both the HTTPS target URL and one-time token.
- Enable Event Distribution in DirectMail, then create a rule on the EventBridge cloud-service bus in the same region using the event source
acs.dmand the seven event types shown in EventBridge event rules. - Choose
HTTP/HTTPSas target, paste the full HTTPS URL, select Full Event for payload, and paste the token intoToken(x-eventbridge-signature-tokenheader). Configure retries and an MNS dead-letter queue for production. - Confirm the
channel_idinside the target URL matches your active channel. Whenever you rotate the webhook token, update the EventBridge ruleTokentoo.
Delivery receipt pipeline. Each workspace channel uses its own target URL and signing token. Done when: After sending a small campaign, recent receipts appear on the channel card and stats advance from Awaiting receipt to Delivered or failed states.
Alibaba Cloud Docs: EventBridge setup
Final check: verify with a small test list
- Add 1–3 consented internal test addresses, create a draft campaign, preview it, and lock the audience.
- Run a formal send as Admin — confirm tasks start as Accepted and progress to Delivered once receipts arrive.
- If tracking is enabled, load images and click a regular link in the test email to confirm open/click metrics update.
- Complete an unsubscribe flow using the email footer link and verify that contact is excluded from new campaigns.