Email Migration

Extract Attachments From hMailServer Emails from one message file to a whole account

Leena Taylor Paul By Updated November 15, 2026 7 min read

Quick Answer

To extract attachments from hMailServer, open a message file from your Data folder in a mail program and save its files message by message. To cover a whole account, load a copy of your Data folder into a Windows converter that saves every attachment as a separate file. Stop the server before you copy.

Open one message that should carry a file before you plan a bulk save, because it shows what you are about to collect.

If you need to extract attachments from hMailServer, start with where those files really are. Your Data folder has one .eml file for each message. Every attachment sits inside the message that came with it. Nothing in that folder is a separate PDF or spreadsheet yet.

If only a few messages matter, a mail program does that well. If you need every attachment of an account, you want a way to save them without opening each message. This guide covers both, so you can choose by the number of messages you have.

Choose by the number of messages
  • If a handful of files is enough, open the message files in a mail program and save them there.
  • If you need all files of an account, load a copy of your Data folder into a converter that saves attachments together.
  • If your copy of the Data folder is damaged, repair it first and extract once it is repaired.

Why Are hMailServer Attachments Hard to Collect?

Every message on your server is a separate .eml file that sits in the folder of its domain. A busy server leaves you thousands of such files. A message file does not say which account or folder it came from, because those names sit in the hMailServer database.

The tree has no folder of attachments either. If you look for an invoice, you must know which message carried it. That is why a few files are easy to find and a whole account is not.

How Is an Attachment Kept Inside an .eml File?

An .eml file is plain mail text. RFC 2183 lets a sender mark a body part as an attachment, so that it counts as separate from the main message. It also gives that part an optional filename.

The file content itself is usually encoded as text. RFC 2045 describes the base64 encoding that fits any sequence of bytes into printable characters, six bits per character and no more than 76 characters per line. If you open an .eml file in a text editor, you see that block of characters and not your document.

Who Needs All Attachments From hMailServer?

Which of these is closest to your case?
  • A finance clerk Suppliers sent you invoices by mail for years and your auditor now asks for every one.
  • A compliance reviewer Your review is about contracts and signed scans, so the files matter more to you than the messages.
  • An admin retiring a server Shared accounts on your server may be the only place where some documents exist.
  • A colleague on the way out Your own documents should leave your mailbox before the account closes.

Which Two Methods Can Extract hMailServer Attachments?

Two methods get your files out of hMailServer mail. The table lists what each needs and where it ends.

MethodRequirementLimit
Open the .eml in a mail program A message file and a program that reads .eml One message at a time. You must know which file to open
Windows converter Your Data folder copy on a 64-bit Windows PC Needs Windows 11 or 10. A trial saves from 25 messages per folder

If you only need a few files, the first row is enough. If you plan to keep whole accounts, my guide to export hMailServer to PST shows that task. For the same task on other mail formats, read how to extract attachments from IMAP email.

hMailServer keeps every attachment inside its message file. Save the files of one account first and compare three of them with their messages before you extract the rest.

Nick Rogers, Founder of Univik
Nick Rogers
Founder, Univik
Making Windows software since 2013

Five Steps to Save Attachments From One hMailServer Message

These steps follow Microsoft's page for attachments in the new Outlook. Other mail programs name the commands differently.

  1. Find the message file. Open the domain folder inside your copy of the Data folder. Every message there is one .eml file.
  2. Open it in a mail program. Double-click the file in a program that reads .eml.
  3. Download one attachment. Select the dropdown arrow on the attachment, choose Download and select a folder.
  4. Download all attachments. If the message has several files, use Download all instead and select a folder.
  5. Open a saved file. Check that it opens in the program for its extension.

Work on a copy of your Data folder, because opening files on a live server can disturb new mail.

What Do You Prepare Before a Bulk Extraction?

1. Copy while the service is off

Do this: Stop hMailServer before you copy your Data folder. Mail that arrives during a copy can leave your files incomplete.

2. Add your database copy

Do this: The hMailServer database is where account and folder names are kept. A copy of it lets you recognise accounts. Without it your folders carry generic names.

3. Start with one account

