Header - List-Unsubscribe:

Discussion in 'General' started by Jim Locke, Nov 18, 2025.

  1. Jim Locke

    Jim Locke Member

    has anyone done this?
    I've found some info on it but would like to confirm if it will work:
    ---
    /etc/postfix/main.cf
    add: header_checks = regexp:/etc/postfix/list_unsub_header
    /etc/postfix/list_unsub_header
    add: /^Content-Type:/i PREPEND List-Unsubscribe: <mailto:[email protected]>
    ---
    seems to look alright
    TIA
    Jim..
    PS: mail-tester.com gives me 10/10 but can improve with adding it
     
  2. remkoh

    remkoh Active Member HowtoForge Supporter

    Why would you want add that header in every mail?
    The unsub header is (an obligation) for newsletters mainly.
    The fact that mail-tester checks it is probably because they get used a lot by testers before they go live with their newsletters.
     
  3. Jim Locke

    Jim Locke Member

    I know it's only optional and for bulk but it's a 1 liner hidden and if at anytime in future something like a newsletter won't have to go playing around with backend stuff and then only the bulk email content with some unsub would be required (matchings email addy of course)
     
  4. remkoh

    remkoh Active Member HowtoForge Supporter

    If you use any decent bulk/news software/plugin it will add the header for you in those emails.
    I wouldn't bother with postfix customizations for all e-mails.
     
    till and Jim Locke like this.

Share This Page