Gmail One-Click Unsubscribe: Check Your Newsletter Headers
Gmail wants one-click unsubscribe headers signed by DKIM, and a footer link alone is not enough. Learn to check your newsletter in Show original in minutes.
The short answer
Gmail asks marketing and subscription senders to support one-click unsubscribe using two headers: List-Unsubscribe with an HTTPS link, and List-Unsubscribe-Post set to exactly List-Unsubscribe=One-Click. RFC 8058 says both headers must be included in the h= list of a valid DKIM signature. A footer link or a mailto link alone does not meet the requirement, and you can check all of this by sending a test to Gmail and opening Show original.

Reading options
On this page
- What one-click unsubscribe actually is
- Before you start
- How to check your newsletter headers in Gmail
- The two failures you will most likely find
- If your newsletter plugin cannot add these headers
- How to check it worked
- Troubleshooting
- A few extra notes
- The one message worth forwarding
- Reader questions
- Sources & further reading
Before you start
A dedicated Gmail test address, access to the real newsletter sending settings and a tiny test segment containing no customer addresses. Keep raw header data private; use local inspection first and share only redacted headers from the test message with an external analyser. The optional POST test unsubscribes the test address.
If you send newsletters or promotional email to Gmail users, your messages need two special headers: List-Unsubscribe with an HTTPS link, and List-Unsubscribe-Post with the exact value List-Unsubscribe=One-Click. Both headers must also be covered by your DKIM signature. A footer link that says "Unsubscribe" is still good practice, but on its own it does not meet Gmail's one-click requirement.
Here is the part many senders miss: Google's own FAQ says that a mailto link in the body of your message does not count, and that starting November 2025 Gmail is ramping up enforcement on traffic that does not comply. So this is no longer a "someday" item. As of 28 November 2026, Google's FAQ still describes that ramp-up, and Yahoo asks for the same kind of one-click unsubscribe.
By the end of this guide you will be able to send one test email, open its raw headers in Gmail, and tell in about five minutes whether your newsletter passes or fails, and why.
What one-click unsubscribe actually is
Every email has a body you read and headers, which are hidden lines of technical information at the top. Gmail reads two of those headers to offer its own unsubscribe option to the reader.
Think of it like a hotel room. The footer link is a sign on the desk that says "call reception to check out". The one-click header is a checkout button built into the room door. Gmail wants the button on the door, so the reader never has to leave Gmail or log in.
Two headers make this work.
List-Unsubscribe: tells the mailbox provider where to send the unsubscribe request. It must contain one HTTPS address. It may also contain a mailto address, but the HTTPS one is the part that counts for one-click.List-Unsubscribe-Post: tells the provider "you may unsubscribe this person with a single POST request, no web page needed". Its value must be exactlyList-Unsubscribe=One-Click.
When a reader asks Gmail to unsubscribe, Gmail sends an HTTPS POST request (a small form submission sent by a machine, not a person in a browser) to your HTTPS address. Your server receives it and removes that subscriber. This is defined in a standard called RFC 8058.
There is one more piece that people forget. RFC 8058 says both headers must be covered by a valid DKIM signature. DKIM is a digital signature your mail server adds so the receiver can check that the message really came from your domain and was not changed on the way. Inside that signature there is a tag called h=, which lists the headers that were signed. Both List-Unsubscribe and List-Unsubscribe-Post must appear in that list. If they are not signed, RFC 8058 says the receiver should not offer one-click unsubscribe for that message.
Who has to do this
Google's sender guidelines say that senders who send more than 5,000 messages a day to Gmail accounts must support one-click unsubscribe for marketing and subscribed messages, and must also include a clearly visible unsubscribe link in the message body. The same page asks bulk senders to keep the spam rate reported in Postmaster Tools below 0.30 percent, and recommends staying below 0.10 percent.
Google's separate subscription guidelines go further and ask for one-click unsubscribe on all subscription messages. Google's sender FAQ recommends processing unsubscribe requests within 48 hours. Even if you send far fewer than 5,000 a day, following this is the safe choice.
Transactional email is excluded. Google lists password resets, reservation confirmations and form submission confirmations as transactional, and its subscription page also names purchase receipts and one-time passwords as messages it does not treat as subscription mail. So your shop's order receipts do not need these headers. Your weekly deals email does.
What Yahoo asks for
Yahoo's sender best practices page asks bulk senders to implement a working list-unsubscribe header that supports one-click unsubscribe for marketing and subscribed messages, to honour unsubscribes within 2 days, to keep the spam rate below 0.3 percent, and to publish a DMARC policy of at least p=none that passes. Yahoo also points to RFC 8058 for the details.
Before you start
You do not need server access for the test itself. You do need a few things ready.
- A Gmail address that you own and can log into on a computer. A free personal Gmail account is fine.
- Access to your newsletter tool, plugin or sending service, so you can add that Gmail address as a subscriber and send it a real campaign.
- A real marketing message, sent the normal way through your list. A "send test" button can behave differently from a real campaign, so a real send to a tiny segment is the safer test.
- Your domain's SPF, DKIM and DMARC already set up. If you are not sure, read our guide to SPF, DKIM and DMARC for small business email first.
- About 15 minutes.
- Risk level: very low. You are only reading headers. The one optional step that sends a POST request will unsubscribe your test address, so use a test subscriber, never a real customer.
Quick tip: add the test Gmail address to your list with a clear name such as "Header Test" so you can find and remove it later.
How to check your newsletter headers in Gmail
Step 1: Send a real campaign to your test Gmail address
In your newsletter tool, create a small segment that contains only your test Gmail address, then send your normal newsletter to it. Use the same template, the same sending domain and the same From address as your real campaigns. If you change any of these, you are testing a different setup.
You should see the message arrive in the Gmail inbox, or in the Promotions tab. If it lands in Spam, keep going anyway, because the headers will help explain why.
Step 2: Open Show original
Open Gmail in a web browser on a computer and open the message. Next to the Reply button, click More (the three dots), then click Show original.
A new tab opens with the full raw message. You will see some lines at the top, then a long block of headers, then the body. Use a dedicated test message. Raw headers can expose recipient addresses, Message-ID values, delivery IPs and unsubscribe tokens, so do not copy production or customer headers into an external tool. You can perform Steps 3 to 5 locally in this view.
Heads up: Google's help describes these steps for Gmail in a computer browser, so do this on a computer rather than in the phone app.
Step 3: Find the two unsubscribe headers
Press Ctrl+F (or Cmd+F on a Mac) and search for List-Unsubscribe. A correct setup shows two separate header lines, something like the example below.
This is what a correct pair of headers looks like, using example values:
List-Unsubscribe: <https://example.com/unsubscribe/k3j9x7q2>, <mailto:unsubscribe@example.com>
List-Unsubscribe-Post: List-Unsubscribe=One-ClickList-Unsubscribeexists and contains at least one address that starts withhttps://inside angle brackets.- The HTTPS address contains some kind of unique token. That token is how your server knows which subscriber is leaving, because RFC 8058 says the POST request must not carry cookies or login details.
List-Unsubscribe-Postexists and its value is exactlyList-Unsubscribe=One-Click, with that spelling and capital letters.- The mailto part is optional. It is fine to have it, but it does not replace the HTTPS address.
If you only find List-Unsubscribe with a mailto address and no HTTPS link, or you find List-Unsubscribe but no List-Unsubscribe-Post, your setup does not meet the one-click requirement. Write that down and keep going.
Step 4: Check the DKIM h= list
Now search for DKIM-Signature. You may find more than one. Look at the one where d= is your own domain, because that is the signature that matters for your brand and for DMARC.
Here is a simplified example of a good DKIM signature. The long bh= and b= values are shortened.
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=example.com; s=news2026;
h=from:to:subject:date:message-id:list-unsubscribe:list-unsubscribe-post;
bh=AbC123shortened=; b=XyZ789shortened=Read the h= tag. It is a list of header names separated by colons. Both list-unsubscribe and list-unsubscribe-post must be in it. Capital letters do not matter here, because header names in h= are matched without caring about case.
Made-up example: Sara runs a small bakery and sends a weekly offers email to about 3,000 people. Her plugin adds both unsubscribe headers, so she thought she was done. When she opened Show original, the only DKIM signature had d= set to her sending service's own domain, and its h= list did not include either unsubscribe header. The headers were there, but nothing signed them. Her fix was to set up DKIM for her own domain inside the sending service, which then signed the full set of headers.
Step 5: Check DKIM alignment and DMARC in the same message
Still in Show original, search for Authentication-Results. This header is added by Gmail's receiving server and records what it checked and what it found.
Here is a simplified example of what a passing result looks like. Real Gmail headers contain extra comments in parentheses, which is normal.
Authentication-Results: mx.google.com;
dkim=pass header.i=@example.com;
spf=pass smtp.mailfrom=bounce.example.com;
dmarc=pass header.from=example.comYou will often see a Received: line nearby that shows the sending server's IP address, such as 203.0.113.25. That tells you which server handed the message to Gmail, which is useful if you use more than one sending service.
Now read the results like this.
dkim=passwithheader.i=@example.comorheader.d=example.commeans a DKIM signature from your domain checked out.spf=passmeans the sending server is allowed by the SPF record of the domain insmtp.mailfrom, which is the hidden bounce address.dmarc=passwithheader.from=example.commeans at least one of SPF or DKIM passed and was aligned with your visible From domain.
What does aligned mean? DMARC compares the domain in your visible From address with the domain that passed DKIM (the d= value) or SPF. By default DMARC uses relaxed alignment, which means they only need to share the same main domain. So d=example.com aligns with a From address like news@mail.example.com. A signature with d= set to your email provider's domain does not align with example.com, even if it passes.
For one-click unsubscribe you want this combination: a DKIM signature that passes, whose d= aligns with your From domain, and whose h= list includes both unsubscribe headers. If DMARC shows fail or none, fix that first, because Gmail asks bulk senders to have DMARC set up, and Yahoo asks for DMARC that passes.
Quick tip: Google's bulk sender rules say that sending to personal Gmail accounts requires a DKIM key of 1024 bits or longer, and they recommend 2048 bits if your provider supports it. If you are still on a short key, see how to upgrade your DKIM key to 2048 bits without breaking email.
Step 6: Use Google's analyser only with redacted test headers (optional)
If the raw text is hard to read, first use a dedicated test message. Before sending headers to the Google Admin Toolbox Messageheader tool, redact the test recipient address, Message-ID, delivery IPs that are not needed for your check and the unique token inside List-Unsubscribe. Redaction can limit parts of the analysis, so the direct checks in Steps 3 to 5 remain the authoritative test. Do not paste a real subscriber's or customer's raw headers into an external analyser.
Step 7: Test the unsubscribe endpoint (optional, uses a test address)
This copies what Gmail does when a reader unsubscribes. Use only the link from your test message, because it will unsubscribe that test address.
The command below sends a POST request to the unsubscribe link with the exact body RFC 8058 describes, and prints the response headers. Replace the URL with the HTTPS link from your own List-Unsubscribe header.
curl -i -X POST -d "List-Unsubscribe=One-Click" "https://example.com/unsubscribe/k3j9x7q2"The -d option makes curl send the data as a form, with the content type application/x-www-form-urlencoded, which RFC 8058 allows. The -i option shows the response headers.
What you want to see: a success status line near the top, such as HTTP/2 200, and then your test address marked as unsubscribed in your newsletter tool. What you do not want: a 301 or 302 status with a Location: header, because RFC 8058 says the sender must not return a redirect. A login page or a "confirm your choice" form in the response also means the endpoint is not truly one-click.
The two failures you will most likely find
Failure 1: A footer link and no header
The email has an "Unsubscribe" link at the bottom, but no List-Unsubscribe header, or one with only a mailto address. This can happen with older plugins, hand-built mail scripts, or contact form tools used for newsletters.
Google's FAQ is clear: a mailto link in the body does not meet the one-click requirement, and one-click links that point to a landing page or any other web page do not comply with RFC 8058. Keep the footer link and add the headers.
Failure 2: The header exists but DKIM does not sign it
The headers are there, but your domain's DKIM h= list does not include them. Common reasons:
- The headers are added after DKIM has already signed the message, for example by a relay or gateway on the way out.
- The only DKIM signature uses your sending service's shared domain, so it does not align with your From address.
- The DKIM signer uses a fixed list of headers that leaves these two out.
The fix is the same each time: the headers must be in the message before your own domain's DKIM signature is created, and the signer must list them in h=.
If your newsletter plugin cannot add these headers
Some plugins and scripts cannot add custom headers, or have no endpoint that accepts a POST request. Building one is a developer task: it must find the subscriber from a token, remove them, and reply without a redirect.
- Check your plugin or service settings for a "List-Unsubscribe" or "one-click unsubscribe" option.
- Switch the sending part to an email sending service that adds both headers and signs them with your domain's DKIM key.
- Ask your developer to add the two headers before the message is signed, and to build a POST endpoint that follows RFC 8058.
- Ask your hosting provider whether outgoing mail from the server can be signed after your application adds its headers, and which headers their DKIM signer covers.
How to check it worked
After any change, send a fresh campaign to your test Gmail address and repeat the checks. Here is your pass list.
List-Unsubscribeis present and contains anhttps://link inside angle brackets.List-Unsubscribe-Post: List-Unsubscribe=One-Clickis present, spelled exactly.- A DKIM signature with
d=set to your domain includeslist-unsubscribeandlist-unsubscribe-postin itsh=list. Authentication-Resultsshowsdkim=passfor your domain anddmarc=passwithheader.from=set to your domain.- A POST to the HTTPS link returns a success code with no redirect, and the test address shows as unsubscribed in your tool.
- The message body still has a clearly visible unsubscribe link, as Google's bulk sender rules ask.
If Gmail shows its own unsubscribe option on the message, that is a good sign, but the raw header check is the more direct proof.
For the longer view, watch your spam rate in Google Postmaster Tools. If you have not set it up yet, follow our guide to setting up Google Postmaster Tools for a cPanel domain. Google asks bulk senders to stay below 0.30 percent, and recommends below 0.10 percent.
Troubleshooting
Only a mailto address in the header
Symptom: you see List-Unsubscribe: <mailto:unsubscribe@example.com> and nothing else. Likely cause: an older setup that predates the HTTPS requirement. Fix: add an HTTPS link to the same header and add List-Unsubscribe-Post. You can keep the mailto address beside it, since RFC 8058 allows other URIs as well.
List-Unsubscribe-Post has the wrong value
Symptom: the header reads something like List-Unsubscribe-Post: One-Click or List-Unsubscribe=OneClick. Likely cause: a hand-typed value. Fix: set it to exactly List-Unsubscribe=One-Click. RFC 8058 requires that single key and value pair.
DKIM passes but DMARC fails
Symptom: dkim=pass for a domain like your provider's, but dmarc=fail for header.from=example.com. Likely cause: the passing signature is not aligned with your From domain. Fix: set up DKIM for your own domain in your sending service so d= matches your From domain.
Gmail rejects or delays your mail with a 4.7 or 5.7 code
Symptom: bounce messages with codes that start with 4.7. (temporary) or 5.7. (blocked). Google's FAQ lists examples such as 4.7.30 and 5.7.30 for DKIM problems and 4.7.32 for From header alignment. Likely cause: an authentication or alignment problem, which also stops one-click from being trusted. Fix: read the exact code in the bounce, look it up in Google's FAQ, and fix authentication before anything else.
The unsubscribe link redirects or asks the reader to log in
Symptom: the curl test returns 302 with a Location: header, or the response is a login page. Likely cause: the link points at a normal preferences page. Fix: the HTTPS address in the header must accept a POST and unsubscribe directly. Your footer link can still point to a preferences page, since Google says body links do not have to be one-click when the header is correct.
A few extra notes
Honour requests fast. Google asks for unsubscribe requests to be honoured within 48 hours, and Yahoo says within 2 days.
Keep subscription mail apart from other mail. Google's subscription guidelines ask that each list either has a readable List-Id header or its own From address, and that subscription and non-subscription mail are sent from different addresses. A List-Id header looks like List-Id: "Example Weekly" <weekly.example.com>.
Ask for confirmed consent. Google's subscription page asks that people confirm their email address after signing up.
Security note: the token in your unsubscribe link should be hard to guess. If someone can change a number in the URL and unsubscribe a different person, that is a real problem.
The one message worth forwarding
Copy this and send it to your developer, host or email provider. Replace the example values with your own.
Hi, I need our newsletter emails to meet Gmail's one-click unsubscribe requirement (RFC 8058).
Please make sure every marketing message from news@example.com includes these two headers:
List-Unsubscribe: <https://example.com/unsubscribe/UNIQUE-TOKEN>
List-Unsubscribe-Post: List-Unsubscribe=One-Click
Requirements:
1. The HTTPS link must accept a POST request with the body List-Unsubscribe=One-Click and unsubscribe that person straight away, with no redirect, no login and no cookies.
2. Both headers must be added before DKIM signing, and the DKIM signature for example.com must list list-unsubscribe and list-unsubscribe-post in its h= tag.
3. DKIM d= must align with our From domain, so DMARC passes.
4. Unsubscribes must be processed within 48 hours.
I will check by sending a test to Gmail and reading Show original. Thanks.One test email and one look at Show original will tell you whether Gmail can trust your unsubscribe button, so run that check before your next campaign goes out.
Reader questions
Do transactional emails need a List-Unsubscribe header?
No. Google says transactional messages such as password resets, reservation confirmations and form submission confirmations are excluded from the one-click unsubscribe requirement.
Is a mailto address in List-Unsubscribe enough?
No. Google says the List-Unsubscribe header must include one HTTPS URL, and a mailto link does not count as one-click. You may keep a mailto address next to the HTTPS one.
I send fewer than 5,000 emails a day. Do I still need this?
Google's bulk sender rules apply above 5,000 messages a day to Gmail, but its subscription guidelines ask for one-click unsubscribe on all subscription messages. Adding the headers is the safe choice at any volume.
Do I still need an unsubscribe link in the email footer?
Yes. Google asks bulk senders for a clearly visible unsubscribe link in the body as well. That body link can point to a preferences page and does not have to be one-click.
How fast must I process unsubscribe requests?
Google recommends processing unsubscribe requests within 48 hours. Yahoo asks senders to honour unsubscribes within 2 days.
Does Yahoo have the same requirement?
Yahoo asks bulk senders for a working list-unsubscribe header that supports one-click unsubscribe, and points to RFC 8058. It also asks for a spam rate below 0.3 percent and a DMARC policy of at least p=none that passes.
Was this guide helpful?
Help us make the next update better.
Sources & further reading
- Google: Email sender guidelines
- Google: Email sender guidelines FAQ
- Google: Gmail subscription guidelines
- Google: Trace an email with its full headers
- RFC 8601: Authentication-Results Header Field
- RFC 8058: One-Click Unsubscribe
- RFC 6376: DKIM Signatures
- RFC 7489: DMARC
- Yahoo Sender Hub: Best practices
- curl manual
What changed
Privacy correction: limited external header analysis to redacted dedicated-test data, clarified Google's 48-hour wording, and added original media and prerequisites. Preserved the slug and original publication date.
Originally published . About our editorial updates.