Do this: Extract one account first and open a few files. If they match your expectation, add the other accounts.

4. Make room for the files

Do this: Attachments take the space of the original files and often more than the messages suggest. Choose a drive that has room for every account you select.

Extract Attachments From hMailServer on Windows

Univik hMailServer Converter opens your copied Data folder on a Windows PC and saves the attachments of the mail it reads as separate files. Each file keeps the format of its own extension, so a PDF remains a PDF and a spreadsheet remains a spreadsheet. You do not need hMailServer on that PC and no server login is used.

You select accounts one time and the files are saved separately.
  1. Copy your data. Stop the service, copy the Data folder to your PC and add a copy of the database if you have one.
  2. Open your Data folder copy. Start the converter and select the folder. Your accounts appear in a list.
  3. Select the accounts. Mark the accounts you need and preview a message to confirm that they are the right ones.
  4. Choose attachments. Select the attachments option and name a destination folder on your PC.
  5. Compare three files. Open three saved files and check each against its message before you hand the rest to anyone.

Limitations: a trial copy saves from 25 messages per folder only. A full extraction needs a licence, which starts at $999. Mac is not supported. Install .NET Framework 4.8 on your 64-bit Windows PC before you start. I have not timed an extraction on a large Data folder, so try one account first.

Collect your hMailServer attachments as files

Windows loads your copied Data folder and saves each attachment in its own format to a folder you choose.

Download Free Trial Select a Licence - From $999

A trial on one account gives you real files to open and check against their messages before you decide.

What If an Attachment Is Missing or Will Not Open?

1. A file is not saved

Do this: Open that message file in a mail program. If no attachment shows there either, the message never carried one.

2. A saved file will not open

Do this: Check its extension first. A damaged message file can leave an incomplete attachment, so read about the hMailServer recovery tool for damaged data.

3. Folders carry generic names

Do this: The names are in the database, so add its copy and extract again.

If you plan to move your accounts instead of saving files, read about migrating hMailServer to Office 365.

What Did I Read to Check This Guide?

My sources were RFC 2045, RFC 2183 and Microsoft's Outlook page on attachments, all read on 15 November 2026. hMailServer's own documentation pages were not available to me, so no claim in this guide depends on them.

Univik's converter page is my source for the Data folder, database and trial details. Menus differ between mail programs, so compare each label with the one you use.

Key Takeaways
  • Each hMailServer message is one .eml file and every attachment is part of that file.
  • A mail program saves attachments from a single message per action.
  • A converter that reads your Data folder copy saves attachments in bulk, each in its own file format.
  • Copy your Data folder while the service is stopped and add the database copy for real names.
  • Check three extracted files against their messages first, because that shows whether the rest can be trusted.

FAQ: Extract Attachments From hMailServer

How do I extract attachments from hMailServer?

Open a message file from your Data folder copy in a mail program and save its attachments. For a whole account, load your copy into a Windows converter that saves every attachment as a separate file.

Where are hMailServer attachments stored?

Inside each message. hMailServer saves one .eml file per message in a domain folder and the attachment is part of that file.

Can I download hMailServer attachments in bulk?

A mail program saves files from a single message per action. A converter that reads your Data folder copy saves attachments from many messages together.

Do I need hMailServer installed to extract attachments with Univik hMailServer Converter?

No. A Windows PC with your Data folder copy is enough and no server login is needed.

In which format are the extracted attachments saved?

Each attachment is saved as a file in its own format, so a PDF stays a PDF and a spreadsheet stays a spreadsheet.

Do I need a database copy to extract attachments?

The database keeps the account and folder names. Without its copy your folders have generic names, so add it if you want to recognise them.

Will my original Data folder change?

No. The converter reads your copy and saves the files to a folder that you choose.

Can I try attachment extraction before I buy?

Yes. The trial covers 25 messages per folder, enough to open real files from one account.

Leena Taylor Paul

Mail format facts follow RFC 2045 and RFC 2183 and the Microsoft page on attachments in Outlook, as read on November 15, 2026. Univik's converter page supplies the product details.

More Guides for hMailServer Mail

Choose the guide that matches the next step for your hMailServer data.