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

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.


sudo apt-get install tnef


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.


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

  1. kevin says:

    Thanks so much for the help. Worked Great

  2. Sebastian says:

    Thnks man!
    It works perfect

  3. evilme says:

    Thanks, it saved my day!

  4. Renato says:

    Thank you this was very useful

  5. Lui-G says:

    Thank you. It works.

  6. Péter says:

    Thanks a lot, it worked well!

  7. Jos says:

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

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

  9. Maraisane says:

    Thanks for the easy and working command

  10. Roshan says:

    Excellent, thanks. Just what I needed.

  11. alejorodri11 says:

    This works perfect! thanks.

  12. Dave H says:

    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

  13. Hellmut Weber says:

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



  14. Ravi Patel says:

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

  15. eduardo says:

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

  16. francesco says:

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

  17. 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.

  18. Omid says:

    Thanks, really useful!

  19. willy says:

    So easy! Thanks for the help.

  20. Fred B says:

    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.

  21. Mark W. says:

    Great, and so fast solved :-).

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>