Common Issues
Emails Not Sending
Emails Not Sending
Symptoms: Emails are not being delivered through MailgunChecklist:If this returns 401, your API key is invalid.
- Verify your Mailgun API key is valid and has full access permissions
- Check that the Mailgun domain is correct and verified in your Mailgun account
- Ensure the TPSP is active in SendPost
- Review the SendPost event logs for errors
- Confirm your Mailgun account is in good standing
Events Not Appearing
Events Not Appearing
Symptoms: Emails are sent but opens/clicks/bounces not showingChecklist:
- Verify webhooks are registered in Mailgun Dashboard
- Check webhook URLs are correct for each event type
- Ensure webhook events are enabled
- Wait a few minutes (events are batched for processing)
- Go to Mailgun → Sending → Webhooks
- Confirm webhooks are configured for each event type
- Verify URLs show:
https://api.sendpost.io/tpsp/mailgun/account/{account-id}
Bounces Not Processing
Bounces Not Processing
Symptoms: Bounced emails not reflected in analyticsCheck:
- Review SMTP codes in event details
- Hard bounces (permanent severity) = permanent failures
- Soft bounces (temporary severity) = temporary failures
- Ensure bounce events (failed) are enabled in webhook settings
API Key Errors
API Key Errors
| Error Code | Meaning | Solution |
|---|---|---|
| 401 | Unauthorized | Regenerate API key in Mailgun |
| 403 | Forbidden | Check API key permissions |
| 429 | Rate limit exceeded | Wait and retry, or increase limits |
| 400 | Bad Request | Check payload format, domain, or recipient format |
| 404 | Not Found | Verify domain is correct |
Webhook Registration Issues
Webhook Registration Issues
Symptoms: Some or all webhooks not registeredChecklist:
- Check if webhooks appear in Mailgun dashboard
- Verify API key has webhook permissions
- Ensure SendPost API is accessible from Mailgun servers
- Try recreating the TPSP in SendPost
Getting Help
If you’re still experiencing issues:- Check Logs: Review detailed event logs in SendPost dashboard
- Contact Support: Reach out to SendPost support with:
- Your account ID
- TPSP ID
- Message ID (if available)
- Error messages
- Timestamp of the issue
FAQs
Can I use multiple Mailgun accounts?
Can I use multiple Mailgun accounts?
Yes! Create a separate TPSP for each Mailgun account. Each will have its own webhooks and configuration.
Does SendPost store my Mailgun API key securely?
Does SendPost store my Mailgun API key securely?
Yes, all API keys are encrypted at rest and never exposed in logs or API responses.
Can I use Mailgun for some emails and SendPost IPs for others?
Can I use Mailgun for some emails and SendPost IPs for others?
Yes, SendPost supports intelligent routing. You can configure IP Pools to route specific traffic through Mailgun and the rest through SendPost’s native infrastructure.
What happens if the webhook endpoint is temporarily unavailable?
What happens if the webhook endpoint is temporarily unavailable?
How do I use Mailgun's EU region?
How do I use Mailgun's EU region?
If your Mailgun account is in the EU region, you may need to configure the EU API endpoint. Contact SendPost support for assistance with EU region configuration.
Can I specify which Mailgun IP Pool to use?
Can I specify which Mailgun IP Pool to use?
Yes! Use the
tpspIppool parameter in your API request to specify a Mailgun IP Pool, or use tpspIp to specify a specific IP address owned by your account.Can I gradually migrate traffic?
Can I gradually migrate traffic?
Yes! You can run both systems in parallel during migration. Configure your SendPost IP Pool to route a percentage of traffic to Mailgun while keeping some on your current system.
What's the latency for event processing?
What's the latency for event processing?
Events are typically processed within 1-5 seconds of being received from Mailgun.
Is there a limit on emails per day?
Is there a limit on emails per day?
SendPost doesn’t impose hard limits, but your Mailgun plan limits still apply. Configure throttling to match your Mailgun limits.
How is Mailgun different from SendGrid/SparkPost integration?
How is Mailgun different from SendGrid/SparkPost integration?
The main difference is that Mailgun requires a separate webhook registration for each event type, while SendGrid and SparkPost use a single webhook for all events. SendPost handles this automatically during setup.