How-to edit X-Mailer header of Apple Mail?

Discussion in 'Mac Basics and Help' started by MacFrag, Apr 25, 2018.

  1. MacFrag macrumors member

    MacFrag

    Joined:
    Jul 24, 2015
    Location:
    The Netherlands
    #1
    Does anybody know how to edit the X-Mailer header on all emails when you send mail?

    I want to hide which email program I use.

    Now (by default), on every email I send with the Mail program it inserts:

    X-Mailer: Apple Mail (2.3445.6.18)

    In Thunderbird this is done very easily by creating an empty value of general.useragent.override, but I want to use Apple mail also.
     
  2. chown33, Apr 25, 2018
    Last edited: Apr 25, 2018

    chown33 macrumors 604

    Joined:
    Aug 9, 2009
    Location:
    Sailing beyond the sunset
    #2
  3. MacFrag thread starter macrumors member

    MacFrag

    Joined:
    Jul 24, 2015
    Location:
    The Netherlands
    #3
    Thank you chown33!

    I Googled before but did not used the right *key words* apparently (blush).

    After setting X-Mailer it still leaks your Mail client info by the Mime-Version header.

    To fix that also you can add Mime-Version also to UserHeaders.

    Used "Outlook" for example purposes only.

    Code:
    defaults write com.apple.mail UserHeaders '{"X-Mailer" = "Outlook";"Mime-Version" = Outlook; }'
    
     

Share This Page