How to set up List-Unsubscribe on Mailgun

Step by step List-Unsubscribe setup for Mailgun: complete instructions, examples, verification commands, and common pitfalls.

Want to check your domain while following this guide?

Run a free SPF, DKIM and DMARC check on your domain to see exactly what is passing and what needs fixing.

No signup required. Works on any domain.

This is a reference guide for configuring List-Unsubscribe on Mailgun. Use it while editing DNS or when troubleshooting deliverability.

Tip: Here’s a reliable, copy-pasteable way to set up List-Unsubscribe using Mailgun. Then verify everything with the InboxGreen Free Checker.

Provider-specific notes for Mailgun

  • Mailgun provides specific TXT and CNAME values unique to your domain. Copy them exactly from the Mailgun DNS Records panel - do not guess the values.
  • Mailgun DKIM can use either TXT or CNAME depending on your plan. Check the DNS Records tab in your Mailgun domain settings for the correct format.
  • Mailgun → Sending → Domains → Domain DNS Records.

What is List-Unsubscribe?

List-Unsubscribe is a message header that gives inboxes a safe, machine readable way to unsubscribe. Gmail and Outlook often show a clear unsubscribe link when it is present and valid, which reduces spam complaints and protects your sender reputation.

How to enable it in practice

  1. In your sending platform, enable the List-Unsubscribe header or macro in templates.
  2. Use a one click HTTPS link as the main method, with a mailto address as fallback.
  3. Test by sending to a Gmail address and checking “Show original”.

Example headers

List-Unsubscribe: <https://yourdomain.com/u/abcd1234>, <mailto:[email protected]?subject=unsubscribe>
List-Unsubscribe-Post: List-Unsubscribe=One-Click

Common mistakes

  • Using a broken or redirected unsubscribe link that fails when clicked.
  • Only providing a mailto address without a one click URL.
  • Failing to apply the unsubscribe globally across lists and tools.

Pro tip: Turn on InboxGreen Monitoring to check these records daily and get alerts if something breaks.

Free Deliverability Scan

Check SPF, DKIM, DMARC and List-Unsubscribe for your domain in seconds.

Useful tools