The winmail.dat file is a container file format used by Microsoft Outlook to send attachments in rich-text formatted emails. To open winmail.dat on Linux, use the tnef utility.

Installation

sudo apt-get install tnef

Usage

Open a shell window, navigate to the directory where the winmail.dat file is saved,  then execute the command:

tnef winmail.dat

to extract all files that are stored in the winmail.dat into the current directory.

How to open winmail.dat files on Ubuntu and Debian Linux

25 thoughts on “How to open winmail.dat files on Ubuntu and Debian Linux

  • Avatar
    June 4, 2010 at 9:57 pm
    Permalink

    Thanks so much for the help. Worked Great

    Reply
  • Avatar
    June 9, 2010 at 3:35 am
    Permalink

    Thnks man!
    It works perfect

    Reply
  • Avatar
    October 1, 2010 at 1:46 pm
    Permalink

    Thanks, it saved my day!

    Reply
  • Avatar
    October 18, 2010 at 10:33 pm
    Permalink

    Thank you this was very useful

    Reply
  • Avatar
    November 30, 2010 at 12:08 pm
    Permalink

    Thank you. It works.

    Reply
  • Avatar
    December 9, 2010 at 2:30 pm
    Permalink

    Thanks a lot, it worked well!

    Reply
  • Avatar
    December 24, 2010 at 1:43 pm
    Permalink

    Thank You. 🙂 It was quick and easy. (A bit off but.. Happy holidays … ) 🙂

    Reply
  • Avatar
    January 10, 2011 at 3:40 am
    Permalink

    Bingo Bango Bongo, worked like a charm. Damn Microsoft!

    Reply
  • Avatar
    January 19, 2011 at 1:00 pm
    Permalink

    Thanks for the easy and working command

    Reply
  • Avatar
    March 30, 2011 at 6:31 am
    Permalink

    Excellent, thanks. Just what I needed.

    Reply
  • Avatar
    April 18, 2011 at 5:30 pm
    Permalink

    This works perfect! thanks.

    Reply
  • Avatar
    September 13, 2011 at 5:59 am
    Permalink

    Ditto. I am always getting email from people and I plead to stop sending me .dat and .pub files. They keep doing it so thanks for solving that. Now all I need is a .pub converter……..sigh

    Reply
  • Avatar
    December 24, 2011 at 1:31 pm
    Permalink

    Thanks to the author of this very useful piece of software.
    Installed and used 😉 Perfect !

    Greetings

    Hellmut

    Reply
  • Avatar
    February 1, 2012 at 5:48 pm
    Permalink

    Nice tool, helped me a lot for reading pdf files.

    Reply
  • Avatar
    February 7, 2012 at 11:19 am
    Permalink

    Thank you very much!! Community is the Power, but with people like you, only.

    Reply
  • Avatar
    April 5, 2012 at 5:09 pm
    Permalink

    i have a problem; after command line, ask me “[sudo] password for francesco:” , but i can’t succeed to write my pw. Why?

    Reply
  • Avatar
    April 28, 2012 at 2:00 am
    Permalink

    Francesco that is a password that you or who ever installed your linux version of your OS should know. When you type it appears that nothing is being typed, that just how it seems.

    Reply
  • Avatar
    June 28, 2012 at 3:11 am
    Permalink

    So easy! Thanks for the help.

    Reply
  • Avatar
    October 9, 2012 at 9:42 pm
    Permalink

    There is also a Ubuntu package called claws-mail-tnef-parser that is a plugin to the Claws mail program and allows seamless attachment handling- you don’t even know there’s a winmail.dat file. May be plugins for other mail programs too.

    Reply
  • Avatar
    November 11, 2012 at 10:22 pm
    Permalink

    Great, and so fast solved :-).

    Reply
  • Avatar
    April 21, 2016 at 5:08 pm
    Permalink

    Brilliant! Wish I had found this sooner!

    Reply
  • Avatar
    September 24, 2016 at 9:17 pm
    Permalink

    it works fine. Thanks

    Reply
  • Avatar
    October 16, 2017 at 2:48 am
    Permalink

    This is a great little program, saved me hours of angst!!

    Reply
  • Avatar
    December 30, 2019 at 6:51 pm
    Permalink

    Just what I needed. (Damn Microsoft!)

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

*