The winmail.dat file is a container file format used by Microsoft Outlook to send attachments in richtext 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.

Facebooktwittergoogle_plusredditlinkedinmail

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

  • June 4, 2010 at 9:57 pm
    Permalink

    Thanks so much for the help. Worked Great

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

    Thnks man!
    It works perfect

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

    Thanks, it saved my day!

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

    Thank you this was very useful

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

    Thank you. It works.

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

    Thanks a lot, it worked well!

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

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

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

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

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

    Thanks for the easy and working command

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

    Excellent, thanks. Just what I needed.

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

    This works perfect! thanks.

    Reply
  • 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
  • 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
  • February 1, 2012 at 5:48 pm
    Permalink

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

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

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

    Reply
  • 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
  • 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
  • June 28, 2012 at 3:11 am
    Permalink

    So easy! Thanks for the help.

    Reply
  • 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
  • November 11, 2012 at 10:22 pm
    Permalink

    Great, and so fast solved :-).

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

    Brilliant! Wish I had found this sooner!

    Reply

Leave a Reply

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