Test a Local Maildir in NeoMutt Before Adding a Server
Create an isolated mailbox, open a synthetic message and confirm your NeoMutt installation works before configuring IMAP or SMTP.
Difficulty Beginner
Prerequisites
Use NeoMutt, a shell and a fresh directory you own. Work with the synthetic message below. The exercise needs no account, server or stored credentials.
Create the mailbox
mkdir neomutt-maildir-practice
cd neomutt-maildir-practice
umask 077
mkdir -p Maildir/cur Maildir/new Maildir/tmp
cat > Maildir/tmp/practice.001 <<'MAIL'
From: Lab <lab@example.invalid>
To: Reader <reader@example.invalid>
Subject: DarkPC local Maildir test
Date: Sun, 29 Nov 2026 09:00:00 +0000
This is a synthetic message for local reading practice.
MAIL
mv -- Maildir/tmp/practice.001 Maildir/new/practice.001
Maildir stores individual messages as files. The tmp-to-new move within the same filesystem makes the finished message available to the reader.
Open the mailbox
neomutt -n -F /dev/null -R -f "$PWD/Maildir"
The options skip the system initialisation file, use no personal configuration, request read-only mode and select the local mailbox. Check that the test subject appears, open it with Enter and use q to close the pager and then the index. The example configures no outgoing delivery.
Troubleshooting and practice
If the mailbox is missing, use pwd and verify that the cur, new and tmp directories belong to the same Maildir root. An empty index can mean the message was left in tmp. Ensure that a blank line separates headers from the body. Add another synthetic message using a unique filename and a different subject. Open the mailbox again and compare the two entries. Use only disposable messages in troubleshooting and remove any real addresses before sharing a transcript.