Getting DMARC Alignment Right on a Piisend Sending Domain
Achieving DMARC alignment is crucial for email deliverability and sender reputation, especially with new email authentication requirements in 2026. Learn how Piisend simplifies SPF, DKIM, and DMARC setup for your custom sending domain, ensuring your emails pass authentication checks.
Section 1
The Importance of DMARC Alignment for Email Authentication
DMARC (Domain-based Message Authentication, Reporting, and Conformance) is a critical email authentication protocol that builds upon SPF (Sender Policy Framework) and DKIM (DomainKeys Identified Mail). It helps protect your domain from impersonation and phishing attacks by allowing you to specify how recipient mail servers should handle emails that fail SPF or DKIM checks. With upcoming email authentication 2026 requirements, ensuring proper DMARC alignment is more vital than ever for maintaining high deliverability rates for your transactional emails. Piisend helps you configure your custom sending domain to meet these standards.
Section 2
Understanding SPF and DKIM Alignment with Your Custom Sending Domain
For DMARC to pass, either SPF or DKIM must align with the 'From' domain in your email header. This means the domain used in the SPF check (the Return-Path domain) or the domain signed by DKIM (the d= tag in the DKIM signature) must match your email's 'From' domain, or an organizational domain of it. Piisend automatically provides the necessary SPF and DKIM records when you add and verify a custom sending domain in your dashboard. These records are essential for establishing your domain's authenticity and ensuring DMARC alignment. Here's an example of how you might send a simple email using Piisend, ensuring your 'From' domain is correctly set up.
1curl -X POST https://api.piisend.com/api/v1/emails \2 -H "Authorization: Bearer YOUR_API_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "from": "noreply@yourdomain.com",6 "to": ["recipient@example.com"],7 "subject": "Your Order Confirmation",8 "html": "<p>Thank you for your order!</p>",9 "text": "Thank you for your order!"10 }'Section 3
Configuring Your DMARC Policy Record
Once SPF and DKIM are correctly configured and aligned, the final step is to publish a DMARC record in your DNS. This is a TXT record added to _dmarc.yourdomain.com. The DMARC policy (p=) tells receiving servers what to do with emails that fail authentication: none (monitor only), quarantine (send to spam), or reject (block entirely). For full protection and to signal strong sender reputation, a p=reject policy is recommended after a monitoring period. You can also specify rua and ruf tags to receive aggregate and forensic reports, respectively, helping you monitor your email traffic and identify potential issues.
1{2 "type": "TXT",3 "host": "_dmarc.yourdomain.com",4 "value": "v=DMARC1; p=quarantine; rua=mailto:dmarc-reports@yourdomain.com; fo=1"5}Section 4
Common DMARC Alignment Failures and How to Avoid Them
DMARC alignment can fail for several reasons. A common pitfall is sending emails where the 'From' address domain does not match the domain used for SPF or DKIM authentication. For instance, if your Piisend custom sending domain is yourdomain.com, but you send an email with a 'From' address like info@anotherdomain.com, DMARC will likely fail. Another issue can arise if a third-party service sends emails on your behalf without proper SPF/DKIM setup for your domain. Always ensure that the from address in your Piisend API calls uses a domain that you have verified and configured for SPF and DKIM within Piisend. This ensures that the necessary authentication passes, leading to DMARC alignment.
1import requests2 3api_key = "YOUR_API_KEY"4url = "https://api.piisend.com/api/v1/emails"5 6headers = {7 "Authorization": f"Bearer {api_key}",8 "Content-Type": "application/json"9}10 11payload = {12 "from": "support@yourdomain.com",13 "to": ["customer@example.com"],14 "subject": "Your Support Request Has Been Received",15 "html": "<p>We've received your request and will get back to you shortly.</p>",16 "text": "We've received your request and will get back to you shortly."17}18 19response = requests.post(url, headers=headers, json=payload)20 21print(response.status_code)22print(response.json())Section 5
Ensuring DMARC Alignment with Piisend for Optimal Deliverability
Piisend is designed to make achieving DMARC alignment straightforward. By guiding you through the process of adding and verifying your custom sending domain, we ensure that the underlying SPF and DKIM records are correctly published. When you send emails through the Piisend API, as long as your 'From' address uses your verified domain, your emails will naturally align with your SPF and DKIM records, leading to a DMARC pass. This robust authentication setup is crucial for maintaining a strong sender reputation and ensuring your transactional emails consistently reach your recipients' inboxes, especially with the evolving landscape of email authentication 2026.